* The Amazon Resource Name (ARN) of the configuration. *
*/ private String arn; /** ** The time when the configuration was created. *
*/ private java.util.Date creationTime; /** ** Latest revision of the configuration. *
*/ private ConfigurationRevision latestRevision; /** ** The name of the configuration. *
*/ private String name; /** ** The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
*/ private String state; /** ** The Amazon Resource Name (ARN) of the configuration. *
* * @param arn ** The Amazon Resource Name (ARN) of the configuration. *
*/ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the configuration. *
* * @return* The Amazon Resource Name (ARN) of the configuration. *
*/ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the configuration. *
* * @param arn ** The Amazon Resource Name (ARN) of the configuration. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withArn(String arn) { setArn(arn); return this; } /** ** The time when the configuration was created. *
* * @param creationTime ** The time when the configuration was created. *
*/ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time when the configuration was created. *
* * @return* The time when the configuration was created. *
*/ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time when the configuration was created. *
* * @param creationTime ** The time when the configuration was created. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** Latest revision of the configuration. *
* * @param latestRevision ** Latest revision of the configuration. *
*/ public void setLatestRevision(ConfigurationRevision latestRevision) { this.latestRevision = latestRevision; } /** ** Latest revision of the configuration. *
* * @return* Latest revision of the configuration. *
*/ public ConfigurationRevision getLatestRevision() { return this.latestRevision; } /** ** Latest revision of the configuration. *
* * @param latestRevision ** Latest revision of the configuration. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withLatestRevision(ConfigurationRevision latestRevision) { setLatestRevision(latestRevision); return this; } /** ** The name of the configuration. *
* * @param name ** The name of the configuration. *
*/ public void setName(String name) { this.name = name; } /** ** The name of the configuration. *
* * @return* The name of the configuration. *
*/ public String getName() { return this.name; } /** ** The name of the configuration. *
* * @param name ** The name of the configuration. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withName(String name) { setName(name); return this; } /** ** The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
* * @param state ** The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
* @see ConfigurationState */ public void setState(String state) { this.state = state; } /** ** The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
* * @return* The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
* @see ConfigurationState */ public String getState() { return this.state; } /** ** The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
* * @param state ** The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
* @return Returns a reference to this object so that method calls can be chained together. * @see ConfigurationState */ public CreateConfigurationResult withState(String state) { setState(state); return this; } /** ** The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
* * @param state ** The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. *
* @return Returns a reference to this object so that method calls can be chained together. * @see ConfigurationState */ public CreateConfigurationResult withState(ConfigurationState state) { this.state = state.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLatestRevision() != null) sb.append("LatestRevision: ").append(getLatestRevision()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConfigurationResult == false) return false; CreateConfigurationResult other = (CreateConfigurationResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLatestRevision() == null ^ this.getLatestRevision() == null) return false; if (other.getLatestRevision() != null && other.getLatestRevision().equals(this.getLatestRevision()) == 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.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; } @Override public CreateConfigurationResult clone() { try { return (CreateConfigurationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }