* Contains an origin access control configuration. *
*/ private OriginAccessControlConfig originAccessControlConfig; /** ** The version identifier for the current version of the origin access control. *
*/ private String eTag; /** ** Contains an origin access control configuration. *
* * @param originAccessControlConfig * Contains an origin access control configuration. */ public void setOriginAccessControlConfig(OriginAccessControlConfig originAccessControlConfig) { this.originAccessControlConfig = originAccessControlConfig; } /** ** Contains an origin access control configuration. *
* * @return Contains an origin access control configuration. */ public OriginAccessControlConfig getOriginAccessControlConfig() { return this.originAccessControlConfig; } /** ** Contains an origin access control configuration. *
* * @param originAccessControlConfig * Contains an origin access control configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOriginAccessControlConfigResult withOriginAccessControlConfig(OriginAccessControlConfig originAccessControlConfig) { setOriginAccessControlConfig(originAccessControlConfig); return this; } /** ** The version identifier for the current version of the origin access control. *
* * @param eTag * The version identifier for the current version of the origin access control. */ public void setETag(String eTag) { this.eTag = eTag; } /** ** The version identifier for the current version of the origin access control. *
* * @return The version identifier for the current version of the origin access control. */ public String getETag() { return this.eTag; } /** ** The version identifier for the current version of the origin access control. *
* * @param eTag * The version identifier for the current version of the origin access control. * @return Returns a reference to this object so that method calls can be chained together. */ public GetOriginAccessControlConfigResult withETag(String eTag) { setETag(eTag); 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 (getOriginAccessControlConfig() != null) sb.append("OriginAccessControlConfig: ").append(getOriginAccessControlConfig()).append(","); if (getETag() != null) sb.append("ETag: ").append(getETag()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetOriginAccessControlConfigResult == false) return false; GetOriginAccessControlConfigResult other = (GetOriginAccessControlConfigResult) obj; if (other.getOriginAccessControlConfig() == null ^ this.getOriginAccessControlConfig() == null) return false; if (other.getOriginAccessControlConfig() != null && other.getOriginAccessControlConfig().equals(this.getOriginAccessControlConfig()) == false) return false; if (other.getETag() == null ^ this.getETag() == null) return false; if (other.getETag() != null && other.getETag().equals(this.getETag()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOriginAccessControlConfig() == null) ? 0 : getOriginAccessControlConfig().hashCode()); hashCode = prime * hashCode + ((getETag() == null) ? 0 : getETag().hashCode()); return hashCode; } @Override public GetOriginAccessControlConfigResult clone() { try { return (GetOriginAccessControlConfigResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }