AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Notification.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/snowball/Snowball_EXPORTS.h>
10#include <aws/snowball/model/JobState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Snowball {
22namespace Model {
23
37 public:
38 AWS_SNOWBALL_API Notification() = default;
39 AWS_SNOWBALL_API Notification(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
53 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
54 inline bool SnsTopicARNHasBeenSet() const { return m_snsTopicARNHasBeenSet; }
55 template <typename SnsTopicARNT = Aws::String>
56 void SetSnsTopicARN(SnsTopicARNT&& value) {
57 m_snsTopicARNHasBeenSet = true;
58 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
59 }
60 template <typename SnsTopicARNT = Aws::String>
61 Notification& WithSnsTopicARN(SnsTopicARNT&& value) {
62 SetSnsTopicARN(std::forward<SnsTopicARNT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Vector<JobState>& GetJobStatesToNotify() const { return m_jobStatesToNotify; }
72 inline bool JobStatesToNotifyHasBeenSet() const { return m_jobStatesToNotifyHasBeenSet; }
73 template <typename JobStatesToNotifyT = Aws::Vector<JobState>>
74 void SetJobStatesToNotify(JobStatesToNotifyT&& value) {
75 m_jobStatesToNotifyHasBeenSet = true;
76 m_jobStatesToNotify = std::forward<JobStatesToNotifyT>(value);
77 }
78 template <typename JobStatesToNotifyT = Aws::Vector<JobState>>
79 Notification& WithJobStatesToNotify(JobStatesToNotifyT&& value) {
80 SetJobStatesToNotify(std::forward<JobStatesToNotifyT>(value));
81 return *this;
82 }
84 m_jobStatesToNotifyHasBeenSet = true;
85 m_jobStatesToNotify.push_back(value);
86 return *this;
87 }
89
91
94 inline bool GetNotifyAll() const { return m_notifyAll; }
95 inline bool NotifyAllHasBeenSet() const { return m_notifyAllHasBeenSet; }
96 inline void SetNotifyAll(bool value) {
97 m_notifyAllHasBeenSet = true;
98 m_notifyAll = value;
99 }
100 inline Notification& WithNotifyAll(bool value) {
101 SetNotifyAll(value);
102 return *this;
103 }
105
107
111 inline const Aws::String& GetDevicePickupSnsTopicARN() const { return m_devicePickupSnsTopicARN; }
112 inline bool DevicePickupSnsTopicARNHasBeenSet() const { return m_devicePickupSnsTopicARNHasBeenSet; }
113 template <typename DevicePickupSnsTopicARNT = Aws::String>
114 void SetDevicePickupSnsTopicARN(DevicePickupSnsTopicARNT&& value) {
115 m_devicePickupSnsTopicARNHasBeenSet = true;
116 m_devicePickupSnsTopicARN = std::forward<DevicePickupSnsTopicARNT>(value);
117 }
118 template <typename DevicePickupSnsTopicARNT = Aws::String>
119 Notification& WithDevicePickupSnsTopicARN(DevicePickupSnsTopicARNT&& value) {
120 SetDevicePickupSnsTopicARN(std::forward<DevicePickupSnsTopicARNT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_snsTopicARN;
126
127 Aws::Vector<JobState> m_jobStatesToNotify;
128
129 bool m_notifyAll{false};
130
131 Aws::String m_devicePickupSnsTopicARN;
132 bool m_snsTopicARNHasBeenSet = false;
133 bool m_jobStatesToNotifyHasBeenSet = false;
134 bool m_notifyAllHasBeenSet = false;
135 bool m_devicePickupSnsTopicARNHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Snowball
140} // namespace Aws
AWS_SNOWBALL_API Notification & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< JobState > & GetJobStatesToNotify() const
AWS_SNOWBALL_API Notification()=default
Notification & WithNotifyAll(bool value)
Notification & WithDevicePickupSnsTopicARN(DevicePickupSnsTopicARNT &&value)
Notification & WithJobStatesToNotify(JobStatesToNotifyT &&value)
const Aws::String & GetDevicePickupSnsTopicARN() const
Notification & WithSnsTopicARN(SnsTopicARNT &&value)
void SetSnsTopicARN(SnsTopicARNT &&value)
const Aws::String & GetSnsTopicARN() const
void SetJobStatesToNotify(JobStatesToNotifyT &&value)
void SetDevicePickupSnsTopicARN(DevicePickupSnsTopicARNT &&value)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
Notification & AddJobStatesToNotify(JobState value)
AWS_SNOWBALL_API Notification(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue