/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudFormation { namespace Model { /** *

The input for ValidateTemplate action.

See Also:

AWS * API Reference

*/ class ValidateTemplateRequest : public CloudFormationRequest { public: AWS_CLOUDFORMATION_API ValidateTemplateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ValidateTemplate"; } AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; protected: AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Structure containing the template body with a minimum length of 1 byte and a * maximum length of 51,200 bytes. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline const Aws::String& GetTemplateBody() const{ return m_templateBody; } /** *

Structure containing the template body with a minimum length of 1 byte and a * maximum length of 51,200 bytes. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; } /** *

Structure containing the template body with a minimum length of 1 byte and a * maximum length of 51,200 bytes. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; } /** *

Structure containing the template body with a minimum length of 1 byte and a * maximum length of 51,200 bytes. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); } /** *

Structure containing the template body with a minimum length of 1 byte and a * maximum length of 51,200 bytes. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); } /** *

Structure containing the template body with a minimum length of 1 byte and a * maximum length of 51,200 bytes. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline ValidateTemplateRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;} /** *

Structure containing the template body with a minimum length of 1 byte and a * maximum length of 51,200 bytes. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline ValidateTemplateRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;} /** *

Structure containing the template body with a minimum length of 1 byte and a * maximum length of 51,200 bytes. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline ValidateTemplateRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;} /** *

Location of file containing the template body. The URL must point to a * template (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a * Systems Manager document. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline const Aws::String& GetTemplateURL() const{ return m_templateURL; } /** *

Location of file containing the template body. The URL must point to a * template (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a * Systems Manager document. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; } /** *

Location of file containing the template body. The URL must point to a * template (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a * Systems Manager document. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline void SetTemplateURL(const Aws::String& value) { m_templateURLHasBeenSet = true; m_templateURL = value; } /** *

Location of file containing the template body. The URL must point to a * template (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a * Systems Manager document. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline void SetTemplateURL(Aws::String&& value) { m_templateURLHasBeenSet = true; m_templateURL = std::move(value); } /** *

Location of file containing the template body. The URL must point to a * template (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a * Systems Manager document. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline void SetTemplateURL(const char* value) { m_templateURLHasBeenSet = true; m_templateURL.assign(value); } /** *

Location of file containing the template body. The URL must point to a * template (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a * Systems Manager document. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline ValidateTemplateRequest& WithTemplateURL(const Aws::String& value) { SetTemplateURL(value); return *this;} /** *

Location of file containing the template body. The URL must point to a * template (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a * Systems Manager document. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline ValidateTemplateRequest& WithTemplateURL(Aws::String&& value) { SetTemplateURL(std::move(value)); return *this;} /** *

Location of file containing the template body. The URL must point to a * template (max size: 460,800 bytes) that is located in an Amazon S3 bucket or a * Systems Manager document. For more information, go to Template * Anatomy in the CloudFormation User Guide.

Conditional: You must pass * TemplateURL or TemplateBody. If both are passed, only * TemplateBody is used.

*/ inline ValidateTemplateRequest& WithTemplateURL(const char* value) { SetTemplateURL(value); return *this;} private: Aws::String m_templateBody; bool m_templateBodyHasBeenSet = false; Aws::String m_templateURL; bool m_templateURLHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws