AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
NotificationSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mturk-requester/MTurk_EXPORTS.h>
10#include <aws/mturk-requester/model/EventType.h>
11#include <aws/mturk-requester/model/NotificationTransport.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MTurk {
23namespace Model {
24
32 public:
33 AWS_MTURK_API NotificationSpecification() = default;
36 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::String& GetDestination() const { return m_destination; }
47 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
48 template <typename DestinationT = Aws::String>
49 void SetDestination(DestinationT&& value) {
50 m_destinationHasBeenSet = true;
51 m_destination = std::forward<DestinationT>(value);
52 }
53 template <typename DestinationT = Aws::String>
55 SetDestination(std::forward<DestinationT>(value));
56 return *this;
57 }
59
61
65 inline NotificationTransport GetTransport() const { return m_transport; }
66 inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
68 m_transportHasBeenSet = true;
69 m_transport = value;
70 }
72 SetTransport(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetVersion() const { return m_version; }
82 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
83 template <typename VersionT = Aws::String>
84 void SetVersion(VersionT&& value) {
85 m_versionHasBeenSet = true;
86 m_version = std::forward<VersionT>(value);
87 }
88 template <typename VersionT = Aws::String>
90 SetVersion(std::forward<VersionT>(value));
91 return *this;
92 }
94
96
103 inline const Aws::Vector<EventType>& GetEventTypes() const { return m_eventTypes; }
104 inline bool EventTypesHasBeenSet() const { return m_eventTypesHasBeenSet; }
105 template <typename EventTypesT = Aws::Vector<EventType>>
106 void SetEventTypes(EventTypesT&& value) {
107 m_eventTypesHasBeenSet = true;
108 m_eventTypes = std::forward<EventTypesT>(value);
109 }
110 template <typename EventTypesT = Aws::Vector<EventType>>
112 SetEventTypes(std::forward<EventTypesT>(value));
113 return *this;
114 }
116 m_eventTypesHasBeenSet = true;
117 m_eventTypes.push_back(value);
118 return *this;
119 }
121 private:
122 Aws::String m_destination;
123
125
126 Aws::String m_version;
127
128 Aws::Vector<EventType> m_eventTypes;
129 bool m_destinationHasBeenSet = false;
130 bool m_transportHasBeenSet = false;
131 bool m_versionHasBeenSet = false;
132 bool m_eventTypesHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace MTurk
137} // namespace Aws
AWS_MTURK_API NotificationSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API NotificationSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationSpecification & AddEventTypes(EventType value)
NotificationSpecification & WithTransport(NotificationTransport value)
NotificationSpecification & WithVersion(VersionT &&value)
AWS_MTURK_API NotificationSpecification()=default
const Aws::Vector< EventType > & GetEventTypes() const
NotificationSpecification & WithDestination(DestinationT &&value)
NotificationSpecification & WithEventTypes(EventTypesT &&value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue