AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SnsTopicARNT = Aws::String>
62 void SetSnsTopicARN(SnsTopicARNT&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = std::forward<SnsTopicARNT>(value); }
63 template<typename SnsTopicARNT = Aws::String>
64 Notification& WithSnsTopicARN(SnsTopicARNT&& value) { SetSnsTopicARN(std::forward<SnsTopicARNT>(value)); return *this;}
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) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify = std::forward<JobStatesToNotifyT>(value); }
75 template<typename JobStatesToNotifyT = Aws::Vector<JobState>>
76 Notification& WithJobStatesToNotify(JobStatesToNotifyT&& value) { SetJobStatesToNotify(std::forward<JobStatesToNotifyT>(value)); return *this;}
77 inline Notification& AddJobStatesToNotify(JobState value) { m_jobStatesToNotifyHasBeenSet = true; m_jobStatesToNotify.push_back(value); return *this; }
79
81
84 inline bool GetNotifyAll() const { return m_notifyAll; }
85 inline bool NotifyAllHasBeenSet() const { return m_notifyAllHasBeenSet; }
86 inline void SetNotifyAll(bool value) { m_notifyAllHasBeenSet = true; m_notifyAll = value; }
87 inline Notification& WithNotifyAll(bool value) { SetNotifyAll(value); return *this;}
89
91
95 inline const Aws::String& GetDevicePickupSnsTopicARN() const { return m_devicePickupSnsTopicARN; }
96 inline bool DevicePickupSnsTopicARNHasBeenSet() const { return m_devicePickupSnsTopicARNHasBeenSet; }
97 template<typename DevicePickupSnsTopicARNT = Aws::String>
98 void SetDevicePickupSnsTopicARN(DevicePickupSnsTopicARNT&& value) { m_devicePickupSnsTopicARNHasBeenSet = true; m_devicePickupSnsTopicARN = std::forward<DevicePickupSnsTopicARNT>(value); }
99 template<typename DevicePickupSnsTopicARNT = Aws::String>
100 Notification& WithDevicePickupSnsTopicARN(DevicePickupSnsTopicARNT&& value) { SetDevicePickupSnsTopicARN(std::forward<DevicePickupSnsTopicARNT>(value)); return *this;}
102 private:
103
104 Aws::String m_snsTopicARN;
105 bool m_snsTopicARNHasBeenSet = false;
106
107 Aws::Vector<JobState> m_jobStatesToNotify;
108 bool m_jobStatesToNotifyHasBeenSet = false;
109
110 bool m_notifyAll{false};
111 bool m_notifyAllHasBeenSet = false;
112
113 Aws::String m_devicePickupSnsTopicARN;
114 bool m_devicePickupSnsTopicARNHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Snowball
119} // 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