AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9#include <aws/resiliencehub/model/EventType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResilienceHub {
21namespace Model {
22
31 public:
32 AWS_RESILIENCEHUB_API EventSubscription() = default;
33 AWS_RESILIENCEHUB_API EventSubscription(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUB_API EventSubscription& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline EventType GetEventType() const { return m_eventType; }
45 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
46 inline void SetEventType(EventType value) {
47 m_eventTypeHasBeenSet = true;
48 m_eventType = value;
49 }
51 SetEventType(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 EventSubscription& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
84 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
85 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
86 template <typename SnsTopicArnT = Aws::String>
87 void SetSnsTopicArn(SnsTopicArnT&& value) {
88 m_snsTopicArnHasBeenSet = true;
89 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
90 }
91 template <typename SnsTopicArnT = Aws::String>
92 EventSubscription& WithSnsTopicArn(SnsTopicArnT&& value) {
93 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
94 return *this;
95 }
97 private:
98 EventType m_eventType{EventType::NOT_SET};
99
100 Aws::String m_name;
101
102 Aws::String m_snsTopicArn;
103 bool m_eventTypeHasBeenSet = false;
104 bool m_nameHasBeenSet = false;
105 bool m_snsTopicArnHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace ResilienceHub
110} // namespace Aws
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_RESILIENCEHUB_API EventSubscription()=default
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
EventSubscription & WithName(NameT &&value)
AWS_RESILIENCEHUB_API EventSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
EventSubscription & WithEventType(EventType value)
AWS_RESILIENCEHUB_API EventSubscription(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue