AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
EventBus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EventBridge {
21namespace Model {
22
34class EventBus {
35 public:
36 AWS_EVENTBRIDGE_API EventBus() = default;
37 AWS_EVENTBRIDGE_API EventBus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_EVENTBRIDGE_API EventBus& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 EventBus& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
71 EventBus& WithArn(ArnT&& value) {
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 EventBus& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetPolicy() const { return m_policy; }
101 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
102 template <typename PolicyT = Aws::String>
103 void SetPolicy(PolicyT&& value) {
104 m_policyHasBeenSet = true;
105 m_policy = std::forward<PolicyT>(value);
106 }
107 template <typename PolicyT = Aws::String>
108 EventBus& WithPolicy(PolicyT&& value) {
109 SetPolicy(std::forward<PolicyT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
119 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
120 template <typename CreationTimeT = Aws::Utils::DateTime>
121 void SetCreationTime(CreationTimeT&& value) {
122 m_creationTimeHasBeenSet = true;
123 m_creationTime = std::forward<CreationTimeT>(value);
124 }
125 template <typename CreationTimeT = Aws::Utils::DateTime>
126 EventBus& WithCreationTime(CreationTimeT&& value) {
127 SetCreationTime(std::forward<CreationTimeT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
137 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
138 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
139 void SetLastModifiedTime(LastModifiedTimeT&& value) {
140 m_lastModifiedTimeHasBeenSet = true;
141 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
142 }
143 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
144 EventBus& WithLastModifiedTime(LastModifiedTimeT&& value) {
145 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::String& GetManagedBy() const { return m_managedBy; }
157 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
158 template <typename ManagedByT = Aws::String>
159 void SetManagedBy(ManagedByT&& value) {
160 m_managedByHasBeenSet = true;
161 m_managedBy = std::forward<ManagedByT>(value);
162 }
163 template <typename ManagedByT = Aws::String>
164 EventBus& WithManagedBy(ManagedByT&& value) {
165 SetManagedBy(std::forward<ManagedByT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_name;
171
172 Aws::String m_arn;
173
174 Aws::String m_description;
175
176 Aws::String m_policy;
177
178 Aws::Utils::DateTime m_creationTime{};
179
180 Aws::Utils::DateTime m_lastModifiedTime{};
181
182 Aws::String m_managedBy;
183 bool m_nameHasBeenSet = false;
184 bool m_arnHasBeenSet = false;
185 bool m_descriptionHasBeenSet = false;
186 bool m_policyHasBeenSet = false;
187 bool m_creationTimeHasBeenSet = false;
188 bool m_lastModifiedTimeHasBeenSet = false;
189 bool m_managedByHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace EventBridge
194} // namespace Aws
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition EventBus.h:139
bool LastModifiedTimeHasBeenSet() const
Definition EventBus.h:137
const Aws::String & GetPolicy() const
Definition EventBus.h:100
void SetManagedBy(ManagedByT &&value)
Definition EventBus.h:159
const Aws::String & GetManagedBy() const
Definition EventBus.h:156
const Aws::String & GetArn() const
Definition EventBus.h:63
AWS_EVENTBRIDGE_API EventBus(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API EventBus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicy(PolicyT &&value)
Definition EventBus.h:103
const Aws::Utils::DateTime & GetCreationTime() const
Definition EventBus.h:118
EventBus & WithCreationTime(CreationTimeT &&value)
Definition EventBus.h:126
EventBus & WithArn(ArnT &&value)
Definition EventBus.h:71
AWS_EVENTBRIDGE_API EventBus()=default
void SetCreationTime(CreationTimeT &&value)
Definition EventBus.h:121
EventBus & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition EventBus.h:144
void SetArn(ArnT &&value)
Definition EventBus.h:66
EventBus & WithPolicy(PolicyT &&value)
Definition EventBus.h:108
EventBus & WithManagedBy(ManagedByT &&value)
Definition EventBus.h:164
EventBus & WithDescription(DescriptionT &&value)
Definition EventBus.h:89
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition EventBus.h:136
const Aws::String & GetDescription() const
Definition EventBus.h:81
const Aws::String & GetName() const
Definition EventBus.h:45
EventBus & WithName(NameT &&value)
Definition EventBus.h:53
void SetName(NameT &&value)
Definition EventBus.h:48
void SetDescription(DescriptionT &&value)
Definition EventBus.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue