/** * <p> * The Amazon SNS topic to which Amazon Rekognition to posts the completion status. * </p> * * @param sNSTopicArn * The Amazon SNS topic to which Amazon Rekognition to posts the completion status. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationChannel withSNSTopicArn(String sNSTopicArn) { setSNSTopicArn(sNSTopicArn); return this; }
if (context.testExpression("SNSTopicArn", targetDepth)) { context.nextToken(); notificationChannel.setSNSTopicArn(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; }