/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.proton.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateServicePipelineRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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. *
** The name of the service to that the pipeline is associated with. *
*/ private String serviceName; /** ** The spec for the service pipeline to update. *
*/ private String spec; /** ** The major version of the service template that was used to create the service that the pipeline is associated * with. *
*/ private String templateMajorVersion; /** ** The minor version of the service template that was used to create the service that the pipeline is associated * with. *
*/ private String templateMinorVersion; /** ** 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. *
*
* 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. *
** 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. *
*
* 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. *
** 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. *
*
* 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. *
** 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. *
*
* 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. *
** The name of the service to that the pipeline is associated with. *
* * @param serviceName * The name of the service to that the pipeline is associated with. */ public void setServiceName(String serviceName) { this.serviceName = serviceName; } /** ** The name of the service to that the pipeline is associated with. *
* * @return The name of the service to that the pipeline is associated with. */ public String getServiceName() { return this.serviceName; } /** ** The name of the service to that the pipeline is associated with. *
* * @param serviceName * The name of the service to that the pipeline is associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServicePipelineRequest withServiceName(String serviceName) { setServiceName(serviceName); return this; } /** ** The spec for the service pipeline to update. *
* * @param spec * The spec for the service pipeline to update. */ public void setSpec(String spec) { this.spec = spec; } /** ** The spec for the service pipeline to update. *
* * @return The spec for the service pipeline to update. */ public String getSpec() { return this.spec; } /** ** The spec for the service pipeline to update. *
* * @param spec * The spec for the service pipeline to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServicePipelineRequest withSpec(String spec) { setSpec(spec); return this; } /** ** The major version of the service template that was used to create the service that the pipeline is associated * with. *
* * @param templateMajorVersion * The major version of the service template that was used to create the service that the pipeline is * associated with. */ public void setTemplateMajorVersion(String templateMajorVersion) { this.templateMajorVersion = templateMajorVersion; } /** ** The major version of the service template that was used to create the service that the pipeline is associated * with. *
* * @return The major version of the service template that was used to create the service that the pipeline is * associated with. */ public String getTemplateMajorVersion() { return this.templateMajorVersion; } /** ** The major version of the service template that was used to create the service that the pipeline is associated * with. *
* * @param templateMajorVersion * The major version of the service template that was used to create the service that the pipeline is * associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServicePipelineRequest withTemplateMajorVersion(String templateMajorVersion) { setTemplateMajorVersion(templateMajorVersion); return this; } /** ** The minor version of the service template that was used to create the service that the pipeline is associated * with. *
* * @param templateMinorVersion * The minor version of the service template that was used to create the service that the pipeline is * associated with. */ public void setTemplateMinorVersion(String templateMinorVersion) { this.templateMinorVersion = templateMinorVersion; } /** ** The minor version of the service template that was used to create the service that the pipeline is associated * with. *
* * @return The minor version of the service template that was used to create the service that the pipeline is * associated with. */ public String getTemplateMinorVersion() { return this.templateMinorVersion; } /** ** The minor version of the service template that was used to create the service that the pipeline is associated * with. *
* * @param templateMinorVersion * The minor version of the service template that was used to create the service that the pipeline is * associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServicePipelineRequest withTemplateMinorVersion(String templateMinorVersion) { setTemplateMinorVersion(templateMinorVersion); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDeploymentType() != null) sb.append("DeploymentType: ").append(getDeploymentType()).append(","); if (getServiceName() != null) sb.append("ServiceName: ").append(getServiceName()).append(","); if (getSpec() != null) sb.append("Spec: ").append("***Sensitive Data Redacted***").append(","); if (getTemplateMajorVersion() != null) sb.append("TemplateMajorVersion: ").append(getTemplateMajorVersion()).append(","); if (getTemplateMinorVersion() != null) sb.append("TemplateMinorVersion: ").append(getTemplateMinorVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateServicePipelineRequest == false) return false; UpdateServicePipelineRequest other = (UpdateServicePipelineRequest) obj; if (other.getDeploymentType() == null ^ this.getDeploymentType() == null) return false; if (other.getDeploymentType() != null && other.getDeploymentType().equals(this.getDeploymentType()) == false) return false; if (other.getServiceName() == null ^ this.getServiceName() == null) return false; if (other.getServiceName() != null && other.getServiceName().equals(this.getServiceName()) == false) return false; if (other.getSpec() == null ^ this.getSpec() == null) return false; if (other.getSpec() != null && other.getSpec().equals(this.getSpec()) == false) return false; if (other.getTemplateMajorVersion() == null ^ this.getTemplateMajorVersion() == null) return false; if (other.getTemplateMajorVersion() != null && other.getTemplateMajorVersion().equals(this.getTemplateMajorVersion()) == false) return false; if (other.getTemplateMinorVersion() == null ^ this.getTemplateMinorVersion() == null) return false; if (other.getTemplateMinorVersion() != null && other.getTemplateMinorVersion().equals(this.getTemplateMinorVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeploymentType() == null) ? 0 : getDeploymentType().hashCode()); hashCode = prime * hashCode + ((getServiceName() == null) ? 0 : getServiceName().hashCode()); hashCode = prime * hashCode + ((getSpec() == null) ? 0 : getSpec().hashCode()); hashCode = prime * hashCode + ((getTemplateMajorVersion() == null) ? 0 : getTemplateMajorVersion().hashCode()); hashCode = prime * hashCode + ((getTemplateMinorVersion() == null) ? 0 : getTemplateMinorVersion().hashCode()); return hashCode; } @Override public UpdateServicePipelineRequest clone() { return (UpdateServicePipelineRequest) super.clone(); } }