AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
EventBusSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
11#include <aws/eventbridgev2/model/BusState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace EventBridgeV2 {
22namespace Model {
23
31 public:
32 AWS_EVENTBRIDGEV2_API EventBusSummary() = default;
33 AWS_EVENTBRIDGEV2_API EventBusSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_EVENTBRIDGEV2_API EventBusSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 EventBusSummary& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
56 inline bool EventBusArnHasBeenSet() const { return m_eventBusArnHasBeenSet; }
57 template <typename EventBusArnT = Aws::String>
58 void SetEventBusArn(EventBusArnT&& value) {
59 m_eventBusArnHasBeenSet = true;
60 m_eventBusArn = std::forward<EventBusArnT>(value);
61 }
62 template <typename EventBusArnT = Aws::String>
63 EventBusSummary& WithEventBusArn(EventBusArnT&& value) {
64 SetEventBusArn(std::forward<EventBusArnT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
79 EventBusSummary& WithDescription(DescriptionT&& value) {
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
90 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
91 template <typename CreationTimeT = Aws::Utils::DateTime>
92 void SetCreationTime(CreationTimeT&& value) {
93 m_creationTimeHasBeenSet = true;
94 m_creationTime = std::forward<CreationTimeT>(value);
95 }
96 template <typename CreationTimeT = Aws::Utils::DateTime>
97 EventBusSummary& WithCreationTime(CreationTimeT&& value) {
98 SetCreationTime(std::forward<CreationTimeT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
108 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
109 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
110 void SetLastModifiedTime(LastModifiedTimeT&& value) {
111 m_lastModifiedTimeHasBeenSet = true;
112 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
113 }
114 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
115 EventBusSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
116 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
117 return *this;
118 }
120
122
123 inline BusState GetState() const { return m_state; }
124 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
125 inline void SetState(BusState value) {
126 m_stateHasBeenSet = true;
127 m_state = value;
128 }
130 SetState(value);
131 return *this;
132 }
134
136
137 inline const Aws::String& GetStateReason() const { return m_stateReason; }
138 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
139 template <typename StateReasonT = Aws::String>
140 void SetStateReason(StateReasonT&& value) {
141 m_stateReasonHasBeenSet = true;
142 m_stateReason = std::forward<StateReasonT>(value);
143 }
144 template <typename StateReasonT = Aws::String>
145 EventBusSummary& WithStateReason(StateReasonT&& value) {
146 SetStateReason(std::forward<StateReasonT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetEventBusAccountId() const { return m_eventBusAccountId; }
154 inline bool EventBusAccountIdHasBeenSet() const { return m_eventBusAccountIdHasBeenSet; }
155 template <typename EventBusAccountIdT = Aws::String>
156 void SetEventBusAccountId(EventBusAccountIdT&& value) {
157 m_eventBusAccountIdHasBeenSet = true;
158 m_eventBusAccountId = std::forward<EventBusAccountIdT>(value);
159 }
160 template <typename EventBusAccountIdT = Aws::String>
161 EventBusSummary& WithEventBusAccountId(EventBusAccountIdT&& value) {
162 SetEventBusAccountId(std::forward<EventBusAccountIdT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_name;
168
169 Aws::String m_eventBusArn;
170
171 Aws::String m_description;
172
173 Aws::Utils::DateTime m_creationTime{};
174
175 Aws::Utils::DateTime m_lastModifiedTime{};
176
178
179 Aws::String m_stateReason;
180
181 Aws::String m_eventBusAccountId;
182 bool m_nameHasBeenSet = false;
183 bool m_eventBusArnHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185 bool m_creationTimeHasBeenSet = false;
186 bool m_lastModifiedTimeHasBeenSet = false;
187 bool m_stateHasBeenSet = false;
188 bool m_stateReasonHasBeenSet = false;
189 bool m_eventBusAccountIdHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace EventBridgeV2
194} // namespace Aws
EventBusSummary & WithName(NameT &&value)
void SetEventBusAccountId(EventBusAccountIdT &&value)
AWS_EVENTBRIDGEV2_API EventBusSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
EventBusSummary & WithDescription(DescriptionT &&value)
void SetEventBusArn(EventBusArnT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetStateReason() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
EventBusSummary & WithCreationTime(CreationTimeT &&value)
AWS_EVENTBRIDGEV2_API EventBusSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetCreationTime(CreationTimeT &&value)
void SetDescription(DescriptionT &&value)
EventBusSummary & WithState(BusState value)
EventBusSummary & WithEventBusArn(EventBusArnT &&value)
EventBusSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
EventBusSummary & WithStateReason(StateReasonT &&value)
AWS_EVENTBRIDGEV2_API EventBusSummary()=default
const Aws::String & GetEventBusAccountId() const
EventBusSummary & WithEventBusAccountId(EventBusAccountIdT &&value)
const Aws::String & GetEventBusArn() const
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String