AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
38 AWS_MTURK_API NotificationSpecification() = default;
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 template<typename DestinationT = Aws::String>
55 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
56 template<typename DestinationT = Aws::String>
57 NotificationSpecification& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
59
61
65 inline NotificationTransport GetTransport() const { return m_transport; }
66 inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
67 inline void SetTransport(NotificationTransport value) { m_transportHasBeenSet = true; m_transport = value; }
70
72
75 inline const Aws::String& GetVersion() const { return m_version; }
76 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
77 template<typename VersionT = Aws::String>
78 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
79 template<typename VersionT = Aws::String>
80 NotificationSpecification& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
82
84
91 inline const Aws::Vector<EventType>& GetEventTypes() const { return m_eventTypes; }
92 inline bool EventTypesHasBeenSet() const { return m_eventTypesHasBeenSet; }
93 template<typename EventTypesT = Aws::Vector<EventType>>
94 void SetEventTypes(EventTypesT&& value) { m_eventTypesHasBeenSet = true; m_eventTypes = std::forward<EventTypesT>(value); }
95 template<typename EventTypesT = Aws::Vector<EventType>>
96 NotificationSpecification& WithEventTypes(EventTypesT&& value) { SetEventTypes(std::forward<EventTypesT>(value)); return *this;}
97 inline NotificationSpecification& AddEventTypes(EventType value) { m_eventTypesHasBeenSet = true; m_eventTypes.push_back(value); return *this; }
99 private:
100
101 Aws::String m_destination;
102 bool m_destinationHasBeenSet = false;
103
105 bool m_transportHasBeenSet = false;
106
107 Aws::String m_version;
108 bool m_versionHasBeenSet = false;
109
110 Aws::Vector<EventType> m_eventTypes;
111 bool m_eventTypesHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace MTurk
116} // 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