/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ResilienceHub { namespace Model { class AddDraftAppVersionResourceMappingsResult { public: AWS_RESILIENCEHUB_API AddDraftAppVersionResourceMappingsResult(); AWS_RESILIENCEHUB_API AddDraftAppVersionResourceMappingsResult(const Aws::AmazonWebServiceResult& result); AWS_RESILIENCEHUB_API AddDraftAppVersionResourceMappingsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline const Aws::String& GetAppArn() const{ return m_appArn; } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAppArn(const Aws::String& value) { m_appArn = value; } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAppArn(Aws::String&& value) { m_appArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAppArn(const char* value) { m_appArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline AddDraftAppVersionResourceMappingsResult& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline AddDraftAppVersionResourceMappingsResult& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline AddDraftAppVersionResourceMappingsResult& WithAppArn(const char* value) { SetAppArn(value); return *this;} /** *

The version of the application.

*/ inline const Aws::String& GetAppVersion() const{ return m_appVersion; } /** *

The version of the application.

*/ inline void SetAppVersion(const Aws::String& value) { m_appVersion = value; } /** *

The version of the application.

*/ inline void SetAppVersion(Aws::String&& value) { m_appVersion = std::move(value); } /** *

The version of the application.

*/ inline void SetAppVersion(const char* value) { m_appVersion.assign(value); } /** *

The version of the application.

*/ inline AddDraftAppVersionResourceMappingsResult& WithAppVersion(const Aws::String& value) { SetAppVersion(value); return *this;} /** *

The version of the application.

*/ inline AddDraftAppVersionResourceMappingsResult& WithAppVersion(Aws::String&& value) { SetAppVersion(std::move(value)); return *this;} /** *

The version of the application.

*/ inline AddDraftAppVersionResourceMappingsResult& WithAppVersion(const char* value) { SetAppVersion(value); return *this;} /** *

Mappings used to map logical resources from the template to physical * resources. You can use the mapping type CFN_STACK if the * application template uses a logical stack name. Or you can map individual * resources by using the mapping type RESOURCE. We recommend using * the mapping type CFN_STACK if the application is backed by a * CloudFormation stack.

*/ inline const Aws::Vector& GetResourceMappings() const{ return m_resourceMappings; } /** *

Mappings used to map logical resources from the template to physical * resources. You can use the mapping type CFN_STACK if the * application template uses a logical stack name. Or you can map individual * resources by using the mapping type RESOURCE. We recommend using * the mapping type CFN_STACK if the application is backed by a * CloudFormation stack.

*/ inline void SetResourceMappings(const Aws::Vector& value) { m_resourceMappings = value; } /** *

Mappings used to map logical resources from the template to physical * resources. You can use the mapping type CFN_STACK if the * application template uses a logical stack name. Or you can map individual * resources by using the mapping type RESOURCE. We recommend using * the mapping type CFN_STACK if the application is backed by a * CloudFormation stack.

*/ inline void SetResourceMappings(Aws::Vector&& value) { m_resourceMappings = std::move(value); } /** *

Mappings used to map logical resources from the template to physical * resources. You can use the mapping type CFN_STACK if the * application template uses a logical stack name. Or you can map individual * resources by using the mapping type RESOURCE. We recommend using * the mapping type CFN_STACK if the application is backed by a * CloudFormation stack.

*/ inline AddDraftAppVersionResourceMappingsResult& WithResourceMappings(const Aws::Vector& value) { SetResourceMappings(value); return *this;} /** *

Mappings used to map logical resources from the template to physical * resources. You can use the mapping type CFN_STACK if the * application template uses a logical stack name. Or you can map individual * resources by using the mapping type RESOURCE. We recommend using * the mapping type CFN_STACK if the application is backed by a * CloudFormation stack.

*/ inline AddDraftAppVersionResourceMappingsResult& WithResourceMappings(Aws::Vector&& value) { SetResourceMappings(std::move(value)); return *this;} /** *

Mappings used to map logical resources from the template to physical * resources. You can use the mapping type CFN_STACK if the * application template uses a logical stack name. Or you can map individual * resources by using the mapping type RESOURCE. We recommend using * the mapping type CFN_STACK if the application is backed by a * CloudFormation stack.

*/ inline AddDraftAppVersionResourceMappingsResult& AddResourceMappings(const ResourceMapping& value) { m_resourceMappings.push_back(value); return *this; } /** *

Mappings used to map logical resources from the template to physical * resources. You can use the mapping type CFN_STACK if the * application template uses a logical stack name. Or you can map individual * resources by using the mapping type RESOURCE. We recommend using * the mapping type CFN_STACK if the application is backed by a * CloudFormation stack.

*/ inline AddDraftAppVersionResourceMappingsResult& AddResourceMappings(ResourceMapping&& value) { m_resourceMappings.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline AddDraftAppVersionResourceMappingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AddDraftAppVersionResourceMappingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AddDraftAppVersionResourceMappingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_appArn; Aws::String m_appVersion; Aws::Vector m_resourceMappings; Aws::String m_requestId; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws