/** * <p> * The name of the Auto Scaling group. * </p> * * @param autoScalingGroupName * The name of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfiguration withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); 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.setAutoScalingGroupName(StringStaxUnmarshaller .getInstance().unmarshall(context)); continue;