AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
VaultNotificationConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glacier {
21namespace Model {
22
30 public:
31 AWS_GLACIER_API VaultNotificationConfig() = default;
34 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetSNSTopic() const { return m_sNSTopic; }
42 inline bool SNSTopicHasBeenSet() const { return m_sNSTopicHasBeenSet; }
43 template <typename SNSTopicT = Aws::String>
44 void SetSNSTopic(SNSTopicT&& value) {
45 m_sNSTopicHasBeenSet = true;
46 m_sNSTopic = std::forward<SNSTopicT>(value);
47 }
48 template <typename SNSTopicT = Aws::String>
50 SetSNSTopic(std::forward<SNSTopicT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetEvents() const { return m_events; }
61 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
62 template <typename EventsT = Aws::Vector<Aws::String>>
63 void SetEvents(EventsT&& value) {
64 m_eventsHasBeenSet = true;
65 m_events = std::forward<EventsT>(value);
66 }
67 template <typename EventsT = Aws::Vector<Aws::String>>
69 SetEvents(std::forward<EventsT>(value));
70 return *this;
71 }
72 template <typename EventsT = Aws::String>
74 m_eventsHasBeenSet = true;
75 m_events.emplace_back(std::forward<EventsT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_sNSTopic;
81
83 bool m_sNSTopicHasBeenSet = false;
84 bool m_eventsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Glacier
89} // namespace Aws
AWS_GLACIER_API VaultNotificationConfig(Aws::Utils::Json::JsonView jsonValue)
VaultNotificationConfig & WithEvents(EventsT &&value)
VaultNotificationConfig & WithSNSTopic(SNSTopicT &&value)
const Aws::Vector< Aws::String > & GetEvents() const
VaultNotificationConfig & AddEvents(EventsT &&value)
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLACIER_API VaultNotificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLACIER_API VaultNotificationConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue