/** * <p> * The ARN of the IAM role that grants access. * </p> * * @param roleArn * The ARN of the IAM role that grants access. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingOptionsPayload withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
if (context.testExpression("roleArn", targetDepth)) { context.nextToken(); loggingOptionsPayload.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The ARN of the IAM role that grants access. * </p> * * @param roleArn * The ARN of the IAM role that grants access. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingOptionsPayload withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
public LoggingOptionsPayload unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } LoggingOptionsPayload loggingOptionsPayload = new LoggingOptionsPayload(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("roleArn")) { loggingOptionsPayload.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("logLevel")) { loggingOptionsPayload.setLogLevel(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return loggingOptionsPayload; }
public LoggingOptionsPayload unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } LoggingOptionsPayload loggingOptionsPayload = new LoggingOptionsPayload(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("roleArn")) { loggingOptionsPayload.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("logLevel")) { loggingOptionsPayload.setLogLevel(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return loggingOptionsPayload; }
if (context.testExpression("roleArn", targetDepth)) { context.nextToken(); loggingOptionsPayload.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));