AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
SqsParameters.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/crt/cbor/Cbor.h>
10#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
11#include <aws/eventbridgev2/model/SqsMessageAttributeValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace EventBridgeV2 {
22namespace Model {
23
32 public:
33 AWS_EVENTBRIDGEV2_API SqsParameters() = default;
34 AWS_EVENTBRIDGEV2_API SqsParameters(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API SqsParameters& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetMessageGroupId() const { return m_messageGroupId; }
43 inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
44 template <typename MessageGroupIdT = Aws::String>
45 void SetMessageGroupId(MessageGroupIdT&& value) {
46 m_messageGroupIdHasBeenSet = true;
47 m_messageGroupId = std::forward<MessageGroupIdT>(value);
48 }
49 template <typename MessageGroupIdT = Aws::String>
50 SqsParameters& WithMessageGroupId(MessageGroupIdT&& value) {
51 SetMessageGroupId(std::forward<MessageGroupIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetMessageDeduplicationId() const { return m_messageDeduplicationId; }
61 inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; }
62 template <typename MessageDeduplicationIdT = Aws::String>
63 void SetMessageDeduplicationId(MessageDeduplicationIdT&& value) {
64 m_messageDeduplicationIdHasBeenSet = true;
65 m_messageDeduplicationId = std::forward<MessageDeduplicationIdT>(value);
66 }
67 template <typename MessageDeduplicationIdT = Aws::String>
68 SqsParameters& WithMessageDeduplicationId(MessageDeduplicationIdT&& value) {
69 SetMessageDeduplicationId(std::forward<MessageDeduplicationIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDelaySeconds() const { return m_delaySeconds; }
80 inline bool DelaySecondsHasBeenSet() const { return m_delaySecondsHasBeenSet; }
81 template <typename DelaySecondsT = Aws::String>
82 void SetDelaySeconds(DelaySecondsT&& value) {
83 m_delaySecondsHasBeenSet = true;
84 m_delaySeconds = std::forward<DelaySecondsT>(value);
85 }
86 template <typename DelaySecondsT = Aws::String>
87 SqsParameters& WithDelaySeconds(DelaySecondsT&& value) {
88 SetDelaySeconds(std::forward<DelaySecondsT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Map<Aws::String, SqsMessageAttributeValue>& GetMessageAttributes() const { return m_messageAttributes; }
98 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
99 template <typename MessageAttributesT = Aws::Map<Aws::String, SqsMessageAttributeValue>>
100 void SetMessageAttributes(MessageAttributesT&& value) {
101 m_messageAttributesHasBeenSet = true;
102 m_messageAttributes = std::forward<MessageAttributesT>(value);
103 }
104 template <typename MessageAttributesT = Aws::Map<Aws::String, SqsMessageAttributeValue>>
105 SqsParameters& WithMessageAttributes(MessageAttributesT&& value) {
106 SetMessageAttributes(std::forward<MessageAttributesT>(value));
107 return *this;
108 }
109 template <typename MessageAttributesKeyT = Aws::String, typename MessageAttributesValueT = SqsMessageAttributeValue>
110 SqsParameters& AddMessageAttributes(MessageAttributesKeyT&& key, MessageAttributesValueT&& value) {
111 m_messageAttributesHasBeenSet = true;
112 m_messageAttributes.emplace(std::forward<MessageAttributesKeyT>(key), std::forward<MessageAttributesValueT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Map<Aws::String, SqsMessageAttributeValue>& GetMessageSystemAttributes() const { return m_messageSystemAttributes; }
122 inline bool MessageSystemAttributesHasBeenSet() const { return m_messageSystemAttributesHasBeenSet; }
123 template <typename MessageSystemAttributesT = Aws::Map<Aws::String, SqsMessageAttributeValue>>
124 void SetMessageSystemAttributes(MessageSystemAttributesT&& value) {
125 m_messageSystemAttributesHasBeenSet = true;
126 m_messageSystemAttributes = std::forward<MessageSystemAttributesT>(value);
127 }
128 template <typename MessageSystemAttributesT = Aws::Map<Aws::String, SqsMessageAttributeValue>>
129 SqsParameters& WithMessageSystemAttributes(MessageSystemAttributesT&& value) {
130 SetMessageSystemAttributes(std::forward<MessageSystemAttributesT>(value));
131 return *this;
132 }
133 template <typename MessageSystemAttributesKeyT = Aws::String, typename MessageSystemAttributesValueT = SqsMessageAttributeValue>
134 SqsParameters& AddMessageSystemAttributes(MessageSystemAttributesKeyT&& key, MessageSystemAttributesValueT&& value) {
135 m_messageSystemAttributesHasBeenSet = true;
136 m_messageSystemAttributes.emplace(std::forward<MessageSystemAttributesKeyT>(key), std::forward<MessageSystemAttributesValueT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_messageGroupId;
142
143 Aws::String m_messageDeduplicationId;
144
145 Aws::String m_delaySeconds;
146
148
149 Aws::Map<Aws::String, SqsMessageAttributeValue> m_messageSystemAttributes;
150 bool m_messageGroupIdHasBeenSet = false;
151 bool m_messageDeduplicationIdHasBeenSet = false;
152 bool m_delaySecondsHasBeenSet = false;
153 bool m_messageAttributesHasBeenSet = false;
154 bool m_messageSystemAttributesHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace EventBridgeV2
159} // namespace Aws
const Aws::String & GetDelaySeconds() const
void SetMessageSystemAttributes(MessageSystemAttributesT &&value)
SqsParameters & WithMessageSystemAttributes(MessageSystemAttributesT &&value)
const Aws::Map< Aws::String, SqsMessageAttributeValue > & GetMessageAttributes() const
SqsParameters & WithMessageDeduplicationId(MessageDeduplicationIdT &&value)
const Aws::String & GetMessageGroupId() const
void SetDelaySeconds(DelaySecondsT &&value)
AWS_EVENTBRIDGEV2_API SqsParameters()=default
SqsParameters & WithMessageGroupId(MessageGroupIdT &&value)
const Aws::Map< Aws::String, SqsMessageAttributeValue > & GetMessageSystemAttributes() const
SqsParameters & AddMessageSystemAttributes(MessageSystemAttributesKeyT &&key, MessageSystemAttributesValueT &&value)
SqsParameters & WithMessageAttributes(MessageAttributesT &&value)
SqsParameters & AddMessageAttributes(MessageAttributesKeyT &&key, MessageAttributesValueT &&value)
void SetMessageGroupId(MessageGroupIdT &&value)
AWS_EVENTBRIDGEV2_API SqsParameters & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API SqsParameters(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetMessageDeduplicationId(MessageDeduplicationIdT &&value)
SqsParameters & WithDelaySeconds(DelaySecondsT &&value)
void SetMessageAttributes(MessageAttributesT &&value)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetMessageDeduplicationId() const
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