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>
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>
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>
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>>
79 template<
typename EventSubscriptionsT = EventSubscription>
80 Subscription&
AddEventSubscriptions(EventSubscriptionsT&& value) { m_eventSubscriptionsHasBeenSet =
true; m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value));
return *
this; }
85 bool m_resourceArnHasBeenSet =
false;
88 bool m_topicArnHasBeenSet =
false;
91 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