AWS SDK for C++  0.12.9
AWS SDK for C++
ChangeMessageVisibilityRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sqs/SQS_EXPORTS.h>
17 #include <aws/sqs/SQSRequest.h>
19 
20 namespace Aws
21 {
22 namespace SQS
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
39  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
40 
45  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
46 
51  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
52 
57  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
58 
63  inline ChangeMessageVisibilityRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
64 
69  inline ChangeMessageVisibilityRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(value); return *this;}
70 
75  inline ChangeMessageVisibilityRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
76 
82  inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
83 
89  inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
90 
96  inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
97 
103  inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
104 
110  inline ChangeMessageVisibilityRequest& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;}
111 
117  inline ChangeMessageVisibilityRequest& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(value); return *this;}
118 
124  inline ChangeMessageVisibilityRequest& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
125 
130  inline long GetVisibilityTimeout() const{ return m_visibilityTimeout; }
131 
136  inline void SetVisibilityTimeout(long value) { m_visibilityTimeoutHasBeenSet = true; m_visibilityTimeout = value; }
137 
142  inline ChangeMessageVisibilityRequest& WithVisibilityTimeout(long value) { SetVisibilityTimeout(value); return *this;}
143 
144  private:
145  Aws::String m_queueUrl;
146  bool m_queueUrlHasBeenSet;
147  Aws::String m_receiptHandle;
148  bool m_receiptHandleHasBeenSet;
149  long m_visibilityTimeout;
150  bool m_visibilityTimeoutHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace SQS
155 } // namespace Aws
ChangeMessageVisibilityRequest & WithReceiptHandle(Aws::String &&value)
ChangeMessageVisibilityRequest & WithVisibilityTimeout(long value)
ChangeMessageVisibilityRequest & WithQueueUrl(const Aws::String &value)
ChangeMessageVisibilityRequest & WithReceiptHandle(const char *value)
ChangeMessageVisibilityRequest & WithQueueUrl(const char *value)
ChangeMessageVisibilityRequest & WithReceiptHandle(const Aws::String &value)
ChangeMessageVisibilityRequest & WithQueueUrl(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:34
JSON (JavaScript Object Notation).