/** * 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 namespace Aws { namespace Proton { namespace Model { /** */ class CreateEnvironmentTemplateVersionRequest : public ProtonRequest { public: AWS_PROTON_API CreateEnvironmentTemplateVersionRequest(); // 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 "CreateEnvironmentTemplateVersion"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

When included, if two identical requests are made with the same client token, * Proton returns the environment template version that the first request * created.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

When included, if two identical requests are made with the same client token, * Proton returns the environment template version that the first request * created.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

When included, if two identical requests are made with the same client token, * Proton returns the environment template version that the first request * created.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

When included, if two identical requests are made with the same client token, * Proton returns the environment template version that the first request * created.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

When included, if two identical requests are made with the same client token, * Proton returns the environment template version that the first request * created.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

When included, if two identical requests are made with the same client token, * Proton returns the environment template version that the first request * created.

*/ inline CreateEnvironmentTemplateVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

When included, if two identical requests are made with the same client token, * Proton returns the environment template version that the first request * created.

*/ inline CreateEnvironmentTemplateVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

When included, if two identical requests are made with the same client token, * Proton returns the environment template version that the first request * created.

*/ inline CreateEnvironmentTemplateVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A description of the new version of an environment template.

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

A description of the new version of an environment template.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the new version of an environment template.

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

A description of the new version of an environment template.

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

A description of the new version of an environment template.

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

A description of the new version of an environment template.

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

A description of the new version of an environment template.

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

A description of the new version of an environment template.

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

To create a new minor version of the environment template, include * major Version.

To create a new major and minor version of * the environment template, exclude major Version.

*/ inline const Aws::String& GetMajorVersion() const{ return m_majorVersion; } /** *

To create a new minor version of the environment template, include * major Version.

To create a new major and minor version of * the environment template, exclude major Version.

*/ inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; } /** *

To create a new minor version of the environment template, include * major Version.

To create a new major and minor version of * the environment template, exclude major Version.

*/ inline void SetMajorVersion(const Aws::String& value) { m_majorVersionHasBeenSet = true; m_majorVersion = value; } /** *

To create a new minor version of the environment template, include * major Version.

To create a new major and minor version of * the environment template, exclude major Version.

*/ inline void SetMajorVersion(Aws::String&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::move(value); } /** *

To create a new minor version of the environment template, include * major Version.

To create a new major and minor version of * the environment template, exclude major Version.

*/ inline void SetMajorVersion(const char* value) { m_majorVersionHasBeenSet = true; m_majorVersion.assign(value); } /** *

To create a new minor version of the environment template, include * major Version.

To create a new major and minor version of * the environment template, exclude major Version.

*/ inline CreateEnvironmentTemplateVersionRequest& WithMajorVersion(const Aws::String& value) { SetMajorVersion(value); return *this;} /** *

To create a new minor version of the environment template, include * major Version.

To create a new major and minor version of * the environment template, exclude major Version.

*/ inline CreateEnvironmentTemplateVersionRequest& WithMajorVersion(Aws::String&& value) { SetMajorVersion(std::move(value)); return *this;} /** *

To create a new minor version of the environment template, include * major Version.

To create a new major and minor version of * the environment template, exclude major Version.

*/ inline CreateEnvironmentTemplateVersionRequest& WithMajorVersion(const char* value) { SetMajorVersion(value); return *this;} /** *

An object that includes the template bundle S3 bucket path and name for the * new version of an template.

*/ inline const TemplateVersionSourceInput& GetSource() const{ return m_source; } /** *

An object that includes the template bundle S3 bucket path and name for the * new version of an template.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

An object that includes the template bundle S3 bucket path and name for the * new version of an template.

*/ inline void SetSource(const TemplateVersionSourceInput& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

An object that includes the template bundle S3 bucket path and name for the * new version of an template.

*/ inline void SetSource(TemplateVersionSourceInput&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

An object that includes the template bundle S3 bucket path and name for the * new version of an template.

*/ inline CreateEnvironmentTemplateVersionRequest& WithSource(const TemplateVersionSourceInput& value) { SetSource(value); return *this;} /** *

An object that includes the template bundle S3 bucket path and name for the * new version of an template.

*/ inline CreateEnvironmentTemplateVersionRequest& WithSource(TemplateVersionSourceInput&& value) { SetSource(std::move(value)); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * environment template version. A tag is a key-value pair.

For more * information, see Proton * resources and tagging in the Proton User Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An optional list of metadata items that you can associate with the Proton * environment template version. A tag is a key-value pair.

For more * information, see Proton * resources and tagging in the Proton User Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An optional list of metadata items that you can associate with the Proton * environment template version. A tag is a key-value pair.

For more * information, see Proton * resources and tagging in the Proton User Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An optional list of metadata items that you can associate with the Proton * environment template version. A tag is a key-value pair.

For more * information, see Proton * resources and tagging in the Proton User Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An optional list of metadata items that you can associate with the Proton * environment template version. A tag is a key-value pair.

For more * information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateEnvironmentTemplateVersionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * environment template version. A tag is a key-value pair.

For more * information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateEnvironmentTemplateVersionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * environment template version. A tag is a key-value pair.

For more * information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateEnvironmentTemplateVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An optional list of metadata items that you can associate with the Proton * environment template version. A tag is a key-value pair.

For more * information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateEnvironmentTemplateVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The name of the environment template.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The name of the environment template.

*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *

The name of the environment template.

*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *

The name of the environment template.

*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *

The name of the environment template.

*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *

The name of the environment template.

*/ inline CreateEnvironmentTemplateVersionRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the environment template.

*/ inline CreateEnvironmentTemplateVersionRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The name of the environment template.

*/ inline CreateEnvironmentTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_majorVersion; bool m_majorVersionHasBeenSet = false; TemplateVersionSourceInput m_source; bool m_sourceHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_templateName; bool m_templateNameHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws