/** * <p> * Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources. * </p> * * @param collectionArn * Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCollectionResult withCollectionArn(String collectionArn) { setCollectionArn(collectionArn); return this; }
createCollectionResult.setCollectionArn(context.getUnmarshaller(String.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; }