/*
* 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.stepfunctions.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeStateMachineAliasResult extends com.amazonaws.AmazonWebServiceResult
* The Amazon Resource Name (ARN) of the state machine alias.
*
* The name of the state machine alias.
*
* A description of the alias.
*
* The routing configuration of the alias.
*
* The date the state machine alias was created.
*
* The date the state machine alias was last updated.
*
* For a newly created state machine, this is the same as the creation date.
*
* The Amazon Resource Name (ARN) of the state machine alias.
*
* The Amazon Resource Name (ARN) of the state machine alias.
*
* The Amazon Resource Name (ARN) of the state machine alias.
*
* The name of the state machine alias.
*
* The name of the state machine alias.
*
* The name of the state machine alias.
*
* A description of the alias.
*
* A description of the alias.
*
* A description of the alias.
*
* The routing configuration of the alias.
*
* The routing configuration of the alias.
*
* The routing configuration of the alias.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRoutingConfiguration(java.util.Collection)} or {@link #withRoutingConfiguration(java.util.Collection)}
* if you want to override the existing values.
*
* The routing configuration of the alias.
*
* The date the state machine alias was created.
*
* The date the state machine alias was created.
*
* The date the state machine alias was created.
*
* The date the state machine alias was last updated.
*
* For a newly created state machine, this is the same as the creation date.
*
* For a newly created state machine, this is the same as the creation date. */ public void setUpdateDate(java.util.Date updateDate) { this.updateDate = updateDate; } /** *
* The date the state machine alias was last updated. *
** For a newly created state machine, this is the same as the creation date. *
* * @return The date the state machine alias was last updated. ** For a newly created state machine, this is the same as the creation date. */ public java.util.Date getUpdateDate() { return this.updateDate; } /** *
* The date the state machine alias was last updated. *
** For a newly created state machine, this is the same as the creation date. *
* * @param updateDate * The date the state machine alias was last updated. ** For a newly created state machine, this is the same as the creation date. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStateMachineAliasResult withUpdateDate(java.util.Date updateDate) { setUpdateDate(updateDate); 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 (getStateMachineAliasArn() != null) sb.append("StateMachineAliasArn: ").append(getStateMachineAliasArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append("***Sensitive Data Redacted***").append(","); if (getRoutingConfiguration() != null) sb.append("RoutingConfiguration: ").append(getRoutingConfiguration()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getUpdateDate() != null) sb.append("UpdateDate: ").append(getUpdateDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStateMachineAliasResult == false) return false; DescribeStateMachineAliasResult other = (DescribeStateMachineAliasResult) obj; if (other.getStateMachineAliasArn() == null ^ this.getStateMachineAliasArn() == null) return false; if (other.getStateMachineAliasArn() != null && other.getStateMachineAliasArn().equals(this.getStateMachineAliasArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getRoutingConfiguration() == null ^ this.getRoutingConfiguration() == null) return false; if (other.getRoutingConfiguration() != null && other.getRoutingConfiguration().equals(this.getRoutingConfiguration()) == 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.getUpdateDate() == null ^ this.getUpdateDate() == null) return false; if (other.getUpdateDate() != null && other.getUpdateDate().equals(this.getUpdateDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStateMachineAliasArn() == null) ? 0 : getStateMachineAliasArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getRoutingConfiguration() == null) ? 0 : getRoutingConfiguration().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode()); return hashCode; } @Override public DescribeStateMachineAliasResult clone() { try { return (DescribeStateMachineAliasResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }