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

A description of the environment template.

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

A description of the environment template.

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

A description of the environment template.

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

A description of the environment template.

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

A description of the environment template.

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

A description of the environment template.

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

A description of the environment template.

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

A description of the environment template.

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

The environment template name as displayed in the developer interface.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The environment template name as displayed in the developer interface.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The environment template name as displayed in the developer interface.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The environment template name as displayed in the developer interface.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The environment template name as displayed in the developer interface.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The environment template name as displayed in the developer interface.

*/ inline CreateEnvironmentTemplateRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The environment template name as displayed in the developer interface.

*/ inline CreateEnvironmentTemplateRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The environment template name as displayed in the developer interface.

*/ inline CreateEnvironmentTemplateRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

A customer provided encryption key that Proton uses to encrypt data.

*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *

A customer provided encryption key that Proton uses to encrypt data.

*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *

A customer provided encryption key that Proton uses to encrypt data.

*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *

A customer provided encryption key that Proton uses to encrypt data.

*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *

A customer provided encryption key that Proton uses to encrypt data.

*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *

A customer provided encryption key that Proton uses to encrypt data.

*/ inline CreateEnvironmentTemplateRequest& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *

A customer provided encryption key that Proton uses to encrypt data.

*/ inline CreateEnvironmentTemplateRequest& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

A customer provided encryption key that Proton uses to encrypt data.

*/ inline CreateEnvironmentTemplateRequest& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} /** *

The name of the environment template.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the environment template.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the environment template.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the environment template.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the environment template.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the environment template.

*/ inline CreateEnvironmentTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the environment template.

*/ inline CreateEnvironmentTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the environment template.

*/ inline CreateEnvironmentTemplateRequest& WithName(const char* value) { SetName(value); return *this;} /** *

When included, indicates that the environment template is for customer * provisioned and managed infrastructure.

*/ inline const Provisioning& GetProvisioning() const{ return m_provisioning; } /** *

When included, indicates that the environment template is for customer * provisioned and managed infrastructure.

*/ inline bool ProvisioningHasBeenSet() const { return m_provisioningHasBeenSet; } /** *

When included, indicates that the environment template is for customer * provisioned and managed infrastructure.

*/ inline void SetProvisioning(const Provisioning& value) { m_provisioningHasBeenSet = true; m_provisioning = value; } /** *

When included, indicates that the environment template is for customer * provisioned and managed infrastructure.

*/ inline void SetProvisioning(Provisioning&& value) { m_provisioningHasBeenSet = true; m_provisioning = std::move(value); } /** *

When included, indicates that the environment template is for customer * provisioned and managed infrastructure.

*/ inline CreateEnvironmentTemplateRequest& WithProvisioning(const Provisioning& value) { SetProvisioning(value); return *this;} /** *

When included, indicates that the environment template is for customer * provisioned and managed infrastructure.

*/ inline CreateEnvironmentTemplateRequest& WithProvisioning(Provisioning&& value) { SetProvisioning(std::move(value)); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * environment template. 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. 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. 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. 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. A tag is a key-value pair.

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

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

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

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

*/ inline CreateEnvironmentTemplateRequest& 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. A tag is a key-value pair.

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

*/ inline CreateEnvironmentTemplateRequest& 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. A tag is a key-value pair.

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

*/ inline CreateEnvironmentTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Provisioning m_provisioning; bool m_provisioningHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws