* The log group name or ARN that you specified in your request. *
*/ private String logGroupIdentifier; /** ** The data protection policy document for this log group. *
*/ private String policyDocument; /** ** The date and time that this policy was most recently updated. *
*/ private Long lastUpdatedTime; /** ** The log group name or ARN that you specified in your request. *
* * @param logGroupIdentifier * The log group name or ARN that you specified in your request. */ public void setLogGroupIdentifier(String logGroupIdentifier) { this.logGroupIdentifier = logGroupIdentifier; } /** ** The log group name or ARN that you specified in your request. *
* * @return The log group name or ARN that you specified in your request. */ public String getLogGroupIdentifier() { return this.logGroupIdentifier; } /** ** The log group name or ARN that you specified in your request. *
* * @param logGroupIdentifier * The log group name or ARN that you specified in your request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataProtectionPolicyResult withLogGroupIdentifier(String logGroupIdentifier) { setLogGroupIdentifier(logGroupIdentifier); return this; } /** ** The data protection policy document for this log group. *
* * @param policyDocument * The data protection policy document for this log group. */ public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } /** ** The data protection policy document for this log group. *
* * @return The data protection policy document for this log group. */ public String getPolicyDocument() { return this.policyDocument; } /** ** The data protection policy document for this log group. *
* * @param policyDocument * The data protection policy document for this log group. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataProtectionPolicyResult withPolicyDocument(String policyDocument) { setPolicyDocument(policyDocument); return this; } /** ** The date and time that this policy was most recently updated. *
* * @param lastUpdatedTime * The date and time that this policy was most recently updated. */ public void setLastUpdatedTime(Long lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** ** The date and time that this policy was most recently updated. *
* * @return The date and time that this policy was most recently updated. */ public Long getLastUpdatedTime() { return this.lastUpdatedTime; } /** ** The date and time that this policy was most recently updated. *
* * @param lastUpdatedTime * The date and time that this policy was most recently updated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataProtectionPolicyResult withLastUpdatedTime(Long lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); 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 (getLogGroupIdentifier() != null) sb.append("LogGroupIdentifier: ").append(getLogGroupIdentifier()).append(","); if (getPolicyDocument() != null) sb.append("PolicyDocument: ").append(getPolicyDocument()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDataProtectionPolicyResult == false) return false; GetDataProtectionPolicyResult other = (GetDataProtectionPolicyResult) obj; if (other.getLogGroupIdentifier() == null ^ this.getLogGroupIdentifier() == null) return false; if (other.getLogGroupIdentifier() != null && other.getLogGroupIdentifier().equals(this.getLogGroupIdentifier()) == false) return false; if (other.getPolicyDocument() == null ^ this.getPolicyDocument() == null) return false; if (other.getPolicyDocument() != null && other.getPolicyDocument().equals(this.getPolicyDocument()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLogGroupIdentifier() == null) ? 0 : getLogGroupIdentifier().hashCode()); hashCode = prime * hashCode + ((getPolicyDocument() == null) ? 0 : getPolicyDocument().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); return hashCode; } @Override public GetDataProtectionPolicyResult clone() { try { return (GetDataProtectionPolicyResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }