AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EventSource.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#include <aws/eventbridge/model/EventSourceState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EventBridge {
22namespace Model {
23
33 public:
34 AWS_EVENTBRIDGE_API EventSource() = default;
35 AWS_EVENTBRIDGE_API EventSource(Aws::Utils::Json::JsonView jsonValue);
36 AWS_EVENTBRIDGE_API EventSource& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 EventSource& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
62 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
63 template <typename CreatedByT = Aws::String>
64 void SetCreatedBy(CreatedByT&& value) {
65 m_createdByHasBeenSet = true;
66 m_createdBy = std::forward<CreatedByT>(value);
67 }
68 template <typename CreatedByT = Aws::String>
69 EventSource& WithCreatedBy(CreatedByT&& value) {
70 SetCreatedBy(std::forward<CreatedByT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
80 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
81 template <typename CreationTimeT = Aws::Utils::DateTime>
82 void SetCreationTime(CreationTimeT&& value) {
83 m_creationTimeHasBeenSet = true;
84 m_creationTime = std::forward<CreationTimeT>(value);
85 }
86 template <typename CreationTimeT = Aws::Utils::DateTime>
87 EventSource& WithCreationTime(CreationTimeT&& value) {
88 SetCreationTime(std::forward<CreationTimeT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
99 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
100 template <typename ExpirationTimeT = Aws::Utils::DateTime>
101 void SetExpirationTime(ExpirationTimeT&& value) {
102 m_expirationTimeHasBeenSet = true;
103 m_expirationTime = std::forward<ExpirationTimeT>(value);
104 }
105 template <typename ExpirationTimeT = Aws::Utils::DateTime>
106 EventSource& WithExpirationTime(ExpirationTimeT&& value) {
107 SetExpirationTime(std::forward<ExpirationTimeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetName() const { return m_name; }
117 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
118 template <typename NameT = Aws::String>
119 void SetName(NameT&& value) {
120 m_nameHasBeenSet = true;
121 m_name = std::forward<NameT>(value);
122 }
123 template <typename NameT = Aws::String>
124 EventSource& WithName(NameT&& value) {
125 SetName(std::forward<NameT>(value));
126 return *this;
127 }
129
131
138 inline EventSourceState GetState() const { return m_state; }
139 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
140 inline void SetState(EventSourceState value) {
141 m_stateHasBeenSet = true;
142 m_state = value;
143 }
145 SetState(value);
146 return *this;
147 }
149 private:
150 Aws::String m_arn;
151
152 Aws::String m_createdBy;
153
154 Aws::Utils::DateTime m_creationTime{};
155
156 Aws::Utils::DateTime m_expirationTime{};
157
158 Aws::String m_name;
159
161 bool m_arnHasBeenSet = false;
162 bool m_createdByHasBeenSet = false;
163 bool m_creationTimeHasBeenSet = false;
164 bool m_expirationTimeHasBeenSet = false;
165 bool m_nameHasBeenSet = false;
166 bool m_stateHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace EventBridge
171} // namespace Aws
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API EventSource()=default
AWS_EVENTBRIDGE_API EventSource & operator=(Aws::Utils::Json::JsonView jsonValue)
EventSource & WithState(EventSourceState value)
EventSource & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
Definition EventSource.h:79
EventSourceState GetState() const
EventSource & WithArn(ArnT &&value)
Definition EventSource.h:51
AWS_EVENTBRIDGE_API EventSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
void SetExpirationTime(ExpirationTimeT &&value)
void SetCreatedBy(CreatedByT &&value)
Definition EventSource.h:64
const Aws::String & GetArn() const
Definition EventSource.h:43
EventSource & WithExpirationTime(ExpirationTimeT &&value)
const Aws::String & GetCreatedBy() const
Definition EventSource.h:61
EventSource & WithCreationTime(CreationTimeT &&value)
Definition EventSource.h:87
void SetCreationTime(CreationTimeT &&value)
Definition EventSource.h:82
EventSource & WithCreatedBy(CreatedByT &&value)
Definition EventSource.h:69
const Aws::Utils::DateTime & GetExpirationTime() const
Definition EventSource.h:98
void SetState(EventSourceState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue