/** * <p> * The description of the thing type. * </p> * * @param thingTypeDescription * The description of the thing type. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingTypeProperties withThingTypeDescription(String thingTypeDescription) { setThingTypeDescription(thingTypeDescription); return this; }
if (context.testExpression("thingTypeDescription", targetDepth)) { context.nextToken(); thingTypeProperties.setThingTypeDescription(context.getUnmarshaller(String.class).unmarshall(context));
public ThingTypeProperties unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ThingTypeProperties thingTypeProperties = new ThingTypeProperties(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingTypeDescription")) { thingTypeProperties.setThingTypeDescription(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("searchableAttributes")) { thingTypeProperties.setSearchableAttributes(new ListUnmarshaller<String>( StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return thingTypeProperties; }
/** * <p> * The description of the thing type. * </p> * * @param thingTypeDescription * The description of the thing type. * @return Returns a reference to this object so that method calls can be chained together. */ public ThingTypeProperties withThingTypeDescription(String thingTypeDescription) { setThingTypeDescription(thingTypeDescription); return this; }
public ThingTypeProperties unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ThingTypeProperties thingTypeProperties = new ThingTypeProperties(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingTypeDescription")) { thingTypeProperties.setThingTypeDescription(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("searchableAttributes")) { thingTypeProperties.setSearchableAttributes(new ListUnmarshaller<String>( StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return thingTypeProperties; }
if (context.testExpression("thingTypeDescription", targetDepth)) { context.nextToken(); thingTypeProperties.setThingTypeDescription(context.getUnmarshaller(String.class).unmarshall(context));