AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Subscription.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/inspector/Inspector_EXPORTS.h>
10#include <aws/inspector/model/EventSubscription.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR_API Subscription() = default;
33 AWS_INSPECTOR_API Subscription(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR_API Subscription& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
43 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
44 template <typename ResourceArnT = Aws::String>
45 void SetResourceArn(ResourceArnT&& value) {
46 m_resourceArnHasBeenSet = true;
47 m_resourceArn = std::forward<ResourceArnT>(value);
48 }
49 template <typename ResourceArnT = Aws::String>
50 Subscription& WithResourceArn(ResourceArnT&& value) {
51 SetResourceArn(std::forward<ResourceArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
62 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
63 template <typename TopicArnT = Aws::String>
64 void SetTopicArn(TopicArnT&& value) {
65 m_topicArnHasBeenSet = true;
66 m_topicArn = std::forward<TopicArnT>(value);
67 }
68 template <typename TopicArnT = Aws::String>
69 Subscription& WithTopicArn(TopicArnT&& value) {
70 SetTopicArn(std::forward<TopicArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const { return m_eventSubscriptions; }
80 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
81 template <typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
82 void SetEventSubscriptions(EventSubscriptionsT&& value) {
83 m_eventSubscriptionsHasBeenSet = true;
84 m_eventSubscriptions = std::forward<EventSubscriptionsT>(value);
85 }
86 template <typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
87 Subscription& WithEventSubscriptions(EventSubscriptionsT&& value) {
88 SetEventSubscriptions(std::forward<EventSubscriptionsT>(value));
89 return *this;
90 }
91 template <typename EventSubscriptionsT = EventSubscription>
92 Subscription& AddEventSubscriptions(EventSubscriptionsT&& value) {
93 m_eventSubscriptionsHasBeenSet = true;
94 m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_resourceArn;
100
101 Aws::String m_topicArn;
102
103 Aws::Vector<EventSubscription> m_eventSubscriptions;
104 bool m_resourceArnHasBeenSet = false;
105 bool m_topicArnHasBeenSet = false;
106 bool m_eventSubscriptionsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Inspector
111} // namespace Aws
AWS_INSPECTOR_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithResourceArn(ResourceArnT &&value)
Subscription & AddEventSubscriptions(EventSubscriptionsT &&value)
const Aws::String & GetResourceArn() const
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTopicArn() const
void SetEventSubscriptions(EventSubscriptionsT &&value)
Subscription & WithEventSubscriptions(EventSubscriptionsT &&value)
Subscription & WithTopicArn(TopicArnT &&value)
void SetResourceArn(ResourceArnT &&value)
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
void SetTopicArn(TopicArnT &&value)
AWS_INSPECTOR_API Subscription()=default
AWS_INSPECTOR_API Subscription(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