AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
51 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
52 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
53 inline Subscription& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
54 inline Subscription& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
55 inline Subscription& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
57
59
63 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
64 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
65 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
66 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
67 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
68 inline Subscription& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
69 inline Subscription& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
70 inline Subscription& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
72
74
77 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const{ return m_eventSubscriptions; }
78 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
79 inline void SetEventSubscriptions(const Aws::Vector<EventSubscription>& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = value; }
80 inline void SetEventSubscriptions(Aws::Vector<EventSubscription>&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = std::move(value); }
83 inline Subscription& AddEventSubscriptions(const EventSubscription& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.push_back(value); return *this; }
84 inline Subscription& AddEventSubscriptions(EventSubscription&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_resourceArn;
89 bool m_resourceArnHasBeenSet = false;
90
91 Aws::String m_topicArn;
92 bool m_topicArnHasBeenSet = false;
93
94 Aws::Vector<EventSubscription> m_eventSubscriptions;
95 bool m_eventSubscriptionsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Inspector
100} // namespace Aws
AWS_INSPECTOR_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithResourceArn(const Aws::String &value)
Subscription & WithTopicArn(Aws::String &&value)
void SetResourceArn(const char *value)
void SetResourceArn(const Aws::String &value)
const Aws::String & GetResourceArn() const
Subscription & AddEventSubscriptions(EventSubscription &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventSubscriptions(Aws::Vector< EventSubscription > &&value)
const Aws::String & GetTopicArn() const
Subscription & WithEventSubscriptions(const Aws::Vector< EventSubscription > &value)
void SetTopicArn(Aws::String &&value)
void SetEventSubscriptions(const Aws::Vector< EventSubscription > &value)
Subscription & WithResourceArn(const char *value)
Subscription & WithTopicArn(const Aws::String &value)
Subscription & AddEventSubscriptions(const EventSubscription &value)
void SetResourceArn(Aws::String &&value)
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
void SetTopicArn(const char *value)
void SetTopicArn(const Aws::String &value)
AWS_INSPECTOR_API Subscription(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithEventSubscriptions(Aws::Vector< EventSubscription > &&value)
Subscription & WithTopicArn(const char *value)
Subscription & WithResourceArn(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