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

The deployment type.

There are four modes for updating a service * pipeline. The deploymentType field defines the mode.

*

NONE

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

*

CURRENT_VERSION

In this mode, the service pipeline 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 pipeline is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can specify a different minor * version of the current major version in use.

* MAJOR_VERSION

In this mode, the service pipeline 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.

There are four modes for updating a service * pipeline. The deploymentType field defines the mode.

*

NONE

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

*

CURRENT_VERSION

In this mode, the service pipeline 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 pipeline is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can specify a different minor * version of the current major version in use.

* MAJOR_VERSION

In this mode, the service pipeline 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.

There are four modes for updating a service * pipeline. The deploymentType field defines the mode.

*

NONE

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

*

CURRENT_VERSION

In this mode, the service pipeline 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 pipeline is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can specify a different minor * version of the current major version in use.

* MAJOR_VERSION

In this mode, the service pipeline 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.

There are four modes for updating a service * pipeline. The deploymentType field defines the mode.

*

NONE

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

*

CURRENT_VERSION

In this mode, the service pipeline 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 pipeline is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can specify a different minor * version of the current major version in use.

* MAJOR_VERSION

In this mode, the service pipeline 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.

There are four modes for updating a service * pipeline. The deploymentType field defines the mode.

*

NONE

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

*

CURRENT_VERSION

In this mode, the service pipeline 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 pipeline is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can specify a different minor * version of the current major version in use.

* MAJOR_VERSION

In this mode, the service pipeline 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 UpdateServicePipelineRequest& WithDeploymentType(const DeploymentUpdateType& value) { SetDeploymentType(value); return *this;} /** *

The deployment type.

There are four modes for updating a service * pipeline. The deploymentType field defines the mode.

*

NONE

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

*

CURRENT_VERSION

In this mode, the service pipeline 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 pipeline is * deployed and updated with the published, recommended (latest) minor version of * the current major version in use, by default. You can specify a different minor * version of the current major version in use.

* MAJOR_VERSION

In this mode, the service pipeline 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 UpdateServicePipelineRequest& WithDeploymentType(DeploymentUpdateType&& value) { SetDeploymentType(std::move(value)); return *this;} /** *

The name of the service to that the pipeline is associated with.

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

The name of the service to that the pipeline is associated with.

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

The name of the service to that the pipeline is associated with.

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

The name of the service to that the pipeline is associated with.

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

The name of the service to that the pipeline is associated with.

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

The name of the service to that the pipeline is associated with.

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

The name of the service to that the pipeline is associated with.

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

The name of the service to that the pipeline is associated with.

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

The spec for the service pipeline to update.

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

The spec for the service pipeline to update.

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

The spec for the service pipeline to update.

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

The spec for the service pipeline to update.

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

The spec for the service pipeline to update.

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

The spec for the service pipeline to update.

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

The spec for the service pipeline to update.

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

The spec for the service pipeline to update.

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

The major version of the service template that was used to create the service * that the pipeline is associated with.

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

The major version of the service template that was used to create the service * that the pipeline is associated with.

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

The major version of the service template that was used to create the service * that the pipeline is associated with.

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

The major version of the service template that was used to create the service * that the pipeline is associated with.

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

The major version of the service template that was used to create the service * that the pipeline is associated with.

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

The major version of the service template that was used to create the service * that the pipeline is associated with.

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

The major version of the service template that was used to create the service * that the pipeline is associated with.

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

The major version of the service template that was used to create the service * that the pipeline is associated with.

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

The minor version of the service template that was used to create the service * that the pipeline is associated with.

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

The minor version of the service template that was used to create the service * that the pipeline is associated with.

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

The minor version of the service template that was used to create the service * that the pipeline is associated with.

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

The minor version of the service template that was used to create the service * that the pipeline is associated with.

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

The minor version of the service template that was used to create the service * that the pipeline is associated with.

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

The minor version of the service template that was used to create the service * that the pipeline is associated with.

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

The minor version of the service template that was used to create the service * that the pipeline is associated with.

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

The minor version of the service template that was used to create the service * that the pipeline is associated with.

*/ inline UpdateServicePipelineRequest& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;} private: DeploymentUpdateType m_deploymentType; bool m_deploymentTypeHasBeenSet = 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