/** * <p> * An identity pool ID in the format REGION:GUID. * </p> * * @param identityPoolId * An identity pool ID in the format REGION:GUID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetIdentityPoolRolesResult withIdentityPoolId(String identityPoolId) { setIdentityPoolId(identityPoolId); return this; }
if (context.testExpression("IdentityPoolId", targetDepth)) { context.nextToken(); getIdentityPoolRolesResult.setIdentityPoolId(context.getUnmarshaller(String.class).unmarshall(context));
public GetIdentityPoolRolesResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetIdentityPoolRolesResult getIdentityPoolRolesResult = new GetIdentityPoolRolesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("IdentityPoolId")) { getIdentityPoolRolesResult.setIdentityPoolId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Roles")) { getIdentityPoolRolesResult.setRoles(new MapUnmarshaller<String>( StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("RoleMappings")) { getIdentityPoolRolesResult.setRoleMappings(new MapUnmarshaller<RoleMapping>( RoleMappingJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return getIdentityPoolRolesResult; }