AWS SDK for C++  1.8.127
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
Aws::SQS::Model::ChangeMessageVisibilityRequest::QueueUrlHasBeenSet
bool QueueUrlHasBeenSet() const
Definition: ChangeMessageVisibilityRequest.h:49
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::ChangeMessageVisibilityRequest::GetReceiptHandle
const Aws::String & GetReceiptHandle() const
Definition: ChangeMessageVisibilityRequest.h:93
Aws::SQS::Model::ChangeMessageVisibilityRequest::WithQueueUrl
ChangeMessageVisibilityRequest & WithQueueUrl(Aws::String &&value)
Definition: ChangeMessageVisibilityRequest.h:79
Aws::SQS::Model::ChangeMessageVisibilityRequest::GetVisibilityTimeout
int GetVisibilityTimeout() const
Definition: ChangeMessageVisibilityRequest.h:149
Aws::SQS::Model::ChangeMessageVisibilityRequest::SetReceiptHandle
void SetReceiptHandle(const char *value)
Definition: ChangeMessageVisibilityRequest.h:121
Aws::SQS::Model::ChangeMessageVisibilityRequest::ChangeMessageVisibilityRequest
ChangeMessageVisibilityRequest()
Aws::SQS::Model::ChangeMessageVisibilityRequest::VisibilityTimeoutHasBeenSet
bool VisibilityTimeoutHasBeenSet() const
Definition: ChangeMessageVisibilityRequest.h:155
Aws::SQS::Model::ChangeMessageVisibilityRequest::SetQueueUrl
void SetQueueUrl(const char *value)
Definition: ChangeMessageVisibilityRequest.h:67
Aws::SQS::Model::ChangeMessageVisibilityRequest::SetVisibilityTimeout
void SetVisibilityTimeout(int value)
Definition: ChangeMessageVisibilityRequest.h:161
Aws::SQS::Model::ChangeMessageVisibilityRequest::ReceiptHandleHasBeenSet
bool ReceiptHandleHasBeenSet() const
Definition: ChangeMessageVisibilityRequest.h:100
Aws::SQS::Model::ChangeMessageVisibilityRequest::WithReceiptHandle
ChangeMessageVisibilityRequest & WithReceiptHandle(const char *value)
Definition: ChangeMessageVisibilityRequest.h:142
Aws::SQS::Model::ChangeMessageVisibilityRequest::WithQueueUrl
ChangeMessageVisibilityRequest & WithQueueUrl(const Aws::String &value)
Definition: ChangeMessageVisibilityRequest.h:73
Aws::SQS::Model::ChangeMessageVisibilityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ChangeMessageVisibilityRequest.h:30
Aws::SQS::Model::ChangeMessageVisibilityRequest::WithReceiptHandle
ChangeMessageVisibilityRequest & WithReceiptHandle(const Aws::String &value)
Definition: ChangeMessageVisibilityRequest.h:128
Aws::SQS::Model::ChangeMessageVisibilityRequest::SetQueueUrl
void SetQueueUrl(Aws::String &&value)
Definition: ChangeMessageVisibilityRequest.h:61
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::ChangeMessageVisibilityRequest::SetReceiptHandle
void SetReceiptHandle(Aws::String &&value)
Definition: ChangeMessageVisibilityRequest.h:114
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
SQS_EXPORTS.h
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws::SQS::Model::ChangeMessageVisibilityRequest::WithQueueUrl
ChangeMessageVisibilityRequest & WithQueueUrl(const char *value)
Definition: ChangeMessageVisibilityRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::ChangeMessageVisibilityRequest::WithReceiptHandle
ChangeMessageVisibilityRequest & WithReceiptHandle(Aws::String &&value)
Definition: ChangeMessageVisibilityRequest.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::ChangeMessageVisibilityRequest::SetReceiptHandle
void SetReceiptHandle(const Aws::String &value)
Definition: ChangeMessageVisibilityRequest.h:107
Aws::SQS::Model::ChangeMessageVisibilityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::ChangeMessageVisibilityRequest::WithVisibilityTimeout
ChangeMessageVisibilityRequest & WithVisibilityTimeout(int value)
Definition: ChangeMessageVisibilityRequest.h:167
Aws::SQS::Model::ChangeMessageVisibilityRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
SQSRequest.h
Aws::SQS::Model::ChangeMessageVisibilityRequest::GetQueueUrl
const Aws::String & GetQueueUrl() const
Definition: ChangeMessageVisibilityRequest.h:43
Aws::SQS::Model::ChangeMessageVisibilityRequest::SetQueueUrl
void SetQueueUrl(const Aws::String &value)
Definition: ChangeMessageVisibilityRequest.h:55
Aws::SQS::Model::ChangeMessageVisibilityRequest
Definition: ChangeMessageVisibilityRequest.h:22