com.amazonaws.services.sagemaker.model.UpdatePipelineRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker Show documentation
/*
* Copyright 2019-2024 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.sagemaker.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 UpdatePipelineRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the pipeline to update.
*
*/
private String pipelineName;
/**
*
* The display name of the pipeline.
*
*/
private String pipelineDisplayName;
/**
*
* The JSON pipeline definition.
*
*/
private String pipelineDefinition;
/**
*
* The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the pipeline
* definition from this location.
*
*/
private PipelineDefinitionS3Location pipelineDefinitionS3Location;
/**
*
* The description of the pipeline.
*
*/
private String pipelineDescription;
/**
*
* The Amazon Resource Name (ARN) that the pipeline uses to execute.
*
*/
private String roleArn;
/**
*
* If specified, it applies to all executions of this pipeline by default.
*
*/
private ParallelismConfiguration parallelismConfiguration;
/**
*
* The name of the pipeline to update.
*
*
* @param pipelineName
* The name of the pipeline to update.
*/
public void setPipelineName(String pipelineName) {
this.pipelineName = pipelineName;
}
/**
*
* The name of the pipeline to update.
*
*
* @return The name of the pipeline to update.
*/
public String getPipelineName() {
return this.pipelineName;
}
/**
*
* The name of the pipeline to update.
*
*
* @param pipelineName
* The name of the pipeline to update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdatePipelineRequest withPipelineName(String pipelineName) {
setPipelineName(pipelineName);
return this;
}
/**
*
* The display name of the pipeline.
*
*
* @param pipelineDisplayName
* The display name of the pipeline.
*/
public void setPipelineDisplayName(String pipelineDisplayName) {
this.pipelineDisplayName = pipelineDisplayName;
}
/**
*
* The display name of the pipeline.
*
*
* @return The display name of the pipeline.
*/
public String getPipelineDisplayName() {
return this.pipelineDisplayName;
}
/**
*
* The display name of the pipeline.
*
*
* @param pipelineDisplayName
* The display name of the pipeline.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdatePipelineRequest withPipelineDisplayName(String pipelineDisplayName) {
setPipelineDisplayName(pipelineDisplayName);
return this;
}
/**
*
* The JSON pipeline definition.
*
*
* @param pipelineDefinition
* The JSON pipeline definition.
*/
public void setPipelineDefinition(String pipelineDefinition) {
this.pipelineDefinition = pipelineDefinition;
}
/**
*
* The JSON pipeline definition.
*
*
* @return The JSON pipeline definition.
*/
public String getPipelineDefinition() {
return this.pipelineDefinition;
}
/**
*
* The JSON pipeline definition.
*
*
* @param pipelineDefinition
* The JSON pipeline definition.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdatePipelineRequest withPipelineDefinition(String pipelineDefinition) {
setPipelineDefinition(pipelineDefinition);
return this;
}
/**
*
* The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the pipeline
* definition from this location.
*
*
* @param pipelineDefinitionS3Location
* The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the
* pipeline definition from this location.
*/
public void setPipelineDefinitionS3Location(PipelineDefinitionS3Location pipelineDefinitionS3Location) {
this.pipelineDefinitionS3Location = pipelineDefinitionS3Location;
}
/**
*
* The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the pipeline
* definition from this location.
*
*
* @return The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the
* pipeline definition from this location.
*/
public PipelineDefinitionS3Location getPipelineDefinitionS3Location() {
return this.pipelineDefinitionS3Location;
}
/**
*
* The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the pipeline
* definition from this location.
*
*
* @param pipelineDefinitionS3Location
* The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the
* pipeline definition from this location.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdatePipelineRequest withPipelineDefinitionS3Location(PipelineDefinitionS3Location pipelineDefinitionS3Location) {
setPipelineDefinitionS3Location(pipelineDefinitionS3Location);
return this;
}
/**
*
* The description of the pipeline.
*
*
* @param pipelineDescription
* The description of the pipeline.
*/
public void setPipelineDescription(String pipelineDescription) {
this.pipelineDescription = pipelineDescription;
}
/**
*
* The description of the pipeline.
*
*
* @return The description of the pipeline.
*/
public String getPipelineDescription() {
return this.pipelineDescription;
}
/**
*
* The description of the pipeline.
*
*
* @param pipelineDescription
* The description of the pipeline.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdatePipelineRequest withPipelineDescription(String pipelineDescription) {
setPipelineDescription(pipelineDescription);
return this;
}
/**
*
* The Amazon Resource Name (ARN) that the pipeline uses to execute.
*
*
* @param roleArn
* The Amazon Resource Name (ARN) that the pipeline uses to execute.
*/
public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}
/**
*
* The Amazon Resource Name (ARN) that the pipeline uses to execute.
*
*
* @return The Amazon Resource Name (ARN) that the pipeline uses to execute.
*/
public String getRoleArn() {
return this.roleArn;
}
/**
*
* The Amazon Resource Name (ARN) that the pipeline uses to execute.
*
*
* @param roleArn
* The Amazon Resource Name (ARN) that the pipeline uses to execute.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdatePipelineRequest withRoleArn(String roleArn) {
setRoleArn(roleArn);
return this;
}
/**
*
* If specified, it applies to all executions of this pipeline by default.
*
*
* @param parallelismConfiguration
* If specified, it applies to all executions of this pipeline by default.
*/
public void setParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {
this.parallelismConfiguration = parallelismConfiguration;
}
/**
*
* If specified, it applies to all executions of this pipeline by default.
*
*
* @return If specified, it applies to all executions of this pipeline by default.
*/
public ParallelismConfiguration getParallelismConfiguration() {
return this.parallelismConfiguration;
}
/**
*
* If specified, it applies to all executions of this pipeline by default.
*
*
* @param parallelismConfiguration
* If specified, it applies to all executions of this pipeline by default.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdatePipelineRequest withParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) {
setParallelismConfiguration(parallelismConfiguration);
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 (getPipelineName() != null)
sb.append("PipelineName: ").append(getPipelineName()).append(",");
if (getPipelineDisplayName() != null)
sb.append("PipelineDisplayName: ").append(getPipelineDisplayName()).append(",");
if (getPipelineDefinition() != null)
sb.append("PipelineDefinition: ").append(getPipelineDefinition()).append(",");
if (getPipelineDefinitionS3Location() != null)
sb.append("PipelineDefinitionS3Location: ").append(getPipelineDefinitionS3Location()).append(",");
if (getPipelineDescription() != null)
sb.append("PipelineDescription: ").append(getPipelineDescription()).append(",");
if (getRoleArn() != null)
sb.append("RoleArn: ").append(getRoleArn()).append(",");
if (getParallelismConfiguration() != null)
sb.append("ParallelismConfiguration: ").append(getParallelismConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdatePipelineRequest == false)
return false;
UpdatePipelineRequest other = (UpdatePipelineRequest) obj;
if (other.getPipelineName() == null ^ this.getPipelineName() == null)
return false;
if (other.getPipelineName() != null && other.getPipelineName().equals(this.getPipelineName()) == false)
return false;
if (other.getPipelineDisplayName() == null ^ this.getPipelineDisplayName() == null)
return false;
if (other.getPipelineDisplayName() != null && other.getPipelineDisplayName().equals(this.getPipelineDisplayName()) == false)
return false;
if (other.getPipelineDefinition() == null ^ this.getPipelineDefinition() == null)
return false;
if (other.getPipelineDefinition() != null && other.getPipelineDefinition().equals(this.getPipelineDefinition()) == false)
return false;
if (other.getPipelineDefinitionS3Location() == null ^ this.getPipelineDefinitionS3Location() == null)
return false;
if (other.getPipelineDefinitionS3Location() != null && other.getPipelineDefinitionS3Location().equals(this.getPipelineDefinitionS3Location()) == false)
return false;
if (other.getPipelineDescription() == null ^ this.getPipelineDescription() == null)
return false;
if (other.getPipelineDescription() != null && other.getPipelineDescription().equals(this.getPipelineDescription()) == false)
return false;
if (other.getRoleArn() == null ^ this.getRoleArn() == null)
return false;
if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
return false;
if (other.getParallelismConfiguration() == null ^ this.getParallelismConfiguration() == null)
return false;
if (other.getParallelismConfiguration() != null && other.getParallelismConfiguration().equals(this.getParallelismConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPipelineName() == null) ? 0 : getPipelineName().hashCode());
hashCode = prime * hashCode + ((getPipelineDisplayName() == null) ? 0 : getPipelineDisplayName().hashCode());
hashCode = prime * hashCode + ((getPipelineDefinition() == null) ? 0 : getPipelineDefinition().hashCode());
hashCode = prime * hashCode + ((getPipelineDefinitionS3Location() == null) ? 0 : getPipelineDefinitionS3Location().hashCode());
hashCode = prime * hashCode + ((getPipelineDescription() == null) ? 0 : getPipelineDescription().hashCode());
hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
hashCode = prime * hashCode + ((getParallelismConfiguration() == null) ? 0 : getParallelismConfiguration().hashCode());
return hashCode;
}
@Override
public UpdatePipelineRequest clone() {
return (UpdatePipelineRequest) super.clone();
}
}