/** * <p> * The ThingTypeProperties contains information about the thing type including description, and a list of searchable * thing attribute names. * </p> * * @param thingTypeProperties * The ThingTypeProperties contains information about the thing type including description, and a list of * searchable thing attribute names. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeProperties(ThingTypeProperties thingTypeProperties) { setThingTypeProperties(thingTypeProperties); return this; }
describeThingTypeResult.setThingTypeProperties(ThingTypePropertiesJsonUnmarshaller.getInstance().unmarshall(context));
public DescribeThingTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeThingTypeResult describeThingTypeResult = new DescribeThingTypeResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingTypeName")) { describeThingTypeResult.setThingTypeName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeId")) { describeThingTypeResult.setThingTypeId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeArn")) { describeThingTypeResult.setThingTypeArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeProperties")) { describeThingTypeResult.setThingTypeProperties(ThingTypePropertiesJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("thingTypeMetadata")) { describeThingTypeResult.setThingTypeMetadata(ThingTypeMetadataJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return describeThingTypeResult; }
/** * <p> * The ThingTypeProperties contains information about the thing type including description, and a list of searchable * thing attribute names. * </p> * * @param thingTypeProperties * The ThingTypeProperties contains information about the thing type including description, and a list of * searchable thing attribute names. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeProperties(ThingTypeProperties thingTypeProperties) { setThingTypeProperties(thingTypeProperties); return this; }
public DescribeThingTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeThingTypeResult describeThingTypeResult = new DescribeThingTypeResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingTypeName")) { describeThingTypeResult.setThingTypeName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeId")) { describeThingTypeResult.setThingTypeId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeArn")) { describeThingTypeResult.setThingTypeArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeProperties")) { describeThingTypeResult.setThingTypeProperties(ThingTypePropertiesJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("thingTypeMetadata")) { describeThingTypeResult.setThingTypeMetadata(ThingTypeMetadataJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return describeThingTypeResult; }
describeThingTypeResult.setThingTypeProperties(ThingTypePropertiesJsonUnmarshaller.getInstance().unmarshall(context));