AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VaultNotificationConfig.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glacier
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GLACIER_API VaultNotificationConfig();
39 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetSNSTopic() const{ return m_sNSTopic; }
48 inline bool SNSTopicHasBeenSet() const { return m_sNSTopicHasBeenSet; }
49 inline void SetSNSTopic(const Aws::String& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = value; }
50 inline void SetSNSTopic(Aws::String&& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = std::move(value); }
51 inline void SetSNSTopic(const char* value) { m_sNSTopicHasBeenSet = true; m_sNSTopic.assign(value); }
52 inline VaultNotificationConfig& WithSNSTopic(const Aws::String& value) { SetSNSTopic(value); return *this;}
53 inline VaultNotificationConfig& WithSNSTopic(Aws::String&& value) { SetSNSTopic(std::move(value)); return *this;}
54 inline VaultNotificationConfig& WithSNSTopic(const char* value) { SetSNSTopic(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetEvents() const{ return m_events; }
63 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
64 inline void SetEvents(const Aws::Vector<Aws::String>& value) { m_eventsHasBeenSet = true; m_events = value; }
65 inline void SetEvents(Aws::Vector<Aws::String>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
66 inline VaultNotificationConfig& WithEvents(const Aws::Vector<Aws::String>& value) { SetEvents(value); return *this;}
67 inline VaultNotificationConfig& WithEvents(Aws::Vector<Aws::String>&& value) { SetEvents(std::move(value)); return *this;}
68 inline VaultNotificationConfig& AddEvents(const Aws::String& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
69 inline VaultNotificationConfig& AddEvents(Aws::String&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
70 inline VaultNotificationConfig& AddEvents(const char* value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
72 private:
73
74 Aws::String m_sNSTopic;
75 bool m_sNSTopicHasBeenSet = false;
76
78 bool m_eventsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Glacier
83} // namespace Aws
VaultNotificationConfig & WithSNSTopic(Aws::String &&value)
AWS_GLACIER_API VaultNotificationConfig(Aws::Utils::Json::JsonView jsonValue)
VaultNotificationConfig & AddEvents(const Aws::String &value)
void SetEvents(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetEvents() const
VaultNotificationConfig & WithSNSTopic(const Aws::String &value)
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
VaultNotificationConfig & WithEvents(Aws::Vector< Aws::String > &&value)
AWS_GLACIER_API VaultNotificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VaultNotificationConfig & WithSNSTopic(const char *value)
VaultNotificationConfig & AddEvents(Aws::String &&value)
VaultNotificationConfig & WithEvents(const Aws::Vector< Aws::String > &value)
VaultNotificationConfig & AddEvents(const char *value)
void SetEvents(const Aws::Vector< Aws::String > &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