/** * <p> * The thing type ID. * </p> * * @param thingTypeId * The thing type ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeId(String thingTypeId) { setThingTypeId(thingTypeId); return this; }
describeThingTypeResult.setThingTypeId(context.getUnmarshaller(String.class).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 thing type ID. * </p> * * @param thingTypeId * The thing type ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeId(String thingTypeId) { setThingTypeId(thingTypeId); 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.setThingTypeId(context.getUnmarshaller(String.class).unmarshall(context));