AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
SnsParameters.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/SnsMessageAttributeValue.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 SnsParameters() = default;
34 AWS_EVENTBRIDGEV2_API SnsParameters(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API SnsParameters& 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 SnsParameters& 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 SnsParameters& WithMessageDeduplicationId(MessageDeduplicationIdT&& value) {
69 SetMessageDeduplicationId(std::forward<MessageDeduplicationIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetSubject() const { return m_subject; }
80 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
81 template <typename SubjectT = Aws::String>
82 void SetSubject(SubjectT&& value) {
83 m_subjectHasBeenSet = true;
84 m_subject = std::forward<SubjectT>(value);
85 }
86 template <typename SubjectT = Aws::String>
87 SnsParameters& WithSubject(SubjectT&& value) {
88 SetSubject(std::forward<SubjectT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetMessageStructure() const { return m_messageStructure; }
99 inline bool MessageStructureHasBeenSet() const { return m_messageStructureHasBeenSet; }
100 template <typename MessageStructureT = Aws::String>
101 void SetMessageStructure(MessageStructureT&& value) {
102 m_messageStructureHasBeenSet = true;
103 m_messageStructure = std::forward<MessageStructureT>(value);
104 }
105 template <typename MessageStructureT = Aws::String>
106 SnsParameters& WithMessageStructure(MessageStructureT&& value) {
107 SetMessageStructure(std::forward<MessageStructureT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Map<Aws::String, SnsMessageAttributeValue>& GetMessageAttributes() const { return m_messageAttributes; }
117 inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; }
118 template <typename MessageAttributesT = Aws::Map<Aws::String, SnsMessageAttributeValue>>
119 void SetMessageAttributes(MessageAttributesT&& value) {
120 m_messageAttributesHasBeenSet = true;
121 m_messageAttributes = std::forward<MessageAttributesT>(value);
122 }
123 template <typename MessageAttributesT = Aws::Map<Aws::String, SnsMessageAttributeValue>>
124 SnsParameters& WithMessageAttributes(MessageAttributesT&& value) {
125 SetMessageAttributes(std::forward<MessageAttributesT>(value));
126 return *this;
127 }
128 template <typename MessageAttributesKeyT = Aws::String, typename MessageAttributesValueT = SnsMessageAttributeValue>
129 SnsParameters& AddMessageAttributes(MessageAttributesKeyT&& key, MessageAttributesValueT&& value) {
130 m_messageAttributesHasBeenSet = true;
131 m_messageAttributes.emplace(std::forward<MessageAttributesKeyT>(key), std::forward<MessageAttributesValueT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_messageGroupId;
137
138 Aws::String m_messageDeduplicationId;
139
140 Aws::String m_subject;
141
142 Aws::String m_messageStructure;
143
145 bool m_messageGroupIdHasBeenSet = false;
146 bool m_messageDeduplicationIdHasBeenSet = false;
147 bool m_subjectHasBeenSet = false;
148 bool m_messageStructureHasBeenSet = false;
149 bool m_messageAttributesHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace EventBridgeV2
154} // namespace Aws
AWS_EVENTBRIDGEV2_API SnsParameters(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetMessageDeduplicationId() const
const Aws::String & GetMessageStructure() const
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetMessageAttributes(MessageAttributesT &&value)
const Aws::String & GetMessageGroupId() const
SnsParameters & AddMessageAttributes(MessageAttributesKeyT &&key, MessageAttributesValueT &&value)
const Aws::Map< Aws::String, SnsMessageAttributeValue > & GetMessageAttributes() const
const Aws::String & GetSubject() const
SnsParameters & WithMessageGroupId(MessageGroupIdT &&value)
void SetMessageDeduplicationId(MessageDeduplicationIdT &&value)
AWS_EVENTBRIDGEV2_API SnsParameters()=default
AWS_EVENTBRIDGEV2_API SnsParameters & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SnsParameters & WithMessageAttributes(MessageAttributesT &&value)
SnsParameters & WithSubject(SubjectT &&value)
void SetMessageGroupId(MessageGroupIdT &&value)
SnsParameters & WithMessageDeduplicationId(MessageDeduplicationIdT &&value)
void SetMessageStructure(MessageStructureT &&value)
SnsParameters & WithMessageStructure(MessageStructureT &&value)
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