/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Proton { namespace Model { /** */ class UpdateEnvironmentTemplateVersionRequest : public ProtonRequest { public: AWS_PROTON_API UpdateEnvironmentTemplateVersionRequest(); // 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 "UpdateEnvironmentTemplateVersion"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A description of environment template version to update.

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

A description of environment template version to update.

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

A description of environment template version to update.

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

A description of environment template version to update.

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

A description of environment template version to update.

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

A description of environment template version to update.

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

A description of environment template version to update.

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

A description of environment template version to update.

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

To update a major version of an environment template, include major * Version.

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

To update a major version of an environment template, include major * Version.

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

To update a major version of an environment template, include major * Version.

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

To update a major version of an environment template, include major * Version.

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

To update a major version of an environment template, include major * Version.

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

To update a major version of an environment template, include major * Version.

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

To update a major version of an environment template, include major * Version.

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

To update a major version of an environment template, include major * Version.

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

To update a minor version of an environment template, include * minorVersion.

*/ inline const Aws::String& GetMinorVersion() const{ return m_minorVersion; } /** *

To update a minor version of an environment template, include * minorVersion.

*/ inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; } /** *

To update a minor version of an environment template, include * minorVersion.

*/ inline void SetMinorVersion(const Aws::String& value) { m_minorVersionHasBeenSet = true; m_minorVersion = value; } /** *

To update a minor version of an environment template, include * minorVersion.

*/ inline void SetMinorVersion(Aws::String&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::move(value); } /** *

To update a minor version of an environment template, include * minorVersion.

*/ inline void SetMinorVersion(const char* value) { m_minorVersionHasBeenSet = true; m_minorVersion.assign(value); } /** *

To update a minor version of an environment template, include * minorVersion.

*/ inline UpdateEnvironmentTemplateVersionRequest& WithMinorVersion(const Aws::String& value) { SetMinorVersion(value); return *this;} /** *

To update a minor version of an environment template, include * minorVersion.

*/ inline UpdateEnvironmentTemplateVersionRequest& WithMinorVersion(Aws::String&& value) { SetMinorVersion(std::move(value)); return *this;} /** *

To update a minor version of an environment template, include * minorVersion.

*/ inline UpdateEnvironmentTemplateVersionRequest& WithMinorVersion(const char* value) { SetMinorVersion(value); return *this;} /** *

The status of the environment template minor version to update.

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

The status of the environment template minor version to update.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the environment template minor version to update.

*/ inline void SetStatus(const TemplateVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the environment template minor version to update.

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

The status of the environment template minor version to update.

*/ inline UpdateEnvironmentTemplateVersionRequest& WithStatus(const TemplateVersionStatus& value) { SetStatus(value); return *this;} /** *

The status of the environment template minor version to update.

*/ inline UpdateEnvironmentTemplateVersionRequest& WithStatus(TemplateVersionStatus&& value) { SetStatus(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 UpdateEnvironmentTemplateVersionRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the environment template.

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

The name of the environment template.

*/ inline UpdateEnvironmentTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_majorVersion; bool m_majorVersionHasBeenSet = false; Aws::String m_minorVersion; bool m_minorVersionHasBeenSet = false; TemplateVersionStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_templateName; bool m_templateNameHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws