@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSSEType() == null) ? 0 : getSSEType().hashCode()); hashCode = prime * hashCode + ((getKMSMasterKeyArn() == null) ? 0 : getKMSMasterKeyArn().hashCode()); return hashCode; }
/** * 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSSEType() != null) sb.append("SSEType: ").append(getSSEType()).append(","); if (getKMSMasterKeyArn() != null) sb.append("KMSMasterKeyArn: ").append(getKMSMasterKeyArn()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SSEDescription == false) return false; SSEDescription other = (SSEDescription) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSSEType() == null ^ this.getSSEType() == null) return false; if (other.getSSEType() != null && other.getSSEType().equals(this.getSSEType()) == false) return false; if (other.getKMSMasterKeyArn() == null ^ this.getKMSMasterKeyArn() == null) return false; if (other.getKMSMasterKeyArn() != null && other.getKMSMasterKeyArn().equals(this.getKMSMasterKeyArn()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(SSEDescription sSEDescription, ProtocolMarshaller protocolMarshaller) { if (sSEDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(sSEDescription.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(sSEDescription.getSSEType(), SSETYPE_BINDING); protocolMarshaller.marshall(sSEDescription.getKMSMasterKeyArn(), KMSMASTERKEYARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSSEType() == null) ? 0 : getSSEType().hashCode()); hashCode = prime * hashCode + ((getKMSMasterKeyArn() == null) ? 0 : getKMSMasterKeyArn().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getSSEType() != null) sb.append("SSEType: " + getSSEType() + ","); if (getKMSMasterKeyArn() != null) sb.append("KMSMasterKeyArn: " + getKMSMasterKeyArn()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SSEDescription == false) return false; SSEDescription other = (SSEDescription) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSSEType() == null ^ this.getSSEType() == null) return false; if (other.getSSEType() != null && other.getSSEType().equals(this.getSSEType()) == false) return false; if (other.getKMSMasterKeyArn() == null ^ this.getKMSMasterKeyArn() == null) return false; if (other.getKMSMasterKeyArn() != null && other.getKMSMasterKeyArn().equals(this.getKMSMasterKeyArn()) == false) return false; return true; } }
public void marshall(SSEDescription sSEDescription, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (sSEDescription.getStatus() != null) { String status = sSEDescription.getStatus(); jsonWriter.name("Status"); jsonWriter.value(status); } if (sSEDescription.getSSEType() != null) { String sSEType = sSEDescription.getSSEType(); jsonWriter.name("SSEType"); jsonWriter.value(sSEType); } if (sSEDescription.getKMSMasterKeyArn() != null) { String kMSMasterKeyArn = sSEDescription.getKMSMasterKeyArn(); jsonWriter.name("KMSMasterKeyArn"); jsonWriter.value(kMSMasterKeyArn); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSSEType() == null) ? 0 : getSSEType().hashCode()); hashCode = prime * hashCode + ((getKMSMasterKeyArn() == null) ? 0 : getKMSMasterKeyArn().hashCode()); return hashCode; }
/** * 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSSEType() != null) sb.append("SSEType: ").append(getSSEType()).append(","); if (getKMSMasterKeyArn() != null) sb.append("KMSMasterKeyArn: ").append(getKMSMasterKeyArn()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SSEDescription == false) return false; SSEDescription other = (SSEDescription) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSSEType() == null ^ this.getSSEType() == null) return false; if (other.getSSEType() != null && other.getSSEType().equals(this.getSSEType()) == false) return false; if (other.getKMSMasterKeyArn() == null ^ this.getKMSMasterKeyArn() == null) return false; if (other.getKMSMasterKeyArn() != null && other.getKMSMasterKeyArn().equals(this.getKMSMasterKeyArn()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(SSEDescription sSEDescription, ProtocolMarshaller protocolMarshaller) { if (sSEDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(sSEDescription.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(sSEDescription.getSSEType(), SSETYPE_BINDING); protocolMarshaller.marshall(sSEDescription.getKMSMasterKeyArn(), KMSMASTERKEYARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }