AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SNSTopicT = Aws::String>
50 void SetSNSTopic(SNSTopicT&& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = std::forward<SNSTopicT>(value); }
51 template<typename SNSTopicT = Aws::String>
52 VaultNotificationConfig& WithSNSTopic(SNSTopicT&& value) { SetSNSTopic(std::forward<SNSTopicT>(value)); return *this;}
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) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
64 template<typename EventsT = Aws::Vector<Aws::String>>
65 VaultNotificationConfig& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
66 template<typename EventsT = Aws::String>
67 VaultNotificationConfig& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
69 private:
70
71 Aws::String m_sNSTopic;
72 bool m_sNSTopicHasBeenSet = false;
73
75 bool m_eventsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Glacier
80} // 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