AWS SDK for C++  1.9.108
AWS SDK for C++
Notification.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Snowball
24 {
25 namespace Model
26 {
27 
41  {
42  public:
47 
48 
58  inline const Aws::String& GetSnsTopicARN() const{ return m_snsTopicARN; }
59 
69  inline bool SnsTopicARNHasBeenSet() const { return m_snsTopicARNHasBeenSet; }
70 
80  inline void SetSnsTopicARN(const Aws::String& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = value; }
81 
91  inline void SetSnsTopicARN(Aws::String&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = std::move(value); }
92 
102  inline void SetSnsTopicARN(const char* value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN.assign(value); }
103 
113  inline Notification& WithSnsTopicARN(const Aws::String& value) { SetSnsTopicARN(value); return *this;}
114 
124  inline Notification& WithSnsTopicARN(Aws::String&& value) { SetSnsTopicARN(std::move(value)); return *this;}
125 
135  inline Notification& WithSnsTopicARN(const char* value) { SetSnsTopicARN(value); return *this;}
136 
137 
141  inline const Aws::Vector<JobState>& GetJobStatesToNotify() const{ return m_jobStatesToNotify; }
142 
146  inline bool JobStatesToNotifyHasBeenSet() const { return m_jobStatesToNotifyHasBeenSet; }
147 
151  inline void SetJobStatesToNotify(const Aws::Vector<JobState>& value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify = value; }
152 
156  inline void SetJobStatesToNotify(Aws::Vector<JobState>&& value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify = std::move(value); }
157 
161  inline Notification& WithJobStatesToNotify(const Aws::Vector<JobState>& value) { SetJobStatesToNotify(value); return *this;}
162 
166  inline Notification& WithJobStatesToNotify(Aws::Vector<JobState>&& value) { SetJobStatesToNotify(std::move(value)); return *this;}
167 
171  inline Notification& AddJobStatesToNotify(const JobState& value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify.push_back(value); return *this; }
172 
176  inline Notification& AddJobStatesToNotify(JobState&& value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify.push_back(std::move(value)); return *this; }
177 
178 
182  inline bool GetNotifyAll() const{ return m_notifyAll; }
183 
187  inline bool NotifyAllHasBeenSet() const { return m_notifyAllHasBeenSet; }
188 
192  inline void SetNotifyAll(bool value) { m_notifyAllHasBeenSet = true; m_notifyAll = value; }
193 
197  inline Notification& WithNotifyAll(bool value) { SetNotifyAll(value); return *this;}
198 
199  private:
200 
201  Aws::String m_snsTopicARN;
202  bool m_snsTopicARNHasBeenSet;
203 
204  Aws::Vector<JobState> m_jobStatesToNotify;
205  bool m_jobStatesToNotifyHasBeenSet;
206 
207  bool m_notifyAll;
208  bool m_notifyAllHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace Snowball
213 } // namespace Aws
Aws::Snowball::Model::Notification::NotifyAllHasBeenSet
bool NotifyAllHasBeenSet() const
Definition: Notification.h:187
Aws::Snowball::Model::Notification::WithNotifyAll
Notification & WithNotifyAll(bool value)
Definition: Notification.h:197
Aws::Snowball::Model::Notification::AddJobStatesToNotify
Notification & AddJobStatesToNotify(JobState &&value)
Definition: Notification.h:176
Aws::Snowball::Model::Notification::SetSnsTopicARN
void SetSnsTopicARN(const char *value)
Definition: Notification.h:102
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Snowball::Model::Notification::WithSnsTopicARN
Notification & WithSnsTopicARN(const char *value)
Definition: Notification.h:135
Aws::Snowball::Model::Notification::Notification
Notification()
Aws::Snowball::Model::Notification::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
JobState.h
AWSVector.h
Aws::Snowball::Model::Notification::SetJobStatesToNotify
void SetJobStatesToNotify(Aws::Vector< JobState > &&value)
Definition: Notification.h:156
Aws::Snowball::Model::Notification::AddJobStatesToNotify
Notification & AddJobStatesToNotify(const JobState &value)
Definition: Notification.h:171
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::Notification::SetNotifyAll
void SetNotifyAll(bool value)
Definition: Notification.h:192
Aws::Snowball::Model::Notification::GetNotifyAll
bool GetNotifyAll() const
Definition: Notification.h:182
Aws::Snowball::Model::Notification::SetJobStatesToNotify
void SetJobStatesToNotify(const Aws::Vector< JobState > &value)
Definition: Notification.h:151
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Snowball::Model::Notification::GetSnsTopicARN
const Aws::String & GetSnsTopicARN() const
Definition: Notification.h:58
Aws::Snowball::Model::Notification::SnsTopicARNHasBeenSet
bool SnsTopicARNHasBeenSet() const
Definition: Notification.h:69
Aws::Snowball::Model::Notification::operator=
Notification & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::Notification::WithJobStatesToNotify
Notification & WithJobStatesToNotify(Aws::Vector< JobState > &&value)
Definition: Notification.h:166
Aws::Snowball::Model::Notification::Notification
Notification(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::Notification
Definition: Notification.h:41
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::Notification::SetSnsTopicARN
void SetSnsTopicARN(Aws::String &&value)
Definition: Notification.h:91
Aws::Snowball::Model::Notification::WithJobStatesToNotify
Notification & WithJobStatesToNotify(const Aws::Vector< JobState > &value)
Definition: Notification.h:161
Aws::Snowball::Model::Notification::WithSnsTopicARN
Notification & WithSnsTopicARN(Aws::String &&value)
Definition: Notification.h:124
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::Notification::WithSnsTopicARN
Notification & WithSnsTopicARN(const Aws::String &value)
Definition: Notification.h:113
Aws::Snowball::Model::Notification::SetSnsTopicARN
void SetSnsTopicARN(const Aws::String &value)
Definition: Notification.h:80
Aws::Snowball::Model::Notification::GetJobStatesToNotify
const Aws::Vector< JobState > & GetJobStatesToNotify() const
Definition: Notification.h:141
Snowball_EXPORTS.h
Aws::Snowball::Model::Notification::JobStatesToNotifyHasBeenSet
bool JobStatesToNotifyHasBeenSet() const
Definition: Notification.h:146
Aws::Snowball::Model::JobState
JobState
Definition: JobState.h:17