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