@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateCloudFrontOriginAccessIdentityResult == false) return false; UpdateCloudFrontOriginAccessIdentityResult other = (UpdateCloudFrontOriginAccessIdentityResult) obj; if (other.getCloudFrontOriginAccessIdentity() == null ^ this.getCloudFrontOriginAccessIdentity() == null) return false; if (other.getCloudFrontOriginAccessIdentity() != null && other .getCloudFrontOriginAccessIdentity() .equals(this.getCloudFrontOriginAccessIdentity()) == 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; }