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>
44 template <
typename ResourceArnT = Aws::String>
46 m_resourceArnHasBeenSet =
true;
47 m_resourceArn = std::forward<ResourceArnT>(value);
49 template <
typename ResourceArnT = Aws::String>
63 template <
typename TopicArnT = Aws::String>
65 m_topicArnHasBeenSet =
true;
66 m_topicArn = std::forward<TopicArnT>(value);
68 template <
typename TopicArnT = Aws::String>
81 template <
typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
83 m_eventSubscriptionsHasBeenSet =
true;
84 m_eventSubscriptions = std::forward<EventSubscriptionsT>(value);
86 template <
typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
91 template <
typename EventSubscriptionsT = EventSubscription>
93 m_eventSubscriptionsHasBeenSet =
true;
94 m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value));
104 bool m_resourceArnHasBeenSet =
false;
105 bool m_topicArnHasBeenSet =
false;
106 bool m_eventSubscriptionsHasBeenSet =
false;
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
bool TopicArnHasBeenSet() const
void SetEventSubscriptions(EventSubscriptionsT &&value)
bool ResourceArnHasBeenSet() const
Subscription & WithEventSubscriptions(EventSubscriptionsT &&value)
Subscription & WithTopicArn(TopicArnT &&value)
void SetResourceArn(ResourceArnT &&value)
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
bool EventSubscriptionsHasBeenSet() 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