/** * <p> * The ARN of an IAM role that gives Amazon Rekognition publishing permissions to the Amazon SNS topic. * </p> * * @param roleArn * The ARN of an IAM role that gives Amazon Rekognition publishing permissions to the Amazon SNS topic. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationChannel withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
notificationChannel.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
public NotificationChannel unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } NotificationChannel notificationChannel = new NotificationChannel(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("SNSTopicArn")) { notificationChannel.setSNSTopicArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("RoleArn")) { notificationChannel.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return notificationChannel; }