/** * <p> * The unique message identifier returned from the <code>SendEmail</code> action. * </p> * * @param messageId * The unique message identifier returned from the <code>SendEmail</code> action. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailResult withMessageId(String messageId) { setMessageId(messageId); return this; }
public SendEmailResult unmarshall(StaxUnmarshallerContext context) throws Exception { SendEmailResult sendEmailResult = new SendEmailResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return sendEmailResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("MessageId", targetDepth)) { sendEmailResult.setMessageId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return sendEmailResult; } } } }
/** * <p> * The unique message identifier returned from the <code>SendEmail</code> action. * </p> * * @param messageId * The unique message identifier returned from the <code>SendEmail</code> action. * @return Returns a reference to this object so that method calls can be chained together. */ public SendEmailResult withMessageId(String messageId) { setMessageId(messageId); return this; }
public SendEmailResult unmarshall(StaxUnmarshallerContext context) throws Exception { SendEmailResult sendEmailResult = new SendEmailResult(); 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("MessageId", targetDepth)) { sendEmailResult.setMessageId(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return sendEmailResult; }
public SendEmailResult unmarshall(StaxUnmarshallerContext context) throws Exception { SendEmailResult sendEmailResult = new SendEmailResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return sendEmailResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("MessageId", targetDepth)) { sendEmailResult.setMessageId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return sendEmailResult; } } } }