AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SetQueueAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sqs/SQSRequest.h>
10#include <aws/sqs/SQS_EXPORTS.h>
11#include <aws/sqs/model/QueueAttributeName.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SQS {
17namespace Model {
18
25 public:
26 AWS_SQS_API SetQueueAttributesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SetQueueAttributes"; }
33
34 AWS_SQS_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetQueueUrl() const { return m_queueUrl; }
44 inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
45 template <typename QueueUrlT = Aws::String>
46 void SetQueueUrl(QueueUrlT&& value) {
47 m_queueUrlHasBeenSet = true;
48 m_queueUrl = std::forward<QueueUrlT>(value);
49 }
50 template <typename QueueUrlT = Aws::String>
52 SetQueueUrl(std::forward<QueueUrlT>(value));
53 return *this;
54 }
56
58
196 inline const Aws::Map<QueueAttributeName, Aws::String>& GetAttributes() const { return m_attributes; }
197 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
198 template <typename AttributesT = Aws::Map<QueueAttributeName, Aws::String>>
199 void SetAttributes(AttributesT&& value) {
200 m_attributesHasBeenSet = true;
201 m_attributes = std::forward<AttributesT>(value);
202 }
203 template <typename AttributesT = Aws::Map<QueueAttributeName, Aws::String>>
205 SetAttributes(std::forward<AttributesT>(value));
206 return *this;
207 }
209 m_attributesHasBeenSet = true;
210 m_attributes.emplace(key, value);
211 return *this;
212 }
214 private:
215 Aws::String m_queueUrl;
216
218 bool m_queueUrlHasBeenSet = false;
219 bool m_attributesHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace SQS
224} // namespace Aws
const Aws::Map< QueueAttributeName, Aws::String > & GetAttributes() const
SetQueueAttributesRequest & AddAttributes(QueueAttributeName key, Aws::String value)
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SQS_API SetQueueAttributesRequest()=default
SetQueueAttributesRequest & WithQueueUrl(QueueUrlT &&value)
AWS_SQS_API Aws::String SerializePayload() const override
SetQueueAttributesRequest & WithAttributes(AttributesT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String