* The Amazon Resource Name (ARN) that identifies the created state machine. *
*/ private String stateMachineArn; /** ** The date the state machine is created. *
*/ private java.util.Date creationDate; /** *
* The Amazon Resource Name (ARN) that identifies the created state machine version. If you do not set the
* publish
parameter to true
, this field returns null value.
*
* The Amazon Resource Name (ARN) that identifies the created state machine. *
* * @param stateMachineArn * The Amazon Resource Name (ARN) that identifies the created state machine. */ public void setStateMachineArn(String stateMachineArn) { this.stateMachineArn = stateMachineArn; } /** ** The Amazon Resource Name (ARN) that identifies the created state machine. *
* * @return The Amazon Resource Name (ARN) that identifies the created state machine. */ public String getStateMachineArn() { return this.stateMachineArn; } /** ** The Amazon Resource Name (ARN) that identifies the created state machine. *
* * @param stateMachineArn * The Amazon Resource Name (ARN) that identifies the created state machine. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStateMachineResult withStateMachineArn(String stateMachineArn) { setStateMachineArn(stateMachineArn); return this; } /** ** The date the state machine is created. *
* * @param creationDate * The date the state machine is created. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** ** The date the state machine is created. *
* * @return The date the state machine is created. */ public java.util.Date getCreationDate() { return this.creationDate; } /** ** The date the state machine is created. *
* * @param creationDate * The date the state machine is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStateMachineResult withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *
* The Amazon Resource Name (ARN) that identifies the created state machine version. If you do not set the
* publish
parameter to true
, this field returns null value.
*
publish
parameter to true
, this field returns null value.
*/
public void setStateMachineVersionArn(String stateMachineVersionArn) {
this.stateMachineVersionArn = stateMachineVersionArn;
}
/**
*
* The Amazon Resource Name (ARN) that identifies the created state machine version. If you do not set the
* publish
parameter to true
, this field returns null value.
*
publish
parameter to true
, this field returns null value.
*/
public String getStateMachineVersionArn() {
return this.stateMachineVersionArn;
}
/**
*
* The Amazon Resource Name (ARN) that identifies the created state machine version. If you do not set the
* publish
parameter to true
, this field returns null value.
*
publish
parameter to true
, this field returns null value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateStateMachineResult withStateMachineVersionArn(String stateMachineVersionArn) {
setStateMachineVersionArn(stateMachineVersionArn);
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 (getStateMachineArn() != null)
sb.append("StateMachineArn: ").append(getStateMachineArn()).append(",");
if (getCreationDate() != null)
sb.append("CreationDate: ").append(getCreationDate()).append(",");
if (getStateMachineVersionArn() != null)
sb.append("StateMachineVersionArn: ").append(getStateMachineVersionArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateStateMachineResult == false)
return false;
CreateStateMachineResult other = (CreateStateMachineResult) obj;
if (other.getStateMachineArn() == null ^ this.getStateMachineArn() == null)
return false;
if (other.getStateMachineArn() != null && other.getStateMachineArn().equals(this.getStateMachineArn()) == false)
return false;
if (other.getCreationDate() == null ^ this.getCreationDate() == null)
return false;
if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false)
return false;
if (other.getStateMachineVersionArn() == null ^ this.getStateMachineVersionArn() == null)
return false;
if (other.getStateMachineVersionArn() != null && other.getStateMachineVersionArn().equals(this.getStateMachineVersionArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getStateMachineArn() == null) ? 0 : getStateMachineArn().hashCode());
hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
hashCode = prime * hashCode + ((getStateMachineVersionArn() == null) ? 0 : getStateMachineVersionArn().hashCode());
return hashCode;
}
@Override
public CreateStateMachineResult clone() {
try {
return (CreateStateMachineResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}