AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventSubscription.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/model/EventType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ResilienceHub
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_RESILIENCEHUB_API EventSubscription() = default;
38 AWS_RESILIENCEHUB_API EventSubscription(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESILIENCEHUB_API EventSubscription& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline EventType GetEventType() const { return m_eventType; }
51 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
52 inline void SetEventType(EventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
53 inline EventSubscription& WithEventType(EventType value) { SetEventType(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 EventSubscription& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
78 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
79 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
80 template<typename SnsTopicArnT = Aws::String>
81 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
82 template<typename SnsTopicArnT = Aws::String>
83 EventSubscription& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
85 private:
86
87 EventType m_eventType{EventType::NOT_SET};
88 bool m_eventTypeHasBeenSet = false;
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 Aws::String m_snsTopicArn;
94 bool m_snsTopicArnHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ResilienceHub
99} // 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