AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector/model/EventSubscription.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INSPECTOR_API Subscription() = default;
38 AWS_INSPECTOR_API Subscription(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR_API Subscription& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
49 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
50 template<typename ResourceArnT = Aws::String>
51 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
52 template<typename ResourceArnT = Aws::String>
53 Subscription& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
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) { m_topicArnHasBeenSet = true; m_topicArn = std::forward<TopicArnT>(value); }
65 template<typename TopicArnT = Aws::String>
66 Subscription& WithTopicArn(TopicArnT&& value) { SetTopicArn(std::forward<TopicArnT>(value)); return *this;}
68
70
73 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const { return m_eventSubscriptions; }
74 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
75 template<typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
76 void SetEventSubscriptions(EventSubscriptionsT&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = std::forward<EventSubscriptionsT>(value); }
77 template<typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
78 Subscription& WithEventSubscriptions(EventSubscriptionsT&& value) { SetEventSubscriptions(std::forward<EventSubscriptionsT>(value)); return *this;}
79 template<typename EventSubscriptionsT = EventSubscription>
80 Subscription& AddEventSubscriptions(EventSubscriptionsT&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value)); return *this; }
82 private:
83
84 Aws::String m_resourceArn;
85 bool m_resourceArnHasBeenSet = false;
86
87 Aws::String m_topicArn;
88 bool m_topicArnHasBeenSet = false;
89
90 Aws::Vector<EventSubscription> m_eventSubscriptions;
91 bool m_eventSubscriptionsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Inspector
96} // 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