/** * <p> * The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic. * </p> * * @param topicARN * The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfiguration withTopicARN(String topicARN) { setTopicARN(topicARN); return this; }
public NotificationConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { NotificationConfiguration notificationConfiguration = new NotificationConfiguration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return notificationConfiguration; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("AutoScalingGroupName", targetDepth)) { notificationConfiguration.setAutoScalingGroupName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicARN", targetDepth)) { notificationConfiguration.setTopicARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NotificationType", targetDepth)) { notificationConfiguration.setNotificationType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return notificationConfiguration; } } } }
notificationConfiguration.setTopicARN(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue;