/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 ImportResourcesToDraftAppVersionResult { public: AWS_RESILIENCEHUB_API ImportResourcesToDraftAppVersionResult(); AWS_RESILIENCEHUB_API ImportResourcesToDraftAppVersionResult(const Aws::AmazonWebServiceResult& result); AWS_RESILIENCEHUB_API ImportResourcesToDraftAppVersionResult& 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 ImportResourcesToDraftAppVersionResult& 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 ImportResourcesToDraftAppVersionResult& 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 ImportResourcesToDraftAppVersionResult& 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 ImportResourcesToDraftAppVersionResult& WithAppVersion(const Aws::String& value) { SetAppVersion(value); return *this;} /** *

The version of the application.

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

The version of the application.

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

The input sources of the Amazon Elastic Kubernetes Service resources you have * imported.

*/ inline const Aws::Vector& GetEksSources() const{ return m_eksSources; } /** *

The input sources of the Amazon Elastic Kubernetes Service resources you have * imported.

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

The input sources of the Amazon Elastic Kubernetes Service resources you have * imported.

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

The input sources of the Amazon Elastic Kubernetes Service resources you have * imported.

*/ inline ImportResourcesToDraftAppVersionResult& WithEksSources(const Aws::Vector& value) { SetEksSources(value); return *this;} /** *

The input sources of the Amazon Elastic Kubernetes Service resources you have * imported.

*/ inline ImportResourcesToDraftAppVersionResult& WithEksSources(Aws::Vector&& value) { SetEksSources(std::move(value)); return *this;} /** *

The input sources of the Amazon Elastic Kubernetes Service resources you have * imported.

*/ inline ImportResourcesToDraftAppVersionResult& AddEksSources(const EksSource& value) { m_eksSources.push_back(value); return *this; } /** *

The input sources of the Amazon Elastic Kubernetes Service resources you have * imported.

*/ inline ImportResourcesToDraftAppVersionResult& AddEksSources(EksSource&& value) { m_eksSources.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) for the resources you have imported.

*/ inline const Aws::Vector& GetSourceArns() const{ return m_sourceArns; } /** *

The Amazon Resource Names (ARNs) for the resources you have imported.

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

The Amazon Resource Names (ARNs) for the resources you have imported.

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

The Amazon Resource Names (ARNs) for the resources you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& WithSourceArns(const Aws::Vector& value) { SetSourceArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) for the resources you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& WithSourceArns(Aws::Vector&& value) { SetSourceArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) for the resources you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& AddSourceArns(const Aws::String& value) { m_sourceArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) for the resources you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& AddSourceArns(Aws::String&& value) { m_sourceArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) for the resources you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& AddSourceArns(const char* value) { m_sourceArns.push_back(value); return *this; } /** *

The status of the action.

*/ inline const ResourceImportStatusType& GetStatus() const{ return m_status; } /** *

The status of the action.

*/ inline void SetStatus(const ResourceImportStatusType& value) { m_status = value; } /** *

The status of the action.

*/ inline void SetStatus(ResourceImportStatusType&& value) { m_status = std::move(value); } /** *

The status of the action.

*/ inline ImportResourcesToDraftAppVersionResult& WithStatus(const ResourceImportStatusType& value) { SetStatus(value); return *this;} /** *

The status of the action.

*/ inline ImportResourcesToDraftAppVersionResult& WithStatus(ResourceImportStatusType&& value) { SetStatus(std::move(value)); return *this;} /** *

A list of terraform file s3 URLs you have imported.

*/ inline const Aws::Vector& GetTerraformSources() const{ return m_terraformSources; } /** *

A list of terraform file s3 URLs you have imported.

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

A list of terraform file s3 URLs you have imported.

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

A list of terraform file s3 URLs you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& WithTerraformSources(const Aws::Vector& value) { SetTerraformSources(value); return *this;} /** *

A list of terraform file s3 URLs you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& WithTerraformSources(Aws::Vector&& value) { SetTerraformSources(std::move(value)); return *this;} /** *

A list of terraform file s3 URLs you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& AddTerraformSources(const TerraformSource& value) { m_terraformSources.push_back(value); return *this; } /** *

A list of terraform file s3 URLs you have imported.

*/ inline ImportResourcesToDraftAppVersionResult& AddTerraformSources(TerraformSource&& value) { m_terraformSources.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 ImportResourcesToDraftAppVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ImportResourcesToDraftAppVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ImportResourcesToDraftAppVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_appArn; Aws::String m_appVersion; Aws::Vector m_eksSources; Aws::Vector m_sourceArns; ResourceImportStatusType m_status; Aws::Vector m_terraformSources; Aws::String m_requestId; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws