AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NotificationSpecification.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mturk-requester/model/NotificationTransport.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mturk-requester/model/EventType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MTurk
25{
26namespace Model
27{
28
36 {
37 public:
41 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::String& GetDestination() const{ return m_destination; }
53 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
54 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
55 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
56 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
57 inline NotificationSpecification& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
58 inline NotificationSpecification& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
59 inline NotificationSpecification& WithDestination(const char* value) { SetDestination(value); return *this;}
61
63
67 inline const NotificationTransport& GetTransport() const{ return m_transport; }
68 inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
69 inline void SetTransport(const NotificationTransport& value) { m_transportHasBeenSet = true; m_transport = value; }
70 inline void SetTransport(NotificationTransport&& value) { m_transportHasBeenSet = true; m_transport = std::move(value); }
71 inline NotificationSpecification& WithTransport(const NotificationTransport& value) { SetTransport(value); return *this;}
72 inline NotificationSpecification& WithTransport(NotificationTransport&& value) { SetTransport(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetVersion() const{ return m_version; }
80 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
81 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
82 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
83 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
84 inline NotificationSpecification& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
85 inline NotificationSpecification& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
86 inline NotificationSpecification& WithVersion(const char* value) { SetVersion(value); return *this;}
88
90
97 inline const Aws::Vector<EventType>& GetEventTypes() const{ return m_eventTypes; }
98 inline bool EventTypesHasBeenSet() const { return m_eventTypesHasBeenSet; }
99 inline void SetEventTypes(const Aws::Vector<EventType>& value) { m_eventTypesHasBeenSet = true; m_eventTypes = value; }
100 inline void SetEventTypes(Aws::Vector<EventType>&& value) { m_eventTypesHasBeenSet = true; m_eventTypes = std::move(value); }
102 inline NotificationSpecification& WithEventTypes(Aws::Vector<EventType>&& value) { SetEventTypes(std::move(value)); return *this;}
103 inline NotificationSpecification& AddEventTypes(const EventType& value) { m_eventTypesHasBeenSet = true; m_eventTypes.push_back(value); return *this; }
104 inline NotificationSpecification& AddEventTypes(EventType&& value) { m_eventTypesHasBeenSet = true; m_eventTypes.push_back(std::move(value)); return *this; }
106 private:
107
108 Aws::String m_destination;
109 bool m_destinationHasBeenSet = false;
110
111 NotificationTransport m_transport;
112 bool m_transportHasBeenSet = false;
113
114 Aws::String m_version;
115 bool m_versionHasBeenSet = false;
116
117 Aws::Vector<EventType> m_eventTypes;
118 bool m_eventTypesHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace MTurk
123} // namespace Aws
NotificationSpecification & WithVersion(Aws::String &&value)
AWS_MTURK_API NotificationSpecification(Aws::Utils::Json::JsonView jsonValue)
const NotificationTransport & GetTransport() const
AWS_MTURK_API NotificationSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationSpecification & WithTransport(const NotificationTransport &value)
NotificationSpecification & AddEventTypes(EventType &&value)
NotificationSpecification & WithDestination(Aws::String &&value)
NotificationSpecification & WithVersion(const char *value)
void SetTransport(NotificationTransport &&value)
NotificationSpecification & WithEventTypes(const Aws::Vector< EventType > &value)
NotificationSpecification & WithVersion(const Aws::String &value)
NotificationSpecification & WithDestination(const Aws::String &value)
NotificationSpecification & WithEventTypes(Aws::Vector< EventType > &&value)
NotificationSpecification & AddEventTypes(const EventType &value)
const Aws::Vector< EventType > & GetEventTypes() const
void SetTransport(const NotificationTransport &value)
NotificationSpecification & WithDestination(const char *value)
void SetEventTypes(const Aws::Vector< EventType > &value)
NotificationSpecification & WithTransport(NotificationTransport &&value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventTypes(Aws::Vector< EventType > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue