AWS SDK for C++  1.9.105
AWS SDK for C++
NotificationSpecification.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace MTurk
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
51  inline const Aws::String& GetDestination() const{ return m_destination; }
52 
60  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
61 
69  inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
70 
78  inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
79 
87  inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
88 
96  inline NotificationSpecification& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
97 
105  inline NotificationSpecification& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
106 
114  inline NotificationSpecification& WithDestination(const char* value) { SetDestination(value); return *this;}
115 
116 
121  inline const NotificationTransport& GetTransport() const{ return m_transport; }
122 
127  inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
128 
133  inline void SetTransport(const NotificationTransport& value) { m_transportHasBeenSet = true; m_transport = value; }
134 
139  inline void SetTransport(NotificationTransport&& value) { m_transportHasBeenSet = true; m_transport = std::move(value); }
140 
145  inline NotificationSpecification& WithTransport(const NotificationTransport& value) { SetTransport(value); return *this;}
146 
151  inline NotificationSpecification& WithTransport(NotificationTransport&& value) { SetTransport(std::move(value)); return *this;}
152 
153 
157  inline const Aws::String& GetVersion() const{ return m_version; }
158 
162  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
163 
167  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
168 
172  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
173 
177  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
178 
182  inline NotificationSpecification& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
183 
187  inline NotificationSpecification& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
188 
192  inline NotificationSpecification& WithVersion(const char* value) { SetVersion(value); return *this;}
193 
194 
202  inline const Aws::Vector<EventType>& GetEventTypes() const{ return m_eventTypes; }
203 
211  inline bool EventTypesHasBeenSet() const { return m_eventTypesHasBeenSet; }
212 
220  inline void SetEventTypes(const Aws::Vector<EventType>& value) { m_eventTypesHasBeenSet = true; m_eventTypes = value; }
221 
229  inline void SetEventTypes(Aws::Vector<EventType>&& value) { m_eventTypesHasBeenSet = true; m_eventTypes = std::move(value); }
230 
238  inline NotificationSpecification& WithEventTypes(const Aws::Vector<EventType>& value) { SetEventTypes(value); return *this;}
239 
247  inline NotificationSpecification& WithEventTypes(Aws::Vector<EventType>&& value) { SetEventTypes(std::move(value)); return *this;}
248 
256  inline NotificationSpecification& AddEventTypes(const EventType& value) { m_eventTypesHasBeenSet = true; m_eventTypes.push_back(value); return *this; }
257 
265  inline NotificationSpecification& AddEventTypes(EventType&& value) { m_eventTypesHasBeenSet = true; m_eventTypes.push_back(std::move(value)); return *this; }
266 
267  private:
268 
269  Aws::String m_destination;
270  bool m_destinationHasBeenSet;
271 
272  NotificationTransport m_transport;
273  bool m_transportHasBeenSet;
274 
275  Aws::String m_version;
276  bool m_versionHasBeenSet;
277 
278  Aws::Vector<EventType> m_eventTypes;
279  bool m_eventTypesHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace MTurk
284 } // namespace Aws
Aws::MTurk::Model::NotificationSpecification
Definition: NotificationSpecification.h:36
Aws::MTurk::Model::NotificationSpecification::WithDestination
NotificationSpecification & WithDestination(Aws::String &&value)
Definition: NotificationSpecification.h:105
Aws::MTurk::Model::NotificationSpecification::WithDestination
NotificationSpecification & WithDestination(const char *value)
Definition: NotificationSpecification.h:114
Aws::MTurk::Model::NotificationSpecification::DestinationHasBeenSet
bool DestinationHasBeenSet() const
Definition: NotificationSpecification.h:60
Aws::MTurk::Model::NotificationSpecification::WithVersion
NotificationSpecification & WithVersion(const Aws::String &value)
Definition: NotificationSpecification.h:182
Aws::MTurk::Model::NotificationSpecification::GetVersion
const Aws::String & GetVersion() const
Definition: NotificationSpecification.h:157
NotificationTransport.h
Aws::MTurk::Model::NotificationSpecification::EventTypesHasBeenSet
bool EventTypesHasBeenSet() const
Definition: NotificationSpecification.h:211
Aws::MTurk::Model::NotificationSpecification::SetTransport
void SetTransport(NotificationTransport &&value)
Definition: NotificationSpecification.h:139
Aws::MTurk::Model::NotificationSpecification::WithDestination
NotificationSpecification & WithDestination(const Aws::String &value)
Definition: NotificationSpecification.h:96
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::NotificationSpecification::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
EventType.h
AWSVector.h
Aws::MTurk::Model::NotificationSpecification::GetEventTypes
const Aws::Vector< EventType > & GetEventTypes() const
Definition: NotificationSpecification.h:202
Aws::MTurk::Model::NotificationSpecification::WithTransport
NotificationSpecification & WithTransport(NotificationTransport &&value)
Definition: NotificationSpecification.h:151
Aws::MTurk::Model::NotificationSpecification::SetVersion
void SetVersion(Aws::String &&value)
Definition: NotificationSpecification.h:172
Aws::MTurk::Model::NotificationSpecification::GetTransport
const NotificationTransport & GetTransport() const
Definition: NotificationSpecification.h:121
Aws::MTurk::Model::NotificationSpecification::AddEventTypes
NotificationSpecification & AddEventTypes(EventType &&value)
Definition: NotificationSpecification.h:265
Aws::MTurk::Model::NotificationSpecification::SetDestination
void SetDestination(Aws::String &&value)
Definition: NotificationSpecification.h:78
Aws::MTurk::Model::NotificationTransport
NotificationTransport
Definition: NotificationTransport.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MTurk::Model::NotificationSpecification::SetVersion
void SetVersion(const Aws::String &value)
Definition: NotificationSpecification.h:167
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::NotificationSpecification::SetDestination
void SetDestination(const Aws::String &value)
Definition: NotificationSpecification.h:69
Aws::MTurk::Model::NotificationSpecification::WithTransport
NotificationSpecification & WithTransport(const NotificationTransport &value)
Definition: NotificationSpecification.h:145
Aws::MTurk::Model::NotificationSpecification::GetDestination
const Aws::String & GetDestination() const
Definition: NotificationSpecification.h:51
Aws::MTurk::Model::NotificationSpecification::WithEventTypes
NotificationSpecification & WithEventTypes(Aws::Vector< EventType > &&value)
Definition: NotificationSpecification.h:247
Aws::MTurk::Model::NotificationSpecification::WithEventTypes
NotificationSpecification & WithEventTypes(const Aws::Vector< EventType > &value)
Definition: NotificationSpecification.h:238
Aws::MTurk::Model::NotificationSpecification::SetTransport
void SetTransport(const NotificationTransport &value)
Definition: NotificationSpecification.h:133
Aws::MTurk::Model::NotificationSpecification::WithVersion
NotificationSpecification & WithVersion(Aws::String &&value)
Definition: NotificationSpecification.h:187
Aws::MTurk::Model::NotificationSpecification::NotificationSpecification
NotificationSpecification()
Aws::MTurk::Model::NotificationSpecification::SetVersion
void SetVersion(const char *value)
Definition: NotificationSpecification.h:177
Aws::MTurk::Model::NotificationSpecification::operator=
NotificationSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::NotificationSpecification::NotificationSpecification
NotificationSpecification(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::NotificationSpecification::TransportHasBeenSet
bool TransportHasBeenSet() const
Definition: NotificationSpecification.h:127
Aws::MTurk::Model::NotificationSpecification::SetEventTypes
void SetEventTypes(Aws::Vector< EventType > &&value)
Definition: NotificationSpecification.h:229
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::NotificationSpecification::SetDestination
void SetDestination(const char *value)
Definition: NotificationSpecification.h:87
Aws::MTurk::Model::NotificationSpecification::WithVersion
NotificationSpecification & WithVersion(const char *value)
Definition: NotificationSpecification.h:192
Aws::MTurk::Model::EventType
EventType
Definition: EventType.h:17
Aws::MTurk::Model::NotificationSpecification::AddEventTypes
NotificationSpecification & AddEventTypes(const EventType &value)
Definition: NotificationSpecification.h:256
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::NotificationSpecification::SetEventTypes
void SetEventTypes(const Aws::Vector< EventType > &value)
Definition: NotificationSpecification.h:220
Aws::MTurk::Model::NotificationSpecification::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: NotificationSpecification.h:162