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

The client token for the updated component.

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

The client token for the updated component.

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

The client token for the updated component.

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

The client token for the updated component.

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

The client token for the updated component.

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

The client token for the updated component.

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

The client token for the updated component.

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

The client token for the updated component.

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

The deployment type. It defines the mode for updating a component, as * follows:

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated. You can only specify description in this mode.

*

CURRENT_VERSION

In this mode, the component * is deployed and updated with the new serviceSpec, * templateSource, and/or type that you provide. Only * requested parameters are updated.

*/ inline const ComponentDeploymentUpdateType& GetDeploymentType() const{ return m_deploymentType; } /** *

The deployment type. It defines the mode for updating a component, as * follows:

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated. You can only specify description in this mode.

*

CURRENT_VERSION

In this mode, the component * is deployed and updated with the new serviceSpec, * templateSource, and/or type that you provide. Only * requested parameters are updated.

*/ inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; } /** *

The deployment type. It defines the mode for updating a component, as * follows:

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated. You can only specify description in this mode.

*

CURRENT_VERSION

In this mode, the component * is deployed and updated with the new serviceSpec, * templateSource, and/or type that you provide. Only * requested parameters are updated.

*/ inline void SetDeploymentType(const ComponentDeploymentUpdateType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; } /** *

The deployment type. It defines the mode for updating a component, as * follows:

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated. You can only specify description in this mode.

*

CURRENT_VERSION

In this mode, the component * is deployed and updated with the new serviceSpec, * templateSource, and/or type that you provide. Only * requested parameters are updated.

*/ inline void SetDeploymentType(ComponentDeploymentUpdateType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); } /** *

The deployment type. It defines the mode for updating a component, as * follows:

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated. You can only specify description in this mode.

*

CURRENT_VERSION

In this mode, the component * is deployed and updated with the new serviceSpec, * templateSource, and/or type that you provide. Only * requested parameters are updated.

*/ inline UpdateComponentRequest& WithDeploymentType(const ComponentDeploymentUpdateType& value) { SetDeploymentType(value); return *this;} /** *

The deployment type. It defines the mode for updating a component, as * follows:

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated. You can only specify description in this mode.

*

CURRENT_VERSION

In this mode, the component * is deployed and updated with the new serviceSpec, * templateSource, and/or type that you provide. Only * requested parameters are updated.

*/ inline UpdateComponentRequest& WithDeploymentType(ComponentDeploymentUpdateType&& value) { SetDeploymentType(std::move(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 UpdateComponentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

An optional customer-provided description of the component.

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

An optional customer-provided description of the component.

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

The name of the component to update.

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

The name of the component to update.

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

The name of the component to update.

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

The name of the component to update.

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

The name of the component to update.

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

The name of the component to update.

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

The name of the component to update.

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

The name of the component to update.

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

The name of the service instance that you want to attach this component to. * Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for 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. * Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

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

The name of the service instance that you want to attach this component to. * Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for 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. * Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for 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. * Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for 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. * Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

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

The name of the service instance that you want to attach this component to. * Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

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

The name of the service instance that you want to attach this component to. * Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

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

The name of the service that serviceInstanceName is associated * with. Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

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

The name of the service that serviceInstanceName is associated * with. Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

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

The name of the service that serviceInstanceName is associated * with. Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for 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. Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for 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. Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for 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. Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

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

The name of the service that serviceInstanceName is associated * with. Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

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

The name of the service that serviceInstanceName is associated * with. Don't specify to keep the component's current service instance attachment. * Specify an empty string to detach the component from the service instance it's * attached to. Specify non-empty values for both serviceInstanceName * and serviceName or for neither of them.

*/ inline UpdateComponentRequest& 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 the component is attached 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 the component is attached 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 the component is attached 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 the component is attached 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 the component is attached 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 the component is attached to a service instance.

*/ inline UpdateComponentRequest& 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 the component is attached to a service instance.

*/ inline UpdateComponentRequest& 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 the component is attached to a service instance.

*/ inline UpdateComponentRequest& WithServiceSpec(const char* value) { SetServiceSpec(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 UpdateComponentRequest& 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 UpdateComponentRequest& 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 UpdateComponentRequest& WithTemplateFile(const char* value) { SetTemplateFile(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; ComponentDeploymentUpdateType m_deploymentType; bool m_deploymentTypeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = 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::String m_templateFile; bool m_templateFileHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws