/** * <p> * The current state of the topic. * </p> * * @param topicStatus * The current state of the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfiguration withTopicStatus(String topicStatus) { setTopicStatus(topicStatus); 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("TopicArn", targetDepth)) { notificationConfiguration.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicStatus", targetDepth)) { notificationConfiguration.setTopicStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return notificationConfiguration; } } } }
/** * <p> * The current state of the topic. * </p> * * @param topicStatus * The current state of the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfiguration withTopicStatus(String topicStatus) { setTopicStatus(topicStatus); 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("TopicArn", targetDepth)) { notificationConfiguration.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicStatus", targetDepth)) { notificationConfiguration.setTopicStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return notificationConfiguration; } } } }