/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sqs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SendMessageBatchRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The URL of the Amazon SQS queue to which batched messages are sent. *
** Queue URLs and names are case-sensitive. *
*/ private String queueUrl; /** *
* A list of SendMessageBatchRequestEntry
items.
*
* Queue URLs and names are case-sensitive. */ public SendMessageBatchRequest(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.
*
* Queue URLs and names are case-sensitive.
* @param entries
* A list of
* The URL of the Amazon SQS queue to which batched messages are sent.
*
* Queue URLs and names are case-sensitive.
* SendMessageBatchRequestEntry
items.
*/
public SendMessageBatchRequest(String queueUrl, java.util.List
* Queue URLs and names are case-sensitive. */ public void setQueueUrl(String queueUrl) { this.queueUrl = queueUrl; } /** *
* The URL of the Amazon SQS queue to which batched messages are sent. *
** Queue URLs and names are case-sensitive. *
* * @return The URL of the Amazon SQS queue to which batched messages are sent. ** Queue URLs and names are case-sensitive. */ public String getQueueUrl() { return this.queueUrl; } /** *
* The URL of the Amazon SQS queue to which batched messages are sent. *
** Queue URLs and names are case-sensitive. *
* * @param queueUrl * The URL of the Amazon SQS queue to which batched messages are sent. ** Queue URLs and names are case-sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public SendMessageBatchRequest withQueueUrl(String queueUrl) { setQueueUrl(queueUrl); return this; } /** *
* A list of SendMessageBatchRequestEntry
items.
*
SendMessageBatchRequestEntry
items.
*/
public java.util.List
* A list of SendMessageBatchRequestEntry
items.
*
SendMessageBatchRequestEntry
items.
*/
public void setEntries(java.util.Collection
* A list of SendMessageBatchRequestEntry
items.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntries(java.util.Collection)} or {@link #withEntries(java.util.Collection)} if you want to override * the existing values. *
* * @param entries * A list of SendMessageBatchRequestEntry
items.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SendMessageBatchRequest withEntries(SendMessageBatchRequestEntry... entries) {
if (this.entries == null) {
setEntries(new com.amazonaws.internal.SdkInternalList
* A list of SendMessageBatchRequestEntry
items.
*
SendMessageBatchRequestEntry
items.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SendMessageBatchRequest withEntries(java.util.Collection