/** * <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; }
if (context.testExpression("deprecated", targetDepth)) { context.nextToken(); thingTypeMetadata.setDeprecated(context.getUnmarshaller(Boolean.class).unmarshall(context));
/** * <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; }
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; }
if (context.testExpression("deprecated", targetDepth)) { context.nextToken(); thingTypeMetadata.setDeprecated(context.getUnmarshaller(Boolean.class).unmarshall(context));