/** * <p> * The name of the new thing. * </p> * * @param thingName * The name of the new thing. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThingResult withThingName(String thingName) { setThingName(thingName); return this; }
if (context.testExpression("thingName", targetDepth)) { context.nextToken(); createThingResult.setThingName(context.getUnmarshaller(String.class).unmarshall(context));
public CreateThingResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateThingResult createThingResult = new CreateThingResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingName")) { createThingResult.setThingName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingArn")) { createThingResult.setThingArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingId")) { createThingResult.setThingId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createThingResult; }
/** * <p> * The name of the new thing. * </p> * * @param thingName * The name of the new thing. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThingResult withThingName(String thingName) { setThingName(thingName); return this; }
public CreateThingResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateThingResult createThingResult = new CreateThingResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingName")) { createThingResult.setThingName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingArn")) { createThingResult.setThingArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingId")) { createThingResult.setThingId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createThingResult; }
if (context.testExpression("thingName", targetDepth)) { context.nextToken(); createThingResult.setThingName(context.getUnmarshaller(String.class).unmarshall(context));