/** * 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 CreateServiceTemplateRequest : public ProtonRequest { public: AWS_PROTON_API CreateServiceTemplateRequest(); // 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 "CreateServiceTemplate"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A description of the service template.

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

A description of the service template.

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

A description of the service template.

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

A description of the service template.

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

A description of the service template.

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

A description of the service template.

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

A description of the service template.

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

A description of the service template.

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

The name of the service template as displayed in the developer interface.

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

The name of the service template as displayed in the developer interface.

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

The name of the service template as displayed in the developer interface.

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

The name of the service template as displayed in the developer interface.

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

The name of the service template as displayed in the developer interface.

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

The name of the service template as displayed in the developer interface.

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

The name of the service template as displayed in the developer interface.

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

The name of the service template as displayed in the developer interface.

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

A customer provided encryption key that's used to encrypt data.

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

A customer provided encryption key that's used to encrypt data.

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

A customer provided encryption key that's used to encrypt data.

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

A customer provided encryption key that's used to encrypt data.

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

A customer provided encryption key that's used to encrypt data.

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

A customer provided encryption key that's used to encrypt data.

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

A customer provided encryption key that's used to encrypt data.

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

A customer provided encryption key that's used to encrypt data.

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

The name of the service template.

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

The name of the service template.

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

The name of the service template.

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

The name of the service template.

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

The name of the service template.

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

The name of the service template.

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

The name of the service template.

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

The name of the service template.

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

By default, Proton provides a service pipeline for your service. When this * parameter is included, it indicates that an Proton service pipeline isn't * provided for your service. After it's included, it can't be changed. For * more information, see Template * bundles in the Proton User Guide.

*/ inline const Provisioning& GetPipelineProvisioning() const{ return m_pipelineProvisioning; } /** *

By default, Proton provides a service pipeline for your service. When this * parameter is included, it indicates that an Proton service pipeline isn't * provided for your service. After it's included, it can't be changed. For * more information, see Template * bundles in the Proton User Guide.

*/ inline bool PipelineProvisioningHasBeenSet() const { return m_pipelineProvisioningHasBeenSet; } /** *

By default, Proton provides a service pipeline for your service. When this * parameter is included, it indicates that an Proton service pipeline isn't * provided for your service. After it's included, it can't be changed. For * more information, see Template * bundles in the Proton User Guide.

*/ inline void SetPipelineProvisioning(const Provisioning& value) { m_pipelineProvisioningHasBeenSet = true; m_pipelineProvisioning = value; } /** *

By default, Proton provides a service pipeline for your service. When this * parameter is included, it indicates that an Proton service pipeline isn't * provided for your service. After it's included, it can't be changed. For * more information, see Template * bundles in the Proton User Guide.

*/ inline void SetPipelineProvisioning(Provisioning&& value) { m_pipelineProvisioningHasBeenSet = true; m_pipelineProvisioning = std::move(value); } /** *

By default, Proton provides a service pipeline for your service. When this * parameter is included, it indicates that an Proton service pipeline isn't * provided for your service. After it's included, it can't be changed. For * more information, see Template * bundles in the Proton User Guide.

*/ inline CreateServiceTemplateRequest& WithPipelineProvisioning(const Provisioning& value) { SetPipelineProvisioning(value); return *this;} /** *

By default, Proton provides a service pipeline for your service. When this * parameter is included, it indicates that an Proton service pipeline isn't * provided for your service. After it's included, it can't be changed. For * more information, see Template * bundles in the Proton User Guide.

*/ inline CreateServiceTemplateRequest& WithPipelineProvisioning(Provisioning&& value) { SetPipelineProvisioning(std::move(value)); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

*/ inline CreateServiceTemplateRequest& 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_pipelineProvisioning; bool m_pipelineProvisioningHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws