AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
DescribeEventBusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
12#include <aws/eventbridgev2/model/BusState.h>
13#include <aws/eventbridgev2/model/EncryptionConfiguration.h>
14#include <aws/eventbridgev2/model/StorageConfigurationOutput.h>
15
16#include <utility>
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Cbor {
23class CborValue;
24} // namespace Cbor
25} // namespace Utils
26namespace EventBridgeV2 {
27namespace Model {
29 public:
30 AWS_EVENTBRIDGEV2_API DescribeEventBusResult() = default;
33
35
36 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
37 template <typename EventBusArnT = Aws::String>
38 void SetEventBusArn(EventBusArnT&& value) {
39 m_eventBusArnHasBeenSet = true;
40 m_eventBusArn = std::forward<EventBusArnT>(value);
41 }
42 template <typename EventBusArnT = Aws::String>
43 DescribeEventBusResult& WithEventBusArn(EventBusArnT&& value) {
44 SetEventBusArn(std::forward<EventBusArnT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetName() const { return m_name; }
52 template <typename NameT = Aws::String>
53 void SetName(NameT&& value) {
54 m_nameHasBeenSet = true;
55 m_name = std::forward<NameT>(value);
56 }
57 template <typename NameT = Aws::String>
59 SetName(std::forward<NameT>(value));
60 return *this;
61 }
63
65
66 inline const Aws::String& GetDescription() const { return m_description; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 DescribeEventBusResult& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
81 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
82 template <typename EncryptionConfigurationT = EncryptionConfiguration>
83 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
84 m_encryptionConfigurationHasBeenSet = true;
85 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
86 }
87 template <typename EncryptionConfigurationT = EncryptionConfiguration>
88 DescribeEventBusResult& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
89 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
90 return *this;
91 }
93
95
96 inline const StorageConfigurationOutput& GetStorageConfiguration() const { return m_storageConfiguration; }
97 template <typename StorageConfigurationT = StorageConfigurationOutput>
98 void SetStorageConfiguration(StorageConfigurationT&& value) {
99 m_storageConfigurationHasBeenSet = true;
100 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
101 }
102 template <typename StorageConfigurationT = StorageConfigurationOutput>
103 DescribeEventBusResult& WithStorageConfiguration(StorageConfigurationT&& value) {
104 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
114 template <typename CreationTimeT = Aws::Utils::DateTime>
115 void SetCreationTime(CreationTimeT&& value) {
116 m_creationTimeHasBeenSet = true;
117 m_creationTime = std::forward<CreationTimeT>(value);
118 }
119 template <typename CreationTimeT = Aws::Utils::DateTime>
120 DescribeEventBusResult& WithCreationTime(CreationTimeT&& value) {
121 SetCreationTime(std::forward<CreationTimeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
131 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
132 void SetLastModifiedTime(LastModifiedTimeT&& value) {
133 m_lastModifiedTimeHasBeenSet = true;
134 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
135 }
136 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
137 DescribeEventBusResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
138 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
139 return *this;
140 }
142
144
145 inline BusState GetState() const { return m_state; }
146 inline void SetState(BusState value) {
147 m_stateHasBeenSet = true;
148 m_state = value;
149 }
151 SetState(value);
152 return *this;
153 }
155
157
158 inline const Aws::String& GetStateReason() const { return m_stateReason; }
159 template <typename StateReasonT = Aws::String>
160 void SetStateReason(StateReasonT&& value) {
161 m_stateReasonHasBeenSet = true;
162 m_stateReason = std::forward<StateReasonT>(value);
163 }
164 template <typename StateReasonT = Aws::String>
166 SetStateReason(std::forward<StateReasonT>(value));
167 return *this;
168 }
170
172
173 inline const Aws::String& GetRequestId() const { return m_requestId; }
174 template <typename RequestIdT = Aws::String>
175 void SetRequestId(RequestIdT&& value) {
176 m_requestIdHasBeenSet = true;
177 m_requestId = std::forward<RequestIdT>(value);
178 }
179 template <typename RequestIdT = Aws::String>
181 SetRequestId(std::forward<RequestIdT>(value));
182 return *this;
183 }
185 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
186
187 private:
188 Aws::String m_eventBusArn;
189
190 Aws::String m_name;
191
192 Aws::String m_description;
193
194 EncryptionConfiguration m_encryptionConfiguration;
195
196 StorageConfigurationOutput m_storageConfiguration;
197
198 Aws::Utils::DateTime m_creationTime{};
199
200 Aws::Utils::DateTime m_lastModifiedTime{};
201
203
204 Aws::String m_stateReason;
205
206 Aws::String m_requestId;
207 Aws::Http::HttpResponseCode m_HttpResponseCode;
208 bool m_eventBusArnHasBeenSet = false;
209 bool m_nameHasBeenSet = false;
210 bool m_descriptionHasBeenSet = false;
211 bool m_encryptionConfigurationHasBeenSet = false;
212 bool m_storageConfigurationHasBeenSet = false;
213 bool m_creationTimeHasBeenSet = false;
214 bool m_lastModifiedTimeHasBeenSet = false;
215 bool m_stateHasBeenSet = false;
216 bool m_stateReasonHasBeenSet = false;
217 bool m_requestIdHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace EventBridgeV2
222} // namespace Aws
const StorageConfigurationOutput & GetStorageConfiguration() const
DescribeEventBusResult & WithStorageConfiguration(StorageConfigurationT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
DescribeEventBusResult & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetStorageConfiguration(StorageConfigurationT &&value)
DescribeEventBusResult & WithCreationTime(CreationTimeT &&value)
DescribeEventBusResult & WithName(NameT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
DescribeEventBusResult & WithState(BusState value)
AWS_EVENTBRIDGEV2_API DescribeEventBusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DescribeEventBusResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_EVENTBRIDGEV2_API DescribeEventBusResult()=default
AWS_EVENTBRIDGEV2_API DescribeEventBusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
DescribeEventBusResult & WithStateReason(StateReasonT &&value)
DescribeEventBusResult & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
DescribeEventBusResult & WithEventBusArn(EventBusArnT &&value)
DescribeEventBusResult & WithLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String