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

The client token for the created component.

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

The client token for the created component.

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

The client token for the created component.

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

The client token for the created component.

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

The client token for the created component.

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

The client token for the created component.

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

The client token for the created component.

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

The client token for the created component.

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

An optional customer-provided description of the component.

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

An optional customer-provided description of the component.

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

An optional customer-provided description of the component.

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

An optional customer-provided description of the component.

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

An optional customer-provided description of the component.

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

An optional customer-provided description of the component.

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

An optional customer-provided description of the component.

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

An optional customer-provided description of the component.

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

The name of the Proton environment that you want to associate this component * with. You must specify this when you don't specify * serviceInstanceName and serviceName.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The name of the Proton environment that you want to associate this component * with. You must specify this when you don't specify * serviceInstanceName and serviceName.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

The name of the Proton environment that you want to associate this component * with. You must specify this when you don't specify * serviceInstanceName and serviceName.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

The name of the Proton environment that you want to associate this component * with. You must specify this when you don't specify * serviceInstanceName and serviceName.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

The name of the Proton environment that you want to associate this component * with. You must specify this when you don't specify * serviceInstanceName and serviceName.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

The name of the Proton environment that you want to associate this component * with. You must specify this when you don't specify * serviceInstanceName and serviceName.

*/ inline CreateComponentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The name of the Proton environment that you want to associate this component * with. You must specify this when you don't specify * serviceInstanceName and serviceName.

*/ inline CreateComponentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The name of the Proton environment that you want to associate this component * with. You must specify this when you don't specify * serviceInstanceName and serviceName.

*/ inline CreateComponentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

A path to a manifest file that lists the Infrastructure as Code (IaC) file, * template language, and rendering engine for infrastructure that a custom * component provisions.

*/ inline const Aws::String& GetManifest() const{ return m_manifest; } /** *

A path to a manifest file that lists the Infrastructure as Code (IaC) file, * template language, and rendering engine for infrastructure that a custom * component provisions.

*/ inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; } /** *

A path to a manifest file that lists the Infrastructure as Code (IaC) file, * template language, and rendering engine for infrastructure that a custom * component provisions.

*/ inline void SetManifest(const Aws::String& value) { m_manifestHasBeenSet = true; m_manifest = value; } /** *

A path to a manifest file that lists the Infrastructure as Code (IaC) file, * template language, and rendering engine for infrastructure that a custom * component provisions.

*/ inline void SetManifest(Aws::String&& value) { m_manifestHasBeenSet = true; m_manifest = std::move(value); } /** *

A path to a manifest file that lists the Infrastructure as Code (IaC) file, * template language, and rendering engine for infrastructure that a custom * component provisions.

*/ inline void SetManifest(const char* value) { m_manifestHasBeenSet = true; m_manifest.assign(value); } /** *

A path to a manifest file that lists the Infrastructure as Code (IaC) file, * template language, and rendering engine for infrastructure that a custom * component provisions.

*/ inline CreateComponentRequest& WithManifest(const Aws::String& value) { SetManifest(value); return *this;} /** *

A path to a manifest file that lists the Infrastructure as Code (IaC) file, * template language, and rendering engine for infrastructure that a custom * component provisions.

*/ inline CreateComponentRequest& WithManifest(Aws::String&& value) { SetManifest(std::move(value)); return *this;} /** *

A path to a manifest file that lists the Infrastructure as Code (IaC) file, * template language, and rendering engine for infrastructure that a custom * component provisions.

*/ inline CreateComponentRequest& WithManifest(const char* value) { SetManifest(value); return *this;} /** *

The customer-provided name of the component.

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

The customer-provided name of the component.

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

The customer-provided name of the component.

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

The customer-provided name of the component.

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

The customer-provided name of the component.

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

The customer-provided name of the component.

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

The customer-provided name of the component.

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

The customer-provided name of the component.

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

The name of the service instance that you want to attach this component to. * If you don't specify this, the component isn't attached to any service instance. * Specify both serviceInstanceName and serviceName or * neither of them.

*/ inline const Aws::String& GetServiceInstanceName() const{ return m_serviceInstanceName; } /** *

The name of the service instance that you want to attach this component to. * If you don't specify this, the component isn't attached to any service instance. * Specify both serviceInstanceName and serviceName or * neither of them.

*/ inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; } /** *

The name of the service instance that you want to attach this component to. * If you don't specify this, the component isn't attached to any service instance. * Specify both serviceInstanceName and serviceName or * neither of them.

*/ inline void SetServiceInstanceName(const Aws::String& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = value; } /** *

The name of the service instance that you want to attach this component to. * If you don't specify this, the component isn't attached to any service instance. * Specify both serviceInstanceName and serviceName or * neither of them.

*/ inline void SetServiceInstanceName(Aws::String&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::move(value); } /** *

The name of the service instance that you want to attach this component to. * If you don't specify this, the component isn't attached to any service instance. * Specify both serviceInstanceName and serviceName or * neither of them.

*/ inline void SetServiceInstanceName(const char* value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName.assign(value); } /** *

The name of the service instance that you want to attach this component to. * If you don't specify this, the component isn't attached to any service instance. * Specify both serviceInstanceName and serviceName or * neither of them.

*/ inline CreateComponentRequest& WithServiceInstanceName(const Aws::String& value) { SetServiceInstanceName(value); return *this;} /** *

The name of the service instance that you want to attach this component to. * If you don't specify this, the component isn't attached to any service instance. * Specify both serviceInstanceName and serviceName or * neither of them.

*/ inline CreateComponentRequest& WithServiceInstanceName(Aws::String&& value) { SetServiceInstanceName(std::move(value)); return *this;} /** *

The name of the service instance that you want to attach this component to. * If you don't specify this, the component isn't attached to any service instance. * Specify both serviceInstanceName and serviceName or * neither of them.

*/ inline CreateComponentRequest& WithServiceInstanceName(const char* value) { SetServiceInstanceName(value); return *this;} /** *

The name of the service that serviceInstanceName is associated * with. If you don't specify this, the component isn't attached to any service * instance. Specify both serviceInstanceName and * serviceName or neither of them.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service that serviceInstanceName is associated * with. If you don't specify this, the component isn't attached to any service * instance. Specify both serviceInstanceName and * serviceName or neither of them.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service that serviceInstanceName is associated * with. If you don't specify this, the component isn't attached to any service * instance. Specify both serviceInstanceName and * serviceName or neither of them.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service that serviceInstanceName is associated * with. If you don't specify this, the component isn't attached to any service * instance. Specify both serviceInstanceName and * serviceName or neither of them.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service that serviceInstanceName is associated * with. If you don't specify this, the component isn't attached to any service * instance. Specify both serviceInstanceName and * serviceName or neither of them.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service that serviceInstanceName is associated * with. If you don't specify this, the component isn't attached to any service * instance. Specify both serviceInstanceName and * serviceName or neither of them.

*/ inline CreateComponentRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service that serviceInstanceName is associated * with. If you don't specify this, the component isn't attached to any service * instance. Specify both serviceInstanceName and * serviceName or neither of them.

*/ inline CreateComponentRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service that serviceInstanceName is associated * with. If you don't specify this, the component isn't attached to any service * instance. Specify both serviceInstanceName and * serviceName or neither of them.

*/ inline CreateComponentRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The service spec that you want the component to use to access service inputs. * Set this only when you attach the component to a service instance.

*/ inline const Aws::String& GetServiceSpec() const{ return m_serviceSpec; } /** *

The service spec that you want the component to use to access service inputs. * Set this only when you attach the component to a service instance.

*/ inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; } /** *

The service spec that you want the component to use to access service inputs. * Set this only when you attach the component to a service instance.

*/ inline void SetServiceSpec(const Aws::String& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = value; } /** *

The service spec that you want the component to use to access service inputs. * Set this only when you attach the component to a service instance.

*/ inline void SetServiceSpec(Aws::String&& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = std::move(value); } /** *

The service spec that you want the component to use to access service inputs. * Set this only when you attach the component to a service instance.

*/ inline void SetServiceSpec(const char* value) { m_serviceSpecHasBeenSet = true; m_serviceSpec.assign(value); } /** *

The service spec that you want the component to use to access service inputs. * Set this only when you attach the component to a service instance.

*/ inline CreateComponentRequest& WithServiceSpec(const Aws::String& value) { SetServiceSpec(value); return *this;} /** *

The service spec that you want the component to use to access service inputs. * Set this only when you attach the component to a service instance.

*/ inline CreateComponentRequest& WithServiceSpec(Aws::String&& value) { SetServiceSpec(std::move(value)); return *this;} /** *

The service spec that you want the component to use to access service inputs. * Set this only when you attach the component to a service instance.

*/ inline CreateComponentRequest& WithServiceSpec(const char* value) { SetServiceSpec(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

A path to the Infrastructure as Code (IaC) file describing infrastructure * that a custom component provisions.

Components support a single * IaC file, even if you use Terraform as your template language.

*/ inline const Aws::String& GetTemplateFile() const{ return m_templateFile; } /** *

A path to the Infrastructure as Code (IaC) file describing infrastructure * that a custom component provisions.

Components support a single * IaC file, even if you use Terraform as your template language.

*/ inline bool TemplateFileHasBeenSet() const { return m_templateFileHasBeenSet; } /** *

A path to the Infrastructure as Code (IaC) file describing infrastructure * that a custom component provisions.

Components support a single * IaC file, even if you use Terraform as your template language.

*/ inline void SetTemplateFile(const Aws::String& value) { m_templateFileHasBeenSet = true; m_templateFile = value; } /** *

A path to the Infrastructure as Code (IaC) file describing infrastructure * that a custom component provisions.

Components support a single * IaC file, even if you use Terraform as your template language.

*/ inline void SetTemplateFile(Aws::String&& value) { m_templateFileHasBeenSet = true; m_templateFile = std::move(value); } /** *

A path to the Infrastructure as Code (IaC) file describing infrastructure * that a custom component provisions.

Components support a single * IaC file, even if you use Terraform as your template language.

*/ inline void SetTemplateFile(const char* value) { m_templateFileHasBeenSet = true; m_templateFile.assign(value); } /** *

A path to the Infrastructure as Code (IaC) file describing infrastructure * that a custom component provisions.

Components support a single * IaC file, even if you use Terraform as your template language.

*/ inline CreateComponentRequest& WithTemplateFile(const Aws::String& value) { SetTemplateFile(value); return *this;} /** *

A path to the Infrastructure as Code (IaC) file describing infrastructure * that a custom component provisions.

Components support a single * IaC file, even if you use Terraform as your template language.

*/ inline CreateComponentRequest& WithTemplateFile(Aws::String&& value) { SetTemplateFile(std::move(value)); return *this;} /** *

A path to the Infrastructure as Code (IaC) file describing infrastructure * that a custom component provisions.

Components support a single * IaC file, even if you use Terraform as your template language.

*/ inline CreateComponentRequest& WithTemplateFile(const char* value) { SetTemplateFile(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::String m_manifest; bool m_manifestHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_serviceInstanceName; bool m_serviceInstanceNameHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_serviceSpec; bool m_serviceSpecHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_templateFile; bool m_templateFileHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws