static SendMessageResult convert(SendMessageBatchResultEntry br) { SendMessageResult toReturn = new SendMessageResult(); toReturn.setMD5OfMessageBody(br.getMD5OfMessageBody()); toReturn.setMessageId(br.getMessageId()); toReturn.setMD5OfMessageAttributes(br.getMD5OfMessageAttributes()); return toReturn; }
/** * Constructs a new DeleteQueueRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueUrl * The URL of the Amazon SQS queue to delete.</p> * <p> * Queue URLs and names are case-sensitive. */ public DeleteQueueRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * Constructs a new DeleteMessageBatchRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param queueUrl * The URL of the Amazon SQS queue from which messages are deleted.</p> * <p> * Queue URLs and names are case-sensitive. */ public DeleteMessageBatchRequest(String queueUrl) { setQueueUrl(queueUrl); }
private void deleteMessage(Message message) { try { sqs.deleteMessage(new DeleteMessageRequest(queueUrl, message.getReceiptHandle())); } catch (Exception e) {} }
/** * Constructs a new ReceiveMessageRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param queueUrl * The URL of the Amazon SQS queue from which messages are received.</p> * <p> * Queue URLs and names are case-sensitive. */ public ReceiveMessageRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * Constructs a new GetQueueAttributesRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param queueUrl * The URL of the Amazon SQS queue whose attribute information is retrieved.</p> * <p> * Queue URLs and names are case-sensitive. */ public GetQueueAttributesRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * Constructs a new SendMessageBatchRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param queueUrl * The URL of the Amazon SQS queue to which batched messages are sent.</p> * <p> * Queue URLs and names are case-sensitive. */ public SendMessageBatchRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * <p> * The message's contents (not URL-encoded). * </p> * * @param body * The message's contents (not URL-encoded). * @return Returns a reference to this object so that method calls can be chained together. */ public Message withBody(String body) { setBody(body); return this; }
/** * Constructs a new GetQueueUrlRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueName * The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric * characters, hyphens (<code>-</code>), and underscores (<code>_</code>).</p> * <p> * Queue URLs and names are case-sensitive. */ public GetQueueUrlRequest(String queueName) { setQueueName(queueName); }
/** * Constructs a new ListDeadLetterSourceQueuesRequest object. Callers should use the setter or fluent setter * (with...) methods to initialize any additional object members. * * @param queueUrl * The URL of a dead-letter queue.</p> * <p> * Queue URLs and names are case-sensitive. */ public ListDeadLetterSourceQueuesRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * Constructs a new PurgeQueueRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueUrl * The URL of the queue from which the <code>PurgeQueue</code> action deletes messages.</p> * <p> * Queue URLs and names are case-sensitive. */ public PurgeQueueRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * <p> * A list of <code> <a>BatchResultErrorEntry</a> </code> items. * </p> * * @param failed * A list of <code> <a>BatchResultErrorEntry</a> </code> items. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteMessageBatchResult withFailed(java.util.Collection<BatchResultErrorEntry> failed) { setFailed(failed); return this; }
/** * <p> * The <code>Id</code> of an entry in a batch request. * </p> * * @param id * The <code>Id</code> of an entry in a batch request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchResultErrorEntry withId(String id) { setId(id); return this; }
/** * <p> * Represents a message whose visibility timeout has been changed successfully. * </p> * * @param id * Represents a message whose visibility timeout has been changed successfully. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeMessageVisibilityBatchResultEntry withId(String id) { setId(id); return this; }
/** * <p> * An MD5 digest of the non-URL-encoded message body string. * </p> * * @param mD5OfBody * An MD5 digest of the non-URL-encoded message body string. * @return Returns a reference to this object so that method calls can be chained together. */ public Message withMD5OfBody(String mD5OfBody) { setMD5OfBody(mD5OfBody); return this; }
/** * Constructs a new ListQueuesRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueNamePrefix * A string to use for filtering the list results. Only those queues whose name begins with the specified * string are returned.</p> * <p> * Queue URLs and names are case-sensitive. */ public ListQueuesRequest(String queueNamePrefix) { setQueueNamePrefix(queueNamePrefix); }
/** * Constructs a new UntagQueueRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueUrl * The URL of the queue. * @param tagKeys * The list of tags to be removed from the specified queue. */ public UntagQueueRequest(String queueUrl, java.util.List<String> tagKeys) { setQueueUrl(queueUrl); setTagKeys(tagKeys); }
/** * Constructs a new ListQueueTagsRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueUrl * The URL of the queue. */ public ListQueueTagsRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * <p> * The list of tags to be removed from the specified queue. * </p> * * @param tagKeys * The list of tags to be removed from the specified queue. * @return Returns a reference to this object so that method calls can be chained together. */ public UntagQueueRequest withTagKeys(java.util.Collection<String> tagKeys) { setTagKeys(tagKeys); return this; }
/** * <p> * A map of attributes to their respective values. * </p> * * @param attributes * A map of attributes to their respective values. * @return Returns a reference to this object so that method calls can be chained together. */ public GetQueueAttributesResult withAttributes(java.util.Map<String, String> attributes) { setAttributes(attributes); return this; }