1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/servicecatalog/ServiceCatalog_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/servicecatalog/model/ServiceActionAssociationErrorCode.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace ServiceCatalog 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>An object containing information about the error, along with identifying 29 * information about the self-service action and its associations.</p><p><h3>See 30 * Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/FailedServiceActionAssociation">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_SERVICECATALOG_API FailedServiceActionAssociation 35 { 36 public: 37 FailedServiceActionAssociation(); 38 FailedServiceActionAssociation(Aws::Utils::Json::JsonView jsonValue); 39 FailedServiceActionAssociation& operator=(Aws::Utils::Json::JsonView jsonValue); 40 Aws::Utils::Json::JsonValue Jsonize() const; 41 42 43 /** 44 * <p>The self-service action identifier. For example, 45 * <code>act-fs7abcd89wxyz</code>.</p> 46 */ GetServiceActionId()47 inline const Aws::String& GetServiceActionId() const{ return m_serviceActionId; } 48 49 /** 50 * <p>The self-service action identifier. For example, 51 * <code>act-fs7abcd89wxyz</code>.</p> 52 */ ServiceActionIdHasBeenSet()53 inline bool ServiceActionIdHasBeenSet() const { return m_serviceActionIdHasBeenSet; } 54 55 /** 56 * <p>The self-service action identifier. For example, 57 * <code>act-fs7abcd89wxyz</code>.</p> 58 */ SetServiceActionId(const Aws::String & value)59 inline void SetServiceActionId(const Aws::String& value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId = value; } 60 61 /** 62 * <p>The self-service action identifier. For example, 63 * <code>act-fs7abcd89wxyz</code>.</p> 64 */ SetServiceActionId(Aws::String && value)65 inline void SetServiceActionId(Aws::String&& value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId = std::move(value); } 66 67 /** 68 * <p>The self-service action identifier. For example, 69 * <code>act-fs7abcd89wxyz</code>.</p> 70 */ SetServiceActionId(const char * value)71 inline void SetServiceActionId(const char* value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId.assign(value); } 72 73 /** 74 * <p>The self-service action identifier. For example, 75 * <code>act-fs7abcd89wxyz</code>.</p> 76 */ WithServiceActionId(const Aws::String & value)77 inline FailedServiceActionAssociation& WithServiceActionId(const Aws::String& value) { SetServiceActionId(value); return *this;} 78 79 /** 80 * <p>The self-service action identifier. For example, 81 * <code>act-fs7abcd89wxyz</code>.</p> 82 */ WithServiceActionId(Aws::String && value)83 inline FailedServiceActionAssociation& WithServiceActionId(Aws::String&& value) { SetServiceActionId(std::move(value)); return *this;} 84 85 /** 86 * <p>The self-service action identifier. For example, 87 * <code>act-fs7abcd89wxyz</code>.</p> 88 */ WithServiceActionId(const char * value)89 inline FailedServiceActionAssociation& WithServiceActionId(const char* value) { SetServiceActionId(value); return *this;} 90 91 92 /** 93 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 94 */ GetProductId()95 inline const Aws::String& GetProductId() const{ return m_productId; } 96 97 /** 98 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 99 */ ProductIdHasBeenSet()100 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; } 101 102 /** 103 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 104 */ SetProductId(const Aws::String & value)105 inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; } 106 107 /** 108 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 109 */ SetProductId(Aws::String && value)110 inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); } 111 112 /** 113 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 114 */ SetProductId(const char * value)115 inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); } 116 117 /** 118 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 119 */ WithProductId(const Aws::String & value)120 inline FailedServiceActionAssociation& WithProductId(const Aws::String& value) { SetProductId(value); return *this;} 121 122 /** 123 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 124 */ WithProductId(Aws::String && value)125 inline FailedServiceActionAssociation& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;} 126 127 /** 128 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 129 */ WithProductId(const char * value)130 inline FailedServiceActionAssociation& WithProductId(const char* value) { SetProductId(value); return *this;} 131 132 133 /** 134 * <p>The identifier of the provisioning artifact. For example, 135 * <code>pa-4abcdjnxjj6ne</code>.</p> 136 */ GetProvisioningArtifactId()137 inline const Aws::String& GetProvisioningArtifactId() const{ return m_provisioningArtifactId; } 138 139 /** 140 * <p>The identifier of the provisioning artifact. For example, 141 * <code>pa-4abcdjnxjj6ne</code>.</p> 142 */ ProvisioningArtifactIdHasBeenSet()143 inline bool ProvisioningArtifactIdHasBeenSet() const { return m_provisioningArtifactIdHasBeenSet; } 144 145 /** 146 * <p>The identifier of the provisioning artifact. For example, 147 * <code>pa-4abcdjnxjj6ne</code>.</p> 148 */ SetProvisioningArtifactId(const Aws::String & value)149 inline void SetProvisioningArtifactId(const Aws::String& value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId = value; } 150 151 /** 152 * <p>The identifier of the provisioning artifact. For example, 153 * <code>pa-4abcdjnxjj6ne</code>.</p> 154 */ SetProvisioningArtifactId(Aws::String && value)155 inline void SetProvisioningArtifactId(Aws::String&& value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId = std::move(value); } 156 157 /** 158 * <p>The identifier of the provisioning artifact. For example, 159 * <code>pa-4abcdjnxjj6ne</code>.</p> 160 */ SetProvisioningArtifactId(const char * value)161 inline void SetProvisioningArtifactId(const char* value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId.assign(value); } 162 163 /** 164 * <p>The identifier of the provisioning artifact. For example, 165 * <code>pa-4abcdjnxjj6ne</code>.</p> 166 */ WithProvisioningArtifactId(const Aws::String & value)167 inline FailedServiceActionAssociation& WithProvisioningArtifactId(const Aws::String& value) { SetProvisioningArtifactId(value); return *this;} 168 169 /** 170 * <p>The identifier of the provisioning artifact. For example, 171 * <code>pa-4abcdjnxjj6ne</code>.</p> 172 */ WithProvisioningArtifactId(Aws::String && value)173 inline FailedServiceActionAssociation& WithProvisioningArtifactId(Aws::String&& value) { SetProvisioningArtifactId(std::move(value)); return *this;} 174 175 /** 176 * <p>The identifier of the provisioning artifact. For example, 177 * <code>pa-4abcdjnxjj6ne</code>.</p> 178 */ WithProvisioningArtifactId(const char * value)179 inline FailedServiceActionAssociation& WithProvisioningArtifactId(const char* value) { SetProvisioningArtifactId(value); return *this;} 180 181 182 /** 183 * <p>The error code. Valid values are listed below.</p> 184 */ GetErrorCode()185 inline const ServiceActionAssociationErrorCode& GetErrorCode() const{ return m_errorCode; } 186 187 /** 188 * <p>The error code. Valid values are listed below.</p> 189 */ ErrorCodeHasBeenSet()190 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } 191 192 /** 193 * <p>The error code. Valid values are listed below.</p> 194 */ SetErrorCode(const ServiceActionAssociationErrorCode & value)195 inline void SetErrorCode(const ServiceActionAssociationErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } 196 197 /** 198 * <p>The error code. Valid values are listed below.</p> 199 */ SetErrorCode(ServiceActionAssociationErrorCode && value)200 inline void SetErrorCode(ServiceActionAssociationErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } 201 202 /** 203 * <p>The error code. Valid values are listed below.</p> 204 */ WithErrorCode(const ServiceActionAssociationErrorCode & value)205 inline FailedServiceActionAssociation& WithErrorCode(const ServiceActionAssociationErrorCode& value) { SetErrorCode(value); return *this;} 206 207 /** 208 * <p>The error code. Valid values are listed below.</p> 209 */ WithErrorCode(ServiceActionAssociationErrorCode && value)210 inline FailedServiceActionAssociation& WithErrorCode(ServiceActionAssociationErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} 211 212 213 /** 214 * <p>A text description of the error.</p> 215 */ GetErrorMessage()216 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } 217 218 /** 219 * <p>A text description of the error.</p> 220 */ ErrorMessageHasBeenSet()221 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } 222 223 /** 224 * <p>A text description of the error.</p> 225 */ SetErrorMessage(const Aws::String & value)226 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } 227 228 /** 229 * <p>A text description of the error.</p> 230 */ SetErrorMessage(Aws::String && value)231 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } 232 233 /** 234 * <p>A text description of the error.</p> 235 */ SetErrorMessage(const char * value)236 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } 237 238 /** 239 * <p>A text description of the error.</p> 240 */ WithErrorMessage(const Aws::String & value)241 inline FailedServiceActionAssociation& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} 242 243 /** 244 * <p>A text description of the error.</p> 245 */ WithErrorMessage(Aws::String && value)246 inline FailedServiceActionAssociation& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} 247 248 /** 249 * <p>A text description of the error.</p> 250 */ WithErrorMessage(const char * value)251 inline FailedServiceActionAssociation& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} 252 253 private: 254 255 Aws::String m_serviceActionId; 256 bool m_serviceActionIdHasBeenSet; 257 258 Aws::String m_productId; 259 bool m_productIdHasBeenSet; 260 261 Aws::String m_provisioningArtifactId; 262 bool m_provisioningArtifactIdHasBeenSet; 263 264 ServiceActionAssociationErrorCode m_errorCode; 265 bool m_errorCodeHasBeenSet; 266 267 Aws::String m_errorMessage; 268 bool m_errorMessageHasBeenSet; 269 }; 270 271 } // namespace Model 272 } // namespace ServiceCatalog 273 } // namespace Aws 274