/** * 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 #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace CloudFormation { namespace Model { /** *

The output for the GetTemplateSummary action.

See Also:

* AWS * API Reference

*/ class GetTemplateSummaryResult { public: AWS_CLOUDFORMATION_API GetTemplateSummaryResult(); AWS_CLOUDFORMATION_API GetTemplateSummaryResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDFORMATION_API GetTemplateSummaryResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of parameter declarations that describe various properties for each * parameter.

*/ inline const Aws::Vector& GetParameters() const{ return m_parameters; } /** *

A list of parameter declarations that describe various properties for each * parameter.

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

A list of parameter declarations that describe various properties for each * parameter.

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

A list of parameter declarations that describe various properties for each * parameter.

*/ inline GetTemplateSummaryResult& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} /** *

A list of parameter declarations that describe various properties for each * parameter.

*/ inline GetTemplateSummaryResult& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} /** *

A list of parameter declarations that describe various properties for each * parameter.

*/ inline GetTemplateSummaryResult& AddParameters(const ParameterDeclaration& value) { m_parameters.push_back(value); return *this; } /** *

A list of parameter declarations that describe various properties for each * parameter.

*/ inline GetTemplateSummaryResult& AddParameters(ParameterDeclaration&& value) { m_parameters.push_back(std::move(value)); return *this; } /** *

The value that's defined in the Description property of the * template.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The value that's defined in the Description property of the * template.

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

The value that's defined in the Description property of the * template.

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

The value that's defined in the Description property of the * template.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The value that's defined in the Description property of the * template.

*/ inline GetTemplateSummaryResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The value that's defined in the Description property of the * template.

*/ inline GetTemplateSummaryResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The value that's defined in the Description property of the * template.

*/ inline GetTemplateSummaryResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or * CAPABILITY_NAMED_IAM value for this parameter when you use the * CreateStack or UpdateStack actions with your template; otherwise, * those actions return an InsufficientCapabilities error.

For * more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline const Aws::Vector& GetCapabilities() const{ return m_capabilities; } /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or * CAPABILITY_NAMED_IAM value for this parameter when you use the * CreateStack or UpdateStack actions with your template; otherwise, * those actions return an InsufficientCapabilities error.

For * more information, see Acknowledging * IAM Resources in CloudFormation Templates.

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

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or * CAPABILITY_NAMED_IAM value for this parameter when you use the * CreateStack or UpdateStack actions with your template; otherwise, * those actions return an InsufficientCapabilities error.

For * more information, see Acknowledging * IAM Resources in CloudFormation Templates.

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

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or * CAPABILITY_NAMED_IAM value for this parameter when you use the * CreateStack or UpdateStack actions with your template; otherwise, * those actions return an InsufficientCapabilities error.

For * more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline GetTemplateSummaryResult& WithCapabilities(const Aws::Vector& value) { SetCapabilities(value); return *this;} /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or * CAPABILITY_NAMED_IAM value for this parameter when you use the * CreateStack or UpdateStack actions with your template; otherwise, * those actions return an InsufficientCapabilities error.

For * more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline GetTemplateSummaryResult& WithCapabilities(Aws::Vector&& value) { SetCapabilities(std::move(value)); return *this;} /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or * CAPABILITY_NAMED_IAM value for this parameter when you use the * CreateStack or UpdateStack actions with your template; otherwise, * those actions return an InsufficientCapabilities error.

For * more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline GetTemplateSummaryResult& AddCapabilities(const Capability& value) { m_capabilities.push_back(value); return *this; } /** *

The capabilities found within the template. If your template contains IAM * resources, you must specify the CAPABILITY_IAM or * CAPABILITY_NAMED_IAM value for this parameter when you use the * CreateStack or UpdateStack actions with your template; otherwise, * those actions return an InsufficientCapabilities error.

For * more information, see Acknowledging * IAM Resources in CloudFormation Templates.

*/ inline GetTemplateSummaryResult& AddCapabilities(Capability&& value) { m_capabilities.push_back(std::move(value)); return *this; } /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline const Aws::String& GetCapabilitiesReason() const{ return m_capabilitiesReason; } /** *

The list of resources that generated the values in the * Capabilities response element.

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

The list of resources that generated the values in the * Capabilities response element.

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

The list of resources that generated the values in the * Capabilities response element.

*/ inline void SetCapabilitiesReason(const char* value) { m_capabilitiesReason.assign(value); } /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline GetTemplateSummaryResult& WithCapabilitiesReason(const Aws::String& value) { SetCapabilitiesReason(value); return *this;} /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline GetTemplateSummaryResult& WithCapabilitiesReason(Aws::String&& value) { SetCapabilitiesReason(std::move(value)); return *this;} /** *

The list of resources that generated the values in the * Capabilities response element.

*/ inline GetTemplateSummaryResult& WithCapabilitiesReason(const char* value) { SetCapabilitiesReason(value); return *this;} /** *

A list of all the template resource types that are defined in the template, * such as AWS::EC2::Instance, AWS::Dynamo::Table, and * Custom::MyCustomInstance.

*/ inline const Aws::Vector& GetResourceTypes() const{ return m_resourceTypes; } /** *

A list of all the template resource types that are defined in the template, * such as AWS::EC2::Instance, AWS::Dynamo::Table, and * Custom::MyCustomInstance.

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

A list of all the template resource types that are defined in the template, * such as AWS::EC2::Instance, AWS::Dynamo::Table, and * Custom::MyCustomInstance.

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

A list of all the template resource types that are defined in the template, * such as AWS::EC2::Instance, AWS::Dynamo::Table, and * Custom::MyCustomInstance.

*/ inline GetTemplateSummaryResult& WithResourceTypes(const Aws::Vector& value) { SetResourceTypes(value); return *this;} /** *

A list of all the template resource types that are defined in the template, * such as AWS::EC2::Instance, AWS::Dynamo::Table, and * Custom::MyCustomInstance.

*/ inline GetTemplateSummaryResult& WithResourceTypes(Aws::Vector&& value) { SetResourceTypes(std::move(value)); return *this;} /** *

A list of all the template resource types that are defined in the template, * such as AWS::EC2::Instance, AWS::Dynamo::Table, and * Custom::MyCustomInstance.

*/ inline GetTemplateSummaryResult& AddResourceTypes(const Aws::String& value) { m_resourceTypes.push_back(value); return *this; } /** *

A list of all the template resource types that are defined in the template, * such as AWS::EC2::Instance, AWS::Dynamo::Table, and * Custom::MyCustomInstance.

*/ inline GetTemplateSummaryResult& AddResourceTypes(Aws::String&& value) { m_resourceTypes.push_back(std::move(value)); return *this; } /** *

A list of all the template resource types that are defined in the template, * such as AWS::EC2::Instance, AWS::Dynamo::Table, and * Custom::MyCustomInstance.

*/ inline GetTemplateSummaryResult& AddResourceTypes(const char* value) { m_resourceTypes.push_back(value); return *this; } /** *

The Amazon Web Services template format version, which identifies the * capabilities of the template.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The Amazon Web Services template format version, which identifies the * capabilities of the template.

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

The Amazon Web Services template format version, which identifies the * capabilities of the template.

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

The Amazon Web Services template format version, which identifies the * capabilities of the template.

*/ inline void SetVersion(const char* value) { m_version.assign(value); } /** *

The Amazon Web Services template format version, which identifies the * capabilities of the template.

*/ inline GetTemplateSummaryResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The Amazon Web Services template format version, which identifies the * capabilities of the template.

*/ inline GetTemplateSummaryResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The Amazon Web Services template format version, which identifies the * capabilities of the template.

*/ inline GetTemplateSummaryResult& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The value that's defined for the Metadata property of the * template.

*/ inline const Aws::String& GetMetadata() const{ return m_metadata; } /** *

The value that's defined for the Metadata property of the * template.

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

The value that's defined for the Metadata property of the * template.

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

The value that's defined for the Metadata property of the * template.

*/ inline void SetMetadata(const char* value) { m_metadata.assign(value); } /** *

The value that's defined for the Metadata property of the * template.

*/ inline GetTemplateSummaryResult& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;} /** *

The value that's defined for the Metadata property of the * template.

*/ inline GetTemplateSummaryResult& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;} /** *

The value that's defined for the Metadata property of the * template.

*/ inline GetTemplateSummaryResult& WithMetadata(const char* value) { SetMetadata(value); return *this;} /** *

A list of the transforms that are declared in the template.

*/ inline const Aws::Vector& GetDeclaredTransforms() const{ return m_declaredTransforms; } /** *

A list of the transforms that are declared in the template.

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

A list of the transforms that are declared in the template.

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

A list of the transforms that are declared in the template.

*/ inline GetTemplateSummaryResult& WithDeclaredTransforms(const Aws::Vector& value) { SetDeclaredTransforms(value); return *this;} /** *

A list of the transforms that are declared in the template.

*/ inline GetTemplateSummaryResult& WithDeclaredTransforms(Aws::Vector&& value) { SetDeclaredTransforms(std::move(value)); return *this;} /** *

A list of the transforms that are declared in the template.

*/ inline GetTemplateSummaryResult& AddDeclaredTransforms(const Aws::String& value) { m_declaredTransforms.push_back(value); return *this; } /** *

A list of the transforms that are declared in the template.

*/ inline GetTemplateSummaryResult& AddDeclaredTransforms(Aws::String&& value) { m_declaredTransforms.push_back(std::move(value)); return *this; } /** *

A list of the transforms that are declared in the template.

*/ inline GetTemplateSummaryResult& AddDeclaredTransforms(const char* value) { m_declaredTransforms.push_back(value); return *this; } /** *

A list of resource identifier summaries that describe the target resources of * an import operation and the properties you can provide during the import to * identify the target resources. For example, BucketName is a * possible identifier property for an AWS::S3::Bucket resource.

*/ inline const Aws::Vector& GetResourceIdentifierSummaries() const{ return m_resourceIdentifierSummaries; } /** *

A list of resource identifier summaries that describe the target resources of * an import operation and the properties you can provide during the import to * identify the target resources. For example, BucketName is a * possible identifier property for an AWS::S3::Bucket resource.

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

A list of resource identifier summaries that describe the target resources of * an import operation and the properties you can provide during the import to * identify the target resources. For example, BucketName is a * possible identifier property for an AWS::S3::Bucket resource.

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

A list of resource identifier summaries that describe the target resources of * an import operation and the properties you can provide during the import to * identify the target resources. For example, BucketName is a * possible identifier property for an AWS::S3::Bucket resource.

*/ inline GetTemplateSummaryResult& WithResourceIdentifierSummaries(const Aws::Vector& value) { SetResourceIdentifierSummaries(value); return *this;} /** *

A list of resource identifier summaries that describe the target resources of * an import operation and the properties you can provide during the import to * identify the target resources. For example, BucketName is a * possible identifier property for an AWS::S3::Bucket resource.

*/ inline GetTemplateSummaryResult& WithResourceIdentifierSummaries(Aws::Vector&& value) { SetResourceIdentifierSummaries(std::move(value)); return *this;} /** *

A list of resource identifier summaries that describe the target resources of * an import operation and the properties you can provide during the import to * identify the target resources. For example, BucketName is a * possible identifier property for an AWS::S3::Bucket resource.

*/ inline GetTemplateSummaryResult& AddResourceIdentifierSummaries(const ResourceIdentifierSummary& value) { m_resourceIdentifierSummaries.push_back(value); return *this; } /** *

A list of resource identifier summaries that describe the target resources of * an import operation and the properties you can provide during the import to * identify the target resources. For example, BucketName is a * possible identifier property for an AWS::S3::Bucket resource.

*/ inline GetTemplateSummaryResult& AddResourceIdentifierSummaries(ResourceIdentifierSummary&& value) { m_resourceIdentifierSummaries.push_back(std::move(value)); return *this; } /** *

An object containing any warnings returned.

*/ inline const Warnings& GetWarnings() const{ return m_warnings; } /** *

An object containing any warnings returned.

*/ inline void SetWarnings(const Warnings& value) { m_warnings = value; } /** *

An object containing any warnings returned.

*/ inline void SetWarnings(Warnings&& value) { m_warnings = std::move(value); } /** *

An object containing any warnings returned.

*/ inline GetTemplateSummaryResult& WithWarnings(const Warnings& value) { SetWarnings(value); return *this;} /** *

An object containing any warnings returned.

*/ inline GetTemplateSummaryResult& WithWarnings(Warnings&& value) { SetWarnings(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline GetTemplateSummaryResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetTemplateSummaryResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_parameters; Aws::String m_description; Aws::Vector m_capabilities; Aws::String m_capabilitiesReason; Aws::Vector m_resourceTypes; Aws::String m_version; Aws::String m_metadata; Aws::Vector m_declaredTransforms; Aws::Vector m_resourceIdentifierSummaries; Warnings m_warnings; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace CloudFormation } // namespace Aws