* The ARN of the connection that was updated. *
*/ private String connectionArn; /** ** The state of the connection that was updated. *
*/ private String connectionState; /** ** A time stamp for the time that the connection was created. *
*/ private java.util.Date creationTime; /** ** A time stamp for the time that the connection was last modified. *
*/ private java.util.Date lastModifiedTime; /** ** A time stamp for the time that the connection was last authorized. *
*/ private java.util.Date lastAuthorizedTime; /** ** The ARN of the connection that was updated. *
* * @param connectionArn * The ARN of the connection that was updated. */ public void setConnectionArn(String connectionArn) { this.connectionArn = connectionArn; } /** ** The ARN of the connection that was updated. *
* * @return The ARN of the connection that was updated. */ public String getConnectionArn() { return this.connectionArn; } /** ** The ARN of the connection that was updated. *
* * @param connectionArn * The ARN of the connection that was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConnectionResult withConnectionArn(String connectionArn) { setConnectionArn(connectionArn); return this; } /** ** The state of the connection that was updated. *
* * @param connectionState * The state of the connection that was updated. * @see ConnectionState */ public void setConnectionState(String connectionState) { this.connectionState = connectionState; } /** ** The state of the connection that was updated. *
* * @return The state of the connection that was updated. * @see ConnectionState */ public String getConnectionState() { return this.connectionState; } /** ** The state of the connection that was updated. *
* * @param connectionState * The state of the connection that was updated. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionState */ public UpdateConnectionResult withConnectionState(String connectionState) { setConnectionState(connectionState); return this; } /** ** The state of the connection that was updated. *
* * @param connectionState * The state of the connection that was updated. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionState */ public UpdateConnectionResult withConnectionState(ConnectionState connectionState) { this.connectionState = connectionState.toString(); return this; } /** ** A time stamp for the time that the connection was created. *
* * @param creationTime * A time stamp for the time that the connection was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** A time stamp for the time that the connection was created. *
* * @return A time stamp for the time that the connection was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** A time stamp for the time that the connection was created. *
* * @param creationTime * A time stamp for the time that the connection was created. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConnectionResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** A time stamp for the time that the connection was last modified. *
* * @param lastModifiedTime * A time stamp for the time that the connection was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** A time stamp for the time that the connection was last modified. *
* * @return A time stamp for the time that the connection was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** A time stamp for the time that the connection was last modified. *
* * @param lastModifiedTime * A time stamp for the time that the connection was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConnectionResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** ** A time stamp for the time that the connection was last authorized. *
* * @param lastAuthorizedTime * A time stamp for the time that the connection was last authorized. */ public void setLastAuthorizedTime(java.util.Date lastAuthorizedTime) { this.lastAuthorizedTime = lastAuthorizedTime; } /** ** A time stamp for the time that the connection was last authorized. *
* * @return A time stamp for the time that the connection was last authorized. */ public java.util.Date getLastAuthorizedTime() { return this.lastAuthorizedTime; } /** ** A time stamp for the time that the connection was last authorized. *
* * @param lastAuthorizedTime * A time stamp for the time that the connection was last authorized. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConnectionResult withLastAuthorizedTime(java.util.Date lastAuthorizedTime) { setLastAuthorizedTime(lastAuthorizedTime); 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 (getConnectionArn() != null) sb.append("ConnectionArn: ").append(getConnectionArn()).append(","); if (getConnectionState() != null) sb.append("ConnectionState: ").append(getConnectionState()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getLastAuthorizedTime() != null) sb.append("LastAuthorizedTime: ").append(getLastAuthorizedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateConnectionResult == false) return false; UpdateConnectionResult other = (UpdateConnectionResult) obj; if (other.getConnectionArn() == null ^ this.getConnectionArn() == null) return false; if (other.getConnectionArn() != null && other.getConnectionArn().equals(this.getConnectionArn()) == false) return false; if (other.getConnectionState() == null ^ this.getConnectionState() == null) return false; if (other.getConnectionState() != null && other.getConnectionState().equals(this.getConnectionState()) == 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.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getLastAuthorizedTime() == null ^ this.getLastAuthorizedTime() == null) return false; if (other.getLastAuthorizedTime() != null && other.getLastAuthorizedTime().equals(this.getLastAuthorizedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConnectionArn() == null) ? 0 : getConnectionArn().hashCode()); hashCode = prime * hashCode + ((getConnectionState() == null) ? 0 : getConnectionState().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getLastAuthorizedTime() == null) ? 0 : getLastAuthorizedTime().hashCode()); return hashCode; } @Override public UpdateConnectionResult clone() { try { return (UpdateConnectionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }