/** * <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; }
thingTypeMetadata.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
/** * <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 { 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; }
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; }
thingTypeMetadata.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));