@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeprecated() == null) ? 0 : getDeprecated().hashCode()); hashCode = prime * hashCode + ((getDeprecationDate() == null) ? 0 : getDeprecationDate().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().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 (getDeprecated() != null) sb.append("Deprecated: ").append(getDeprecated()).append(","); if (getDeprecationDate() != null) sb.append("DeprecationDate: ").append(getDeprecationDate()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeMetadata == false) return false; ThingTypeMetadata other = (ThingTypeMetadata) obj; if (other.getDeprecated() == null ^ this.getDeprecated() == null) return false; if (other.getDeprecated() != null && other.getDeprecated().equals(this.getDeprecated()) == false) return false; if (other.getDeprecationDate() == null ^ this.getDeprecationDate() == null) return false; if (other.getDeprecationDate() != null && other.getDeprecationDate().equals(this.getDeprecationDate()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(ThingTypeMetadata thingTypeMetadata, ProtocolMarshaller protocolMarshaller) { if (thingTypeMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(thingTypeMetadata.getDeprecated(), DEPRECATED_BINDING); protocolMarshaller.marshall(thingTypeMetadata.getDeprecationDate(), DEPRECATIONDATE_BINDING); protocolMarshaller.marshall(thingTypeMetadata.getCreationDate(), CREATIONDATE_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 + ((getDeprecated() == null) ? 0 : getDeprecated().hashCode()); hashCode = prime * hashCode + ((getDeprecationDate() == null) ? 0 : getDeprecationDate().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().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 (getDeprecated() != null) sb.append("deprecated: " + getDeprecated() + ","); if (getDeprecationDate() != null) sb.append("deprecationDate: " + getDeprecationDate() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeMetadata == false) return false; ThingTypeMetadata other = (ThingTypeMetadata) obj; if (other.getDeprecated() == null ^ this.getDeprecated() == null) return false; if (other.getDeprecated() != null && other.getDeprecated().equals(this.getDeprecated()) == false) return false; if (other.getDeprecationDate() == null ^ this.getDeprecationDate() == null) return false; if (other.getDeprecationDate() != null && other.getDeprecationDate().equals(this.getDeprecationDate()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; return true; } }
public void marshall(ThingTypeMetadata thingTypeMetadata, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (thingTypeMetadata.getDeprecated() != null) { Boolean deprecated = thingTypeMetadata.getDeprecated(); jsonWriter.name("deprecated"); jsonWriter.value(deprecated); } if (thingTypeMetadata.getDeprecationDate() != null) { java.util.Date deprecationDate = thingTypeMetadata.getDeprecationDate(); jsonWriter.name("deprecationDate"); jsonWriter.value(deprecationDate); } if (thingTypeMetadata.getCreationDate() != null) { java.util.Date creationDate = thingTypeMetadata.getCreationDate(); jsonWriter.name("creationDate"); jsonWriter.value(creationDate); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeprecated() == null) ? 0 : getDeprecated().hashCode()); hashCode = prime * hashCode + ((getDeprecationDate() == null) ? 0 : getDeprecationDate().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeprecated() == null) ? 0 : getDeprecated().hashCode()); hashCode = prime * hashCode + ((getDeprecationDate() == null) ? 0 : getDeprecationDate().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().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 (getDeprecated() != null) sb.append("Deprecated: ").append(getDeprecated()).append(","); if (getDeprecationDate() != null) sb.append("DeprecationDate: ").append(getDeprecationDate()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()); sb.append("}"); return sb.toString(); }
/** * 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 (getDeprecated() != null) sb.append("deprecated: " + getDeprecated() + ","); if (getDeprecationDate() != null) sb.append("deprecationDate: " + getDeprecationDate() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeMetadata == false) return false; ThingTypeMetadata other = (ThingTypeMetadata) obj; if (other.getDeprecated() == null ^ this.getDeprecated() == null) return false; if (other.getDeprecated() != null && other.getDeprecated().equals(this.getDeprecated()) == false) return false; if (other.getDeprecationDate() == null ^ this.getDeprecationDate() == null) return false; if (other.getDeprecationDate() != null && other.getDeprecationDate().equals(this.getDeprecationDate()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(ThingTypeMetadata thingTypeMetadata, ProtocolMarshaller protocolMarshaller) { if (thingTypeMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(thingTypeMetadata.getDeprecated(), DEPRECATED_BINDING); protocolMarshaller.marshall(thingTypeMetadata.getDeprecationDate(), DEPRECATIONDATE_BINDING); protocolMarshaller.marshall(thingTypeMetadata.getCreationDate(), CREATIONDATE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeMetadata == false) return false; ThingTypeMetadata other = (ThingTypeMetadata) obj; if (other.getDeprecated() == null ^ this.getDeprecated() == null) return false; if (other.getDeprecated() != null && other.getDeprecated().equals(this.getDeprecated()) == false) return false; if (other.getDeprecationDate() == null ^ this.getDeprecationDate() == null) return false; if (other.getDeprecationDate() != null && other.getDeprecationDate().equals(this.getDeprecationDate()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; return true; } }
public void marshall(ThingTypeMetadata thingTypeMetadata, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (thingTypeMetadata.getDeprecated() != null) { Boolean deprecated = thingTypeMetadata.getDeprecated(); jsonWriter.name("deprecated"); jsonWriter.value(deprecated); } if (thingTypeMetadata.getDeprecationDate() != null) { java.util.Date deprecationDate = thingTypeMetadata.getDeprecationDate(); jsonWriter.name("deprecationDate"); jsonWriter.value(deprecationDate); } if (thingTypeMetadata.getCreationDate() != null) { java.util.Date creationDate = thingTypeMetadata.getCreationDate(); jsonWriter.name("creationDate"); jsonWriter.value(creationDate); } jsonWriter.endObject(); }