AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
24 AWS_SQS_API ChangeMessageVisibilityRequest() = default;
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 template<typename QueueUrlT = Aws::String>
45 void SetQueueUrl(QueueUrlT&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::forward<QueueUrlT>(value); }
46 template<typename QueueUrlT = Aws::String>
47 ChangeMessageVisibilityRequest& WithQueueUrl(QueueUrlT&& value) { SetQueueUrl(std::forward<QueueUrlT>(value)); return *this;}
49
51
56 inline const Aws::String& GetReceiptHandle() const { return m_receiptHandle; }
57 inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; }
58 template<typename ReceiptHandleT = Aws::String>
59 void SetReceiptHandle(ReceiptHandleT&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = std::forward<ReceiptHandleT>(value); }
60 template<typename ReceiptHandleT = Aws::String>
61 ChangeMessageVisibilityRequest& WithReceiptHandle(ReceiptHandleT&& value) { SetReceiptHandle(std::forward<ReceiptHandleT>(value)); return *this;}
63
65
69 inline int GetVisibilityTimeout() const { return m_visibilityTimeout; }
70 inline bool VisibilityTimeoutHasBeenSet() const { return m_visibilityTimeoutHasBeenSet; }
71 inline void SetVisibilityTimeout(int value) { m_visibilityTimeoutHasBeenSet = true; m_visibilityTimeout = value; }
74 private:
75
76 Aws::String m_queueUrl;
77 bool m_queueUrlHasBeenSet = false;
78
79 Aws::String m_receiptHandle;
80 bool m_receiptHandleHasBeenSet = false;
81
82 int m_visibilityTimeout{0};
83 bool m_visibilityTimeoutHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace SQS
88} // namespace Aws
AWS_SQS_API Aws::String SerializePayload() const override
ChangeMessageVisibilityRequest & WithVisibilityTimeout(int value)
virtual const char * GetServiceRequestName() const override
ChangeMessageVisibilityRequest & WithQueueUrl(QueueUrlT &&value)
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ChangeMessageVisibilityRequest & WithReceiptHandle(ReceiptHandleT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String