/** * <p> * An identifier for this particular receipt handle. This is used to communicate the result. * </p> * <note> * <p> * The <code>Id</code>s of a batch request need to be unique within a request * </p> * </note> * * @param id * An identifier for this particular receipt handle. This is used to communicate the result.</p> <note> * <p> * The <code>Id</code>s of a batch request need to be unique within a request * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteMessageBatchRequestEntry withId(String id) { setId(id); return this; }
/** * Constructs a new DeleteMessageBatchRequestEntry object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param id * An identifier for this particular receipt handle. This is used to communicate the result.</p> <note> * <p> * The <code>Id</code>s of a batch request need to be unique within a request * </p> * @param receiptHandle * A receipt handle. */ public DeleteMessageBatchRequestEntry(String id, String receiptHandle) { setId(id); setReceiptHandle(receiptHandle); }
entry.setReceiptHandle(receiptHandle); String entryId = flowFile.getAttribute(CoreAttributes.UUID.key()); entry.setId(entryId); entries.add(entry);
public DeleteMessageBatchRequestEntry unmarshall(StaxUnmarshallerContext context) throws Exception { DeleteMessageBatchRequestEntry deleteMessageBatchRequestEntry = new DeleteMessageBatchRequestEntry(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return deleteMessageBatchRequestEntry; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Id", targetDepth)) { deleteMessageBatchRequestEntry.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ReceiptHandle", targetDepth)) { deleteMessageBatchRequestEntry.setReceiptHandle(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return deleteMessageBatchRequestEntry; } } } }
for (final Message message : messages) { final DeleteMessageBatchRequestEntry entry = new DeleteMessageBatchRequestEntry(); entry.setId(message.getMessageId()); entry.setReceiptHandle(message.getReceiptHandle()); deleteRequestEntries.add(entry);
/** * Constructs a new DeleteMessageBatchRequestEntry object. Callers should * use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param id <p> * An identifier for this particular receipt handle. This is used * to communicate the result. Note that the <code>Id</code>s of a * batch request need to be unique within the request. * </p> * @param receiptHandle <p> * A receipt handle. * </p> */ public DeleteMessageBatchRequestEntry(String id, String receiptHandle) { setId(id); setReceiptHandle(receiptHandle); }
/** * <p> * An identifier for this particular receipt handle. This is used to communicate the result. * </p> * <note> * <p> * The <code>Id</code>s of a batch request need to be unique within a request * </p> * </note> * * @param id * An identifier for this particular receipt handle. This is used to communicate the result.</p> <note> * <p> * The <code>Id</code>s of a batch request need to be unique within a request * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteMessageBatchRequestEntry withId(String id) { setId(id); return this; }
public DeleteMessageBatchRequestEntry unmarshall(StaxUnmarshallerContext context) throws Exception { DeleteMessageBatchRequestEntry deleteMessageBatchRequestEntry = new DeleteMessageBatchRequestEntry(); 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("Id", targetDepth)) { deleteMessageBatchRequestEntry.setId(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } if (context.testExpression("ReceiptHandle", targetDepth)) { deleteMessageBatchRequestEntry.setReceiptHandle(StringStaxUnmarshaller .getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return deleteMessageBatchRequestEntry; }
/** * Constructs a new DeleteMessageBatchRequestEntry object. Callers should * use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param id <p> * An identifier for this particular receipt handle. This is used * to communicate the result. Note that the <code>Id</code>s of a * batch request need to be unique within the request. * </p> * @param receiptHandle <p> * A receipt handle. * </p> */ public DeleteMessageBatchRequestEntry(String id, String receiptHandle) { setId(id); setReceiptHandle(receiptHandle); }
/** * Constructs a new DeleteMessageBatchRequestEntry object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param id * An identifier for this particular receipt handle. This is used to communicate the result.</p> <note> * <p> * The <code>Id</code>s of a batch request need to be unique within a request * </p> * @param receiptHandle * A receipt handle. */ public DeleteMessageBatchRequestEntry(String id, String receiptHandle) { setId(id); setReceiptHandle(receiptHandle); }
entry.setReceiptHandle(receiptHandle); String entryId = flowFile.getAttribute(CoreAttributes.UUID.key()); entry.setId(entryId); entries.add(entry);
for (final Message message : messages) { final DeleteMessageBatchRequestEntry entry = new DeleteMessageBatchRequestEntry(); entry.setId(message.getMessageId()); entry.setReceiptHandle(message.getReceiptHandle()); deleteRequestEntries.add(entry);
public DeleteMessageBatchRequestEntry unmarshall(StaxUnmarshallerContext context) throws Exception { DeleteMessageBatchRequestEntry deleteMessageBatchRequestEntry = new DeleteMessageBatchRequestEntry(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return deleteMessageBatchRequestEntry; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Id", targetDepth)) { deleteMessageBatchRequestEntry.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ReceiptHandle", targetDepth)) { deleteMessageBatchRequestEntry.setReceiptHandle(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return deleteMessageBatchRequestEntry; } } } }
public DeleteMessageBatchRequestEntry unmarshall(StaxUnmarshallerContext context) throws Exception { DeleteMessageBatchRequestEntry deleteMessageBatchRequestEntry = new DeleteMessageBatchRequestEntry(); 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("Id", targetDepth)) { deleteMessageBatchRequestEntry.setId(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } if (context.testExpression("ReceiptHandle", targetDepth)) { deleteMessageBatchRequestEntry.setReceiptHandle(StringStaxUnmarshaller .getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return deleteMessageBatchRequestEntry; }