* The unique ID of the policy store that contains the schema. *
*/ private String policyStoreId; /** ** Identifies the namespaces of the entities referenced by this schema. *
*/ private java.util.List* The date and time that the schema was originally created. *
*/ private java.util.Date createdDate; /** ** The date and time that the schema was last updated. *
*/ private java.util.Date lastUpdatedDate; /** ** The unique ID of the policy store that contains the schema. *
* * @param policyStoreId * The unique ID of the policy store that contains the schema. */ public void setPolicyStoreId(String policyStoreId) { this.policyStoreId = policyStoreId; } /** ** The unique ID of the policy store that contains the schema. *
* * @return The unique ID of the policy store that contains the schema. */ public String getPolicyStoreId() { return this.policyStoreId; } /** ** The unique ID of the policy store that contains the schema. *
* * @param policyStoreId * The unique ID of the policy store that contains the schema. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSchemaResult withPolicyStoreId(String policyStoreId) { setPolicyStoreId(policyStoreId); return this; } /** ** Identifies the namespaces of the entities referenced by this schema. *
* * @return Identifies the namespaces of the entities referenced by this schema. */ public java.util.List* Identifies the namespaces of the entities referenced by this schema. *
* * @param namespaces * Identifies the namespaces of the entities referenced by this schema. */ public void setNamespaces(java.util.Collection* Identifies the namespaces of the entities referenced by this schema. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNamespaces(java.util.Collection)} or {@link #withNamespaces(java.util.Collection)} if you want to * override the existing values. *
* * @param namespaces * Identifies the namespaces of the entities referenced by this schema. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSchemaResult withNamespaces(String... namespaces) { if (this.namespaces == null) { setNamespaces(new java.util.ArrayList* Identifies the namespaces of the entities referenced by this schema. *
* * @param namespaces * Identifies the namespaces of the entities referenced by this schema. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSchemaResult withNamespaces(java.util.Collection* The date and time that the schema was originally created. *
* * @param createdDate * The date and time that the schema was originally created. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** ** The date and time that the schema was originally created. *
* * @return The date and time that the schema was originally created. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** ** The date and time that the schema was originally created. *
* * @param createdDate * The date and time that the schema was originally created. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSchemaResult withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); return this; } /** ** The date and time that the schema was last updated. *
* * @param lastUpdatedDate * The date and time that the schema was last updated. */ public void setLastUpdatedDate(java.util.Date lastUpdatedDate) { this.lastUpdatedDate = lastUpdatedDate; } /** ** The date and time that the schema was last updated. *
* * @return The date and time that the schema was last updated. */ public java.util.Date getLastUpdatedDate() { return this.lastUpdatedDate; } /** ** The date and time that the schema was last updated. *
* * @param lastUpdatedDate * The date and time that the schema was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public PutSchemaResult withLastUpdatedDate(java.util.Date lastUpdatedDate) { setLastUpdatedDate(lastUpdatedDate); 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 (getPolicyStoreId() != null) sb.append("PolicyStoreId: ").append(getPolicyStoreId()).append(","); if (getNamespaces() != null) sb.append("Namespaces: ").append(getNamespaces()).append(","); if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()).append(","); if (getLastUpdatedDate() != null) sb.append("LastUpdatedDate: ").append(getLastUpdatedDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutSchemaResult == false) return false; PutSchemaResult other = (PutSchemaResult) obj; if (other.getPolicyStoreId() == null ^ this.getPolicyStoreId() == null) return false; if (other.getPolicyStoreId() != null && other.getPolicyStoreId().equals(this.getPolicyStoreId()) == false) return false; if (other.getNamespaces() == null ^ this.getNamespaces() == null) return false; if (other.getNamespaces() != null && other.getNamespaces().equals(this.getNamespaces()) == false) return false; if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; if (other.getLastUpdatedDate() == null ^ this.getLastUpdatedDate() == null) return false; if (other.getLastUpdatedDate() != null && other.getLastUpdatedDate().equals(this.getLastUpdatedDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicyStoreId() == null) ? 0 : getPolicyStoreId().hashCode()); hashCode = prime * hashCode + ((getNamespaces() == null) ? 0 : getNamespaces().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDate() == null) ? 0 : getLastUpdatedDate().hashCode()); return hashCode; } @Override public PutSchemaResult clone() { try { return (PutSchemaResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }