/** * <p> * The Amazon Resource Name (ARN) assigned to the created topic. * </p> * * @param topicArn * The Amazon Resource Name (ARN) assigned to the created topic. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTopicResult withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
public CreateTopicResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateTopicResult createTopicResult = new CreateTopicResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createTopicResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TopicArn", targetDepth)) { createTopicResult.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createTopicResult; } } } }
public CreateTopicResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateTopicResult createTopicResult = new CreateTopicResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("TopicArn", targetDepth)) { createTopicResult.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return createTopicResult; }
public CreateTopicResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateTopicResult createTopicResult = new CreateTopicResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("TopicArn", targetDepth)) { createTopicResult.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return createTopicResult; }