@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 + ((getThingTypeName() == null) ? 0 : getThingTypeName().hashCode()); hashCode = prime * hashCode + ((getThingTypeId() == null) ? 0 : getThingTypeId().hashCode()); hashCode = prime * hashCode + ((getThingTypeArn() == null) ? 0 : getThingTypeArn().hashCode()); hashCode = prime * hashCode + ((getThingTypeProperties() == null) ? 0 : getThingTypeProperties().hashCode()); hashCode = prime * hashCode + ((getThingTypeMetadata() == null) ? 0 : getThingTypeMetadata().hashCode()); return hashCode; }
/** * <p> * The date and time when the thing type was created. * </p> * * @param creationDate * The date and time when the thing type was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingTypeMetadata withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; }
public ThingTypeMetadata unmarshall(JsonUnmarshallerContext context) throws Exception { ThingTypeMetadata thingTypeMetadata = new ThingTypeMetadata(); if (context.testExpression("deprecated", targetDepth)) { context.nextToken(); thingTypeMetadata.setDeprecated(context.getUnmarshaller(Boolean.class).unmarshall(context)); thingTypeMetadata.setDeprecationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); thingTypeMetadata.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeDefinition == false) return false; ThingTypeDefinition other = (ThingTypeDefinition) obj; if (other.getThingTypeName() == null ^ this.getThingTypeName() == null) return false; if (other.getThingTypeName() != null && other.getThingTypeName().equals(this.getThingTypeName()) == false) return false; if (other.getThingTypeArn() == null ^ this.getThingTypeArn() == null) return false; if (other.getThingTypeArn() != null && other.getThingTypeArn().equals(this.getThingTypeArn()) == false) return false; if (other.getThingTypeProperties() == null ^ this.getThingTypeProperties() == null) return false; if (other.getThingTypeProperties() != null && other.getThingTypeProperties().equals(this.getThingTypeProperties()) == false) return false; if (other.getThingTypeMetadata() == null ^ this.getThingTypeMetadata() == null) return false; if (other.getThingTypeMetadata() != null && other.getThingTypeMetadata().equals(this.getThingTypeMetadata()) == false) return false; return true; }
/** * <p> * Whether the thing type is deprecated. If <b>true</b>, no new things could be associated with this type. * </p> * * @param deprecated * Whether the thing type is deprecated. If <b>true</b>, no new things could be associated with this type. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingTypeMetadata withDeprecated(Boolean deprecated) { setDeprecated(deprecated); return this; }
/** * <p> * The date and time when the thing type was deprecated. * </p> * * @param deprecationDate * The date and time when the thing type was deprecated. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingTypeMetadata withDeprecationDate(java.util.Date deprecationDate) { setDeprecationDate(deprecationDate); return this; }
public ThingTypeMetadata unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ThingTypeMetadata thingTypeMetadata = new ThingTypeMetadata(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("deprecated")) { thingTypeMetadata.setDeprecated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("deprecationDate")) { thingTypeMetadata.setDeprecationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("creationDate")) { thingTypeMetadata.setCreationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return thingTypeMetadata; }
if (other.getThingTypeMetadata() == null ^ this.getThingTypeMetadata() == null) return false; if (other.getThingTypeMetadata() != null && other.getThingTypeMetadata().equals(this.getThingTypeMetadata()) == false) return false; return true;
/** * <p> * Whether the thing type is deprecated. If <b>true</b>, no new things could be associated with this type. * </p> * * @param deprecated * Whether the thing type is deprecated. If <b>true</b>, no new things could be associated with this type. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingTypeMetadata withDeprecated(Boolean deprecated) { setDeprecated(deprecated); return this; }
/** * <p> * The date and time when the thing type was deprecated. * </p> * * @param deprecationDate * The date and time when the thing type was deprecated. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingTypeMetadata withDeprecationDate(java.util.Date deprecationDate) { setDeprecationDate(deprecationDate); return this; }
@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 ThingTypeMetadata unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ThingTypeMetadata thingTypeMetadata = new ThingTypeMetadata(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("deprecated")) { thingTypeMetadata.setDeprecated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("deprecationDate")) { thingTypeMetadata.setDeprecationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("creationDate")) { thingTypeMetadata.setCreationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return thingTypeMetadata; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeName() == null) ? 0 : getThingTypeName().hashCode()); hashCode = prime * hashCode + ((getThingTypeArn() == null) ? 0 : getThingTypeArn().hashCode()); hashCode = prime * hashCode + ((getThingTypeProperties() == null) ? 0 : getThingTypeProperties().hashCode()); hashCode = prime * hashCode + ((getThingTypeMetadata() == null) ? 0 : getThingTypeMetadata().hashCode()); return hashCode; }
return false; if (other.getThingTypeMetadata() != null && other.getThingTypeMetadata().equals(this.getThingTypeMetadata()) == false) return false; return true;
/** * <p> * The date and time when the thing type was created. * </p> * * @param creationDate * The date and time when the thing type was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingTypeMetadata withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); 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 (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(); }
public ThingTypeMetadata unmarshall(JsonUnmarshallerContext context) throws Exception { ThingTypeMetadata thingTypeMetadata = new ThingTypeMetadata(); if (context.testExpression("deprecated", targetDepth)) { context.nextToken(); thingTypeMetadata.setDeprecated(context.getUnmarshaller(Boolean.class).unmarshall(context)); thingTypeMetadata.setDeprecationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); thingTypeMetadata.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeName() == null) ? 0 : getThingTypeName().hashCode()); hashCode = prime * hashCode + ((getThingTypeArn() == null) ? 0 : getThingTypeArn().hashCode()); hashCode = prime * hashCode + ((getThingTypeProperties() == null) ? 0 : getThingTypeProperties().hashCode()); hashCode = prime * hashCode + ((getThingTypeMetadata() == null) ? 0 : getThingTypeMetadata().hashCode()); return hashCode; }
return false; if (other.getThingTypeMetadata() != null && other.getThingTypeMetadata().equals(this.getThingTypeMetadata()) == false) return false; return true;