/** * <p> * The ARN of the security profile. * </p> * * @param arn * The ARN of the security profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityProfileIdentifier withArn(String arn) { setArn(arn); return this; }
securityProfileIdentifier.setArn(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The ARN of the security profile. * </p> * * @param arn * The ARN of the security profile. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityProfileIdentifier withArn(String arn) { setArn(arn); return this; }
public SecurityProfileIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } SecurityProfileIdentifier securityProfileIdentifier = new SecurityProfileIdentifier(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("name")) { securityProfileIdentifier.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("arn")) { securityProfileIdentifier.setArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return securityProfileIdentifier; }
public SecurityProfileIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } SecurityProfileIdentifier securityProfileIdentifier = new SecurityProfileIdentifier(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("name")) { securityProfileIdentifier.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("arn")) { securityProfileIdentifier.setArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return securityProfileIdentifier; }
securityProfileIdentifier.setArn(context.getUnmarshaller(String.class).unmarshall(context));