AWS SDK for C++  1.8.71
AWS SDK for C++
ChangeMessageVisibilityRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
8 #include <aws/sqs/SQSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SQS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ChangeMessageVisibility"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
44 
49  inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
50 
55  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
56 
61  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
62 
67  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
68 
73  inline ChangeMessageVisibilityRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
74 
79  inline ChangeMessageVisibilityRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
80 
85  inline ChangeMessageVisibilityRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
86 
87 
93  inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
94 
100  inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; }
101 
107  inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
108 
114  inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = std::move(value); }
115 
121  inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
122 
128  inline ChangeMessageVisibilityRequest& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;}
129 
135  inline ChangeMessageVisibilityRequest& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(std::move(value)); return *this;}
136 
142  inline ChangeMessageVisibilityRequest& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
143 
144 
149  inline int GetVisibilityTimeout() const{ return m_visibilityTimeout; }
150 
155  inline bool VisibilityTimeoutHasBeenSet() const { return m_visibilityTimeoutHasBeenSet; }
156 
161  inline void SetVisibilityTimeout(int value) { m_visibilityTimeoutHasBeenSet = true; m_visibilityTimeout = value; }
162 
167  inline ChangeMessageVisibilityRequest& WithVisibilityTimeout(int value) { SetVisibilityTimeout(value); return *this;}
168 
169  private:
170 
171  Aws::String m_queueUrl;
172  bool m_queueUrlHasBeenSet;
173 
174  Aws::String m_receiptHandle;
175  bool m_receiptHandleHasBeenSet;
176 
177  int m_visibilityTimeout;
178  bool m_visibilityTimeoutHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace SQS
183 } // namespace Aws
ChangeMessageVisibilityRequest & WithReceiptHandle(Aws::String &&value)
ChangeMessageVisibilityRequest & WithQueueUrl(const Aws::String &value)
ChangeMessageVisibilityRequest & WithReceiptHandle(const char *value)
ChangeMessageVisibilityRequest & WithQueueUrl(const char *value)
virtual const char * GetServiceRequestName() const override
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:28
ChangeMessageVisibilityRequest & WithVisibilityTimeout(int value)