AWS SDK for C++  1.9.104
AWS SDK for C++
VaultNotificationConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Glacier
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetSNSTopic() const{ return m_sNSTopic; }
47 
52  inline bool SNSTopicHasBeenSet() const { return m_sNSTopicHasBeenSet; }
53 
58  inline void SetSNSTopic(const Aws::String& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = value; }
59 
64  inline void SetSNSTopic(Aws::String&& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = std::move(value); }
65 
70  inline void SetSNSTopic(const char* value) { m_sNSTopicHasBeenSet = true; m_sNSTopic.assign(value); }
71 
76  inline VaultNotificationConfig& WithSNSTopic(const Aws::String& value) { SetSNSTopic(value); return *this;}
77 
82  inline VaultNotificationConfig& WithSNSTopic(Aws::String&& value) { SetSNSTopic(std::move(value)); return *this;}
83 
88  inline VaultNotificationConfig& WithSNSTopic(const char* value) { SetSNSTopic(value); return *this;}
89 
90 
95  inline const Aws::Vector<Aws::String>& GetEvents() const{ return m_events; }
96 
101  inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
102 
107  inline void SetEvents(const Aws::Vector<Aws::String>& value) { m_eventsHasBeenSet = true; m_events = value; }
108 
113  inline void SetEvents(Aws::Vector<Aws::String>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
114 
119  inline VaultNotificationConfig& WithEvents(const Aws::Vector<Aws::String>& value) { SetEvents(value); return *this;}
120 
125  inline VaultNotificationConfig& WithEvents(Aws::Vector<Aws::String>&& value) { SetEvents(std::move(value)); return *this;}
126 
131  inline VaultNotificationConfig& AddEvents(const Aws::String& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
132 
137  inline VaultNotificationConfig& AddEvents(Aws::String&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
138 
143  inline VaultNotificationConfig& AddEvents(const char* value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
144 
145  private:
146 
147  Aws::String m_sNSTopic;
148  bool m_sNSTopicHasBeenSet;
149 
150  Aws::Vector<Aws::String> m_events;
151  bool m_eventsHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace Glacier
156 } // namespace Aws
Aws::Glacier::Model::VaultNotificationConfig::SetSNSTopic
void SetSNSTopic(const char *value)
Definition: VaultNotificationConfig.h:70
Aws::Glacier::Model::VaultNotificationConfig::WithSNSTopic
VaultNotificationConfig & WithSNSTopic(const char *value)
Definition: VaultNotificationConfig.h:88
Aws::Glacier::Model::VaultNotificationConfig::GetEvents
const Aws::Vector< Aws::String > & GetEvents() const
Definition: VaultNotificationConfig.h:95
Aws::Glacier::Model::VaultNotificationConfig::GetSNSTopic
const Aws::String & GetSNSTopic() const
Definition: VaultNotificationConfig.h:46
Aws::Glacier::Model::VaultNotificationConfig::SetEvents
void SetEvents(const Aws::Vector< Aws::String > &value)
Definition: VaultNotificationConfig.h:107
Aws::Glacier::Model::VaultNotificationConfig::SetSNSTopic
void SetSNSTopic(const Aws::String &value)
Definition: VaultNotificationConfig.h:58
Aws::Glacier::Model::VaultNotificationConfig::WithSNSTopic
VaultNotificationConfig & WithSNSTopic(Aws::String &&value)
Definition: VaultNotificationConfig.h:82
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Glacier::Model::VaultNotificationConfig::SetEvents
void SetEvents(Aws::Vector< Aws::String > &&value)
Definition: VaultNotificationConfig.h:113
AWSVector.h
Aws::Glacier::Model::VaultNotificationConfig::SetSNSTopic
void SetSNSTopic(Aws::String &&value)
Definition: VaultNotificationConfig.h:64
Aws::Glacier::Model::VaultNotificationConfig::WithEvents
VaultNotificationConfig & WithEvents(const Aws::Vector< Aws::String > &value)
Definition: VaultNotificationConfig.h:119
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::VaultNotificationConfig::VaultNotificationConfig
VaultNotificationConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::VaultNotificationConfig::operator=
VaultNotificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::VaultNotificationConfig::WithEvents
VaultNotificationConfig & WithEvents(Aws::Vector< Aws::String > &&value)
Definition: VaultNotificationConfig.h:125
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::VaultNotificationConfig::VaultNotificationConfig
VaultNotificationConfig()
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::VaultNotificationConfig::AddEvents
VaultNotificationConfig & AddEvents(const char *value)
Definition: VaultNotificationConfig.h:143
Aws::Glacier::Model::VaultNotificationConfig::SNSTopicHasBeenSet
bool SNSTopicHasBeenSet() const
Definition: VaultNotificationConfig.h:52
Aws::Glacier::Model::VaultNotificationConfig::WithSNSTopic
VaultNotificationConfig & WithSNSTopic(const Aws::String &value)
Definition: VaultNotificationConfig.h:76
Aws::Glacier::Model::VaultNotificationConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::VaultNotificationConfig
Definition: VaultNotificationConfig.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::VaultNotificationConfig::AddEvents
VaultNotificationConfig & AddEvents(const Aws::String &value)
Definition: VaultNotificationConfig.h:131
Aws::Glacier::Model::VaultNotificationConfig::AddEvents
VaultNotificationConfig & AddEvents(Aws::String &&value)
Definition: VaultNotificationConfig.h:137
Aws::Glacier::Model::VaultNotificationConfig::EventsHasBeenSet
bool EventsHasBeenSet() const
Definition: VaultNotificationConfig.h:101
Glacier_EXPORTS.h