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

Information about the provisioning artifact.

*/ inline const ProvisioningArtifactDetail& GetProvisioningArtifactDetail() const{ return m_provisioningArtifactDetail; } /** *

Information about the provisioning artifact.

*/ inline void SetProvisioningArtifactDetail(const ProvisioningArtifactDetail& value) { m_provisioningArtifactDetail = value; } /** *

Information about the provisioning artifact.

*/ inline void SetProvisioningArtifactDetail(ProvisioningArtifactDetail&& value) { m_provisioningArtifactDetail = std::move(value); } /** *

Information about the provisioning artifact.

*/ inline CreateProvisioningArtifactResult& WithProvisioningArtifactDetail(const ProvisioningArtifactDetail& value) { SetProvisioningArtifactDetail(value); return *this;} /** *

Information about the provisioning artifact.

*/ inline CreateProvisioningArtifactResult& WithProvisioningArtifactDetail(ProvisioningArtifactDetail&& value) { SetProvisioningArtifactDetail(std::move(value)); return *this;} /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline const Aws::Map& GetInfo() const{ return m_info; } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline void SetInfo(const Aws::Map& value) { m_info = value; } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline void SetInfo(Aws::Map&& value) { m_info = std::move(value); } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& WithInfo(const Aws::Map& value) { SetInfo(value); return *this;} /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& WithInfo(Aws::Map&& value) { SetInfo(std::move(value)); return *this;} /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& AddInfo(const Aws::String& key, const Aws::String& value) { m_info.emplace(key, value); return *this; } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& AddInfo(Aws::String&& key, const Aws::String& value) { m_info.emplace(std::move(key), value); return *this; } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& AddInfo(const Aws::String& key, Aws::String&& value) { m_info.emplace(key, std::move(value)); return *this; } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& AddInfo(Aws::String&& key, Aws::String&& value) { m_info.emplace(std::move(key), std::move(value)); return *this; } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& AddInfo(const char* key, Aws::String&& value) { m_info.emplace(key, std::move(value)); return *this; } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& AddInfo(Aws::String&& key, const char* value) { m_info.emplace(std::move(key), value); return *this; } /** *

Specify the template source with one of the following options, but not both. * Keys accepted: [ LoadTemplateFromURL, * ImportFromPhysicalId ].

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* LoadTemplateFromURL

Use the URL of the CloudFormation * template in Amazon S3 or GitHub in JSON format.

* ImportFromPhysicalId

Use the physical id of the resource * that contains the template; currently supports CloudFormation stack ARN.

*/ inline CreateProvisioningArtifactResult& AddInfo(const char* key, const char* value) { m_info.emplace(key, value); return *this; } /** *

The status of the current request.

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

The status of the current request.

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

The status of the current request.

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

The status of the current request.

*/ inline CreateProvisioningArtifactResult& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *

The status of the current request.

*/ inline CreateProvisioningArtifactResult& WithStatus(Status&& value) { SetStatus(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 CreateProvisioningArtifactResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateProvisioningArtifactResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateProvisioningArtifactResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ProvisioningArtifactDetail m_provisioningArtifactDetail; Aws::Map m_info; Status m_status; Aws::String m_requestId; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws