com.amazonaws.services.simplesystemsmanagement.model.ParentStepDetails Maven / Gradle / Ivy
/*
* 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.simplesystemsmanagement.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* A detailed status of the parent step.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ParentStepDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* The unique ID of a step execution.
*
*/
private String stepExecutionId;
/**
*
* The name of the step.
*
*/
private String stepName;
/**
*
* The name of the automation action.
*
*/
private String action;
/**
*
* The current repetition of the loop represented by an integer.
*
*/
private Integer iteration;
/**
*
* The current value of the specified iterator in the loop.
*
*/
private String iteratorValue;
/**
*
* The unique ID of a step execution.
*
*
* @param stepExecutionId
* The unique ID of a step execution.
*/
public void setStepExecutionId(String stepExecutionId) {
this.stepExecutionId = stepExecutionId;
}
/**
*
* The unique ID of a step execution.
*
*
* @return The unique ID of a step execution.
*/
public String getStepExecutionId() {
return this.stepExecutionId;
}
/**
*
* The unique ID of a step execution.
*
*
* @param stepExecutionId
* The unique ID of a step execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ParentStepDetails withStepExecutionId(String stepExecutionId) {
setStepExecutionId(stepExecutionId);
return this;
}
/**
*
* The name of the step.
*
*
* @param stepName
* The name of the step.
*/
public void setStepName(String stepName) {
this.stepName = stepName;
}
/**
*
* The name of the step.
*
*
* @return The name of the step.
*/
public String getStepName() {
return this.stepName;
}
/**
*
* The name of the step.
*
*
* @param stepName
* The name of the step.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ParentStepDetails withStepName(String stepName) {
setStepName(stepName);
return this;
}
/**
*
* The name of the automation action.
*
*
* @param action
* The name of the automation action.
*/
public void setAction(String action) {
this.action = action;
}
/**
*
* The name of the automation action.
*
*
* @return The name of the automation action.
*/
public String getAction() {
return this.action;
}
/**
*
* The name of the automation action.
*
*
* @param action
* The name of the automation action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ParentStepDetails withAction(String action) {
setAction(action);
return this;
}
/**
*
* The current repetition of the loop represented by an integer.
*
*
* @param iteration
* The current repetition of the loop represented by an integer.
*/
public void setIteration(Integer iteration) {
this.iteration = iteration;
}
/**
*
* The current repetition of the loop represented by an integer.
*
*
* @return The current repetition of the loop represented by an integer.
*/
public Integer getIteration() {
return this.iteration;
}
/**
*
* The current repetition of the loop represented by an integer.
*
*
* @param iteration
* The current repetition of the loop represented by an integer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ParentStepDetails withIteration(Integer iteration) {
setIteration(iteration);
return this;
}
/**
*
* The current value of the specified iterator in the loop.
*
*
* @param iteratorValue
* The current value of the specified iterator in the loop.
*/
public void setIteratorValue(String iteratorValue) {
this.iteratorValue = iteratorValue;
}
/**
*
* The current value of the specified iterator in the loop.
*
*
* @return The current value of the specified iterator in the loop.
*/
public String getIteratorValue() {
return this.iteratorValue;
}
/**
*
* The current value of the specified iterator in the loop.
*
*
* @param iteratorValue
* The current value of the specified iterator in the loop.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ParentStepDetails withIteratorValue(String iteratorValue) {
setIteratorValue(iteratorValue);
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 (getStepExecutionId() != null)
sb.append("StepExecutionId: ").append(getStepExecutionId()).append(",");
if (getStepName() != null)
sb.append("StepName: ").append(getStepName()).append(",");
if (getAction() != null)
sb.append("Action: ").append(getAction()).append(",");
if (getIteration() != null)
sb.append("Iteration: ").append(getIteration()).append(",");
if (getIteratorValue() != null)
sb.append("IteratorValue: ").append(getIteratorValue());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ParentStepDetails == false)
return false;
ParentStepDetails other = (ParentStepDetails) obj;
if (other.getStepExecutionId() == null ^ this.getStepExecutionId() == null)
return false;
if (other.getStepExecutionId() != null && other.getStepExecutionId().equals(this.getStepExecutionId()) == false)
return false;
if (other.getStepName() == null ^ this.getStepName() == null)
return false;
if (other.getStepName() != null && other.getStepName().equals(this.getStepName()) == false)
return false;
if (other.getAction() == null ^ this.getAction() == null)
return false;
if (other.getAction() != null && other.getAction().equals(this.getAction()) == false)
return false;
if (other.getIteration() == null ^ this.getIteration() == null)
return false;
if (other.getIteration() != null && other.getIteration().equals(this.getIteration()) == false)
return false;
if (other.getIteratorValue() == null ^ this.getIteratorValue() == null)
return false;
if (other.getIteratorValue() != null && other.getIteratorValue().equals(this.getIteratorValue()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getStepExecutionId() == null) ? 0 : getStepExecutionId().hashCode());
hashCode = prime * hashCode + ((getStepName() == null) ? 0 : getStepName().hashCode());
hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode());
hashCode = prime * hashCode + ((getIteration() == null) ? 0 : getIteration().hashCode());
hashCode = prime * hashCode + ((getIteratorValue() == null) ? 0 : getIteratorValue().hashCode());
return hashCode;
}
@Override
public ParentStepDetails clone() {
try {
return (ParentStepDetails) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.simplesystemsmanagement.model.transform.ParentStepDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}