/** * <p> * HTTP status code indicating the result of the operation. * </p> * * @param statusCode * HTTP status code indicating the result of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCollectionResult withStatusCode(Integer statusCode) { setStatusCode(statusCode); return this; }
if (context.testExpression("StatusCode", targetDepth)) { context.nextToken(); createCollectionResult.setStatusCode(context.getUnmarshaller(Integer.class).unmarshall(context));
public CreateCollectionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateCollectionResult createCollectionResult = new CreateCollectionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("StatusCode")) { createCollectionResult.setStatusCode(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("CollectionArn")) { createCollectionResult.setCollectionArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceModelVersion")) { createCollectionResult.setFaceModelVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createCollectionResult; }