AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const EventType& GetEventType() const{ return m_eventType; }
51 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
52 inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
53 inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
54 inline EventSubscription& WithEventType(const EventType& value) { SetEventType(value); return *this;}
55 inline EventSubscription& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline EventSubscription& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline EventSubscription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline EventSubscription& WithName(const char* value) { SetName(value); return *this;}
71
73
82 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
83 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
84 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
85 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
86 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
87 inline EventSubscription& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
88 inline EventSubscription& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
89 inline EventSubscription& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
91 private:
92
93 EventType m_eventType;
94 bool m_eventTypeHasBeenSet = false;
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_snsTopicArn;
100 bool m_snsTopicArnHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace ResilienceHub
105} // namespace Aws
EventSubscription & WithName(const char *value)
EventSubscription & WithSnsTopicArn(Aws::String &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
EventSubscription & WithEventType(const EventType &value)
EventSubscription & WithName(const Aws::String &value)
EventSubscription & WithName(Aws::String &&value)
AWS_RESILIENCEHUB_API EventSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
EventSubscription & WithSnsTopicArn(const char *value)
void SetSnsTopicArn(const Aws::String &value)
EventSubscription & WithSnsTopicArn(const Aws::String &value)
AWS_RESILIENCEHUB_API EventSubscription(Aws::Utils::Json::JsonView jsonValue)
EventSubscription & WithEventType(EventType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue