AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChangeMessageVisibilityRequest.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/sqs/SQSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SQS
15{
16namespace 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_SQS_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
43 inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
44 inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
45 inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
46 inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
47 inline ChangeMessageVisibilityRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
48 inline ChangeMessageVisibilityRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
49 inline ChangeMessageVisibilityRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
51
53
58 inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
59 inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; }
60 inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
61 inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = std::move(value); }
62 inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
64 inline ChangeMessageVisibilityRequest& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(std::move(value)); return *this;}
65 inline ChangeMessageVisibilityRequest& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
67
69
73 inline int GetVisibilityTimeout() const{ return m_visibilityTimeout; }
74 inline bool VisibilityTimeoutHasBeenSet() const { return m_visibilityTimeoutHasBeenSet; }
75 inline void SetVisibilityTimeout(int value) { m_visibilityTimeoutHasBeenSet = true; m_visibilityTimeout = value; }
78 private:
79
80 Aws::String m_queueUrl;
81 bool m_queueUrlHasBeenSet = false;
82
83 Aws::String m_receiptHandle;
84 bool m_receiptHandleHasBeenSet = false;
85
86 int m_visibilityTimeout;
87 bool m_visibilityTimeoutHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SQS
92} // namespace Aws
ChangeMessageVisibilityRequest & WithReceiptHandle(const Aws::String &value)
AWS_SQS_API Aws::String SerializePayload() const override
ChangeMessageVisibilityRequest & WithVisibilityTimeout(int value)
ChangeMessageVisibilityRequest & WithQueueUrl(const char *value)
ChangeMessageVisibilityRequest & WithQueueUrl(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ChangeMessageVisibilityRequest & WithReceiptHandle(Aws::String &&value)
ChangeMessageVisibilityRequest & WithQueueUrl(const Aws::String &value)
ChangeMessageVisibilityRequest & WithReceiptHandle(const char *value)
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String