AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Notification.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/snowball/model/JobState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Snowball
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_SNOWBALL_API Notification();
44 AWS_SNOWBALL_API Notification(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
59 inline const Aws::String& GetSnsTopicARN() const{ return m_snsTopicARN; }
60 inline bool SnsTopicARNHasBeenSet() const { return m_snsTopicARNHasBeenSet; }
61 inline void SetSnsTopicARN(const Aws::String& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = value; }
62 inline void SetSnsTopicARN(Aws::String&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = std::move(value); }
63 inline void SetSnsTopicARN(const char* value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN.assign(value); }
64 inline Notification& WithSnsTopicARN(const Aws::String& value) { SetSnsTopicARN(value); return *this;}
65 inline Notification& WithSnsTopicARN(Aws::String&& value) { SetSnsTopicARN(std::move(value)); return *this;}
66 inline Notification& WithSnsTopicARN(const char* value) { SetSnsTopicARN(value); return *this;}
68
70
73 inline const Aws::Vector<JobState>& GetJobStatesToNotify() const{ return m_jobStatesToNotify; }
74 inline bool JobStatesToNotifyHasBeenSet() const { return m_jobStatesToNotifyHasBeenSet; }
75 inline void SetJobStatesToNotify(const Aws::Vector<JobState>& value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify = value; }
76 inline void SetJobStatesToNotify(Aws::Vector<JobState>&& value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify = std::move(value); }
78 inline Notification& WithJobStatesToNotify(Aws::Vector<JobState>&& value) { SetJobStatesToNotify(std::move(value)); return *this;}
79 inline Notification& AddJobStatesToNotify(const JobState& value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify.push_back(value); return *this; }
80 inline Notification& AddJobStatesToNotify(JobState&& value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify.push_back(std::move(value)); return *this; }
82
84
87 inline bool GetNotifyAll() const{ return m_notifyAll; }
88 inline bool NotifyAllHasBeenSet() const { return m_notifyAllHasBeenSet; }
89 inline void SetNotifyAll(bool value) { m_notifyAllHasBeenSet = true; m_notifyAll = value; }
90 inline Notification& WithNotifyAll(bool value) { SetNotifyAll(value); return *this;}
92
94
98 inline const Aws::String& GetDevicePickupSnsTopicARN() const{ return m_devicePickupSnsTopicARN; }
99 inline bool DevicePickupSnsTopicARNHasBeenSet() const { return m_devicePickupSnsTopicARNHasBeenSet; }
100 inline void SetDevicePickupSnsTopicARN(const Aws::String& value) { m_devicePickupSnsTopicARNHasBeenSet = true; m_devicePickupSnsTopicARN = value; }
101 inline void SetDevicePickupSnsTopicARN(Aws::String&& value) { m_devicePickupSnsTopicARNHasBeenSet = true; m_devicePickupSnsTopicARN = std::move(value); }
102 inline void SetDevicePickupSnsTopicARN(const char* value) { m_devicePickupSnsTopicARNHasBeenSet = true; m_devicePickupSnsTopicARN.assign(value); }
104 inline Notification& WithDevicePickupSnsTopicARN(Aws::String&& value) { SetDevicePickupSnsTopicARN(std::move(value)); return *this;}
105 inline Notification& WithDevicePickupSnsTopicARN(const char* value) { SetDevicePickupSnsTopicARN(value); return *this;}
107 private:
108
109 Aws::String m_snsTopicARN;
110 bool m_snsTopicARNHasBeenSet = false;
111
112 Aws::Vector<JobState> m_jobStatesToNotify;
113 bool m_jobStatesToNotifyHasBeenSet = false;
114
115 bool m_notifyAll;
116 bool m_notifyAllHasBeenSet = false;
117
118 Aws::String m_devicePickupSnsTopicARN;
119 bool m_devicePickupSnsTopicARNHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Snowball
124} // namespace Aws
void SetJobStatesToNotify(const Aws::Vector< JobState > &value)
AWS_SNOWBALL_API Notification & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< JobState > & GetJobStatesToNotify() const
void SetSnsTopicARN(const Aws::String &value)
Notification & WithDevicePickupSnsTopicARN(const Aws::String &value)
Notification & WithSnsTopicARN(const char *value)
Notification & WithDevicePickupSnsTopicARN(Aws::String &&value)
void SetSnsTopicARN(const char *value)
Notification & WithNotifyAll(bool value)
void SetSnsTopicARN(Aws::String &&value)
void SetJobStatesToNotify(Aws::Vector< JobState > &&value)
const Aws::String & GetDevicePickupSnsTopicARN() const
Notification & AddJobStatesToNotify(JobState &&value)
const Aws::String & GetSnsTopicARN() const
Notification & WithDevicePickupSnsTopicARN(const char *value)
void SetDevicePickupSnsTopicARN(const char *value)
Notification & WithSnsTopicARN(Aws::String &&value)
void SetDevicePickupSnsTopicARN(Aws::String &&value)
void SetDevicePickupSnsTopicARN(const Aws::String &value)
Notification & AddJobStatesToNotify(const JobState &value)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
Notification & WithJobStatesToNotify(Aws::Vector< JobState > &&value)
AWS_SNOWBALL_API Notification(Aws::Utils::Json::JsonView jsonValue)
Notification & WithSnsTopicARN(const Aws::String &value)
Notification & WithJobStatesToNotify(const Aws::Vector< JobState > &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