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

The client token of the service instance to update.

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

The client token of the service instance to update.

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

The client token of the service instance to update.

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

The client token of the service instance to update.

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

The client token of the service instance to update.

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

The client token of the service instance to update.

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

The client token of the service instance to update.

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

The client token of the service instance to update.

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

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

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated.

CURRENT_VERSION

In this * mode, the service instance is deployed and updated with the new spec that you * provide. Only requested parameters are updated. Don’t include major or * minor version parameters when you use this deployment type.

*

MINOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can also specify a different * minor version of the current major version in use.

* MAJOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) major and minor * version of the current template, by default. You can specify a different major * version that's higher than the major version in use and a minor version.

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

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

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated.

CURRENT_VERSION

In this * mode, the service instance is deployed and updated with the new spec that you * provide. Only requested parameters are updated. Don’t include major or * minor version parameters when you use this deployment type.

*

MINOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can also specify a different * minor version of the current major version in use.

* MAJOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) major and minor * version of the current template, by default. You can specify a different major * version that's higher than the major version in use and a minor version.

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

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

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated.

CURRENT_VERSION

In this * mode, the service instance is deployed and updated with the new spec that you * provide. Only requested parameters are updated. Don’t include major or * minor version parameters when you use this deployment type.

*

MINOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can also specify a different * minor version of the current major version in use.

* MAJOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) major and minor * version of the current template, by default. You can specify a different major * version that's higher than the major version in use and a minor version.

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

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

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated.

CURRENT_VERSION

In this * mode, the service instance is deployed and updated with the new spec that you * provide. Only requested parameters are updated. Don’t include major or * minor version parameters when you use this deployment type.

*

MINOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can also specify a different * minor version of the current major version in use.

* MAJOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) major and minor * version of the current template, by default. You can specify a different major * version that's higher than the major version in use and a minor version.

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

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

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated.

CURRENT_VERSION

In this * mode, the service instance is deployed and updated with the new spec that you * provide. Only requested parameters are updated. Don’t include major or * minor version parameters when you use this deployment type.

*

MINOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can also specify a different * minor version of the current major version in use.

* MAJOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) major and minor * version of the current template, by default. You can specify a different major * version that's higher than the major version in use and a minor version.

*
*/ inline UpdateServiceInstanceRequest& WithDeploymentType(const DeploymentUpdateType& value) { SetDeploymentType(value); return *this;} /** *

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

NONE

In this mode, a * deployment doesn't occur. Only the requested metadata parameters are * updated.

CURRENT_VERSION

In this * mode, the service instance is deployed and updated with the new spec that you * provide. Only requested parameters are updated. Don’t include major or * minor version parameters when you use this deployment type.

*

MINOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can also specify a different * minor version of the current major version in use.

* MAJOR_VERSION

In this mode, the service instance is * deployed and updated with the published, recommended (latest) major and minor * version of the current template, by default. You can specify a different major * version that's higher than the major version in use and a minor version.

*
*/ inline UpdateServiceInstanceRequest& WithDeploymentType(DeploymentUpdateType&& value) { SetDeploymentType(std::move(value)); return *this;} /** *

The name of the service instance to update.

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

The name of the service instance to update.

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

The name of the service instance to update.

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

The name of the service instance to update.

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

The name of the service instance to update.

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

The name of the service instance to update.

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

The name of the service instance to update.

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

The name of the service instance to update.

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

The name of the service that the service instance belongs to.

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

The name of the service that the service instance belongs to.

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

The name of the service that the service instance belongs to.

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

The name of the service that the service instance belongs to.

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

The name of the service that the service instance belongs to.

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

The name of the service that the service instance belongs to.

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

The name of the service that the service instance belongs to.

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

The name of the service that the service instance belongs to.

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

The formatted specification that defines the service instance update.

*/ inline const Aws::String& GetSpec() const{ return m_spec; } /** *

The formatted specification that defines the service instance update.

*/ inline bool SpecHasBeenSet() const { return m_specHasBeenSet; } /** *

The formatted specification that defines the service instance update.

*/ inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; } /** *

The formatted specification that defines the service instance update.

*/ inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); } /** *

The formatted specification that defines the service instance update.

*/ inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); } /** *

The formatted specification that defines the service instance update.

*/ inline UpdateServiceInstanceRequest& WithSpec(const Aws::String& value) { SetSpec(value); return *this;} /** *

The formatted specification that defines the service instance update.

*/ inline UpdateServiceInstanceRequest& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;} /** *

The formatted specification that defines the service instance update.

*/ inline UpdateServiceInstanceRequest& WithSpec(const char* value) { SetSpec(value); return *this;} /** *

The major version of the service template to update.

*/ inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; } /** *

The major version of the service template to update.

*/ inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; } /** *

The major version of the service template to update.

*/ inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; } /** *

The major version of the service template to update.

*/ inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); } /** *

The major version of the service template to update.

*/ inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); } /** *

The major version of the service template to update.

*/ inline UpdateServiceInstanceRequest& WithTemplateMajorVersion(const Aws::String& value) { SetTemplateMajorVersion(value); return *this;} /** *

The major version of the service template to update.

*/ inline UpdateServiceInstanceRequest& WithTemplateMajorVersion(Aws::String&& value) { SetTemplateMajorVersion(std::move(value)); return *this;} /** *

The major version of the service template to update.

*/ inline UpdateServiceInstanceRequest& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;} /** *

The minor version of the service template to update.

*/ inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; } /** *

The minor version of the service template to update.

*/ inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; } /** *

The minor version of the service template to update.

*/ inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; } /** *

The minor version of the service template to update.

*/ inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); } /** *

The minor version of the service template to update.

*/ inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); } /** *

The minor version of the service template to update.

*/ inline UpdateServiceInstanceRequest& WithTemplateMinorVersion(const Aws::String& value) { SetTemplateMinorVersion(value); return *this;} /** *

The minor version of the service template to update.

*/ inline UpdateServiceInstanceRequest& WithTemplateMinorVersion(Aws::String&& value) { SetTemplateMinorVersion(std::move(value)); return *this;} /** *

The minor version of the service template to update.

*/ inline UpdateServiceInstanceRequest& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; DeploymentUpdateType m_deploymentType; bool m_deploymentTypeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_spec; bool m_specHasBeenSet = false; Aws::String m_templateMajorVersion; bool m_templateMajorVersionHasBeenSet = false; Aws::String m_templateMinorVersion; bool m_templateMinorVersionHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws