* The Amazon Resource Name (arn) of the world template. *
*/ private String arn; /** ** The name of the world template. *
*/ private String name; /** ** The time, in milliseconds since the epoch, when the world template was created. *
*/ private java.util.Date createdAt; /** ** The time, in milliseconds since the epoch, when the world template was last updated. *
*/ private java.util.Date lastUpdatedAt; /** ** The Amazon Resource Name (arn) of the world template. *
* * @param arn * The Amazon Resource Name (arn) of the world template. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (arn) of the world template. *
* * @return The Amazon Resource Name (arn) of the world template. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (arn) of the world template. *
* * @param arn * The Amazon Resource Name (arn) of the world template. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorldTemplateResult withArn(String arn) { setArn(arn); return this; } /** ** The name of the world template. *
* * @param name * The name of the world template. */ public void setName(String name) { this.name = name; } /** ** The name of the world template. *
* * @return The name of the world template. */ public String getName() { return this.name; } /** ** The name of the world template. *
* * @param name * The name of the world template. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorldTemplateResult withName(String name) { setName(name); return this; } /** ** The time, in milliseconds since the epoch, when the world template was created. *
* * @param createdAt * The time, in milliseconds since the epoch, when the world template was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The time, in milliseconds since the epoch, when the world template was created. *
* * @return The time, in milliseconds since the epoch, when the world template was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The time, in milliseconds since the epoch, when the world template was created. *
* * @param createdAt * The time, in milliseconds since the epoch, when the world template was created. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorldTemplateResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The time, in milliseconds since the epoch, when the world template was last updated. *
* * @param lastUpdatedAt * The time, in milliseconds since the epoch, when the world template was last updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** ** The time, in milliseconds since the epoch, when the world template was last updated. *
* * @return The time, in milliseconds since the epoch, when the world template was last updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** ** The time, in milliseconds since the epoch, when the world template was last updated. *
* * @param lastUpdatedAt * The time, in milliseconds since the epoch, when the world template was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorldTemplateResult withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateWorldTemplateResult == false) return false; UpdateWorldTemplateResult other = (UpdateWorldTemplateResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == 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.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == 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 + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); return hashCode; } @Override public UpdateWorldTemplateResult clone() { try { return (UpdateWorldTemplateResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }