AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
CreateEventBusResult.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 CreateEventBusResult() = 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 CreateEventBusResult& 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 CreateEventBusResult& 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 CreateEventBusResult& 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 CreateEventBusResult& WithStorageConfiguration(StorageConfigurationT&& value) {
104 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
105 return *this;
106 }
108
110
111 inline BusState GetState() const { return m_state; }
112 inline void SetState(BusState value) {
113 m_stateHasBeenSet = true;
114 m_state = value;
115 }
117 SetState(value);
118 return *this;
119 }
121
123
124 inline const Aws::String& GetStateReason() const { return m_stateReason; }
125 template <typename StateReasonT = Aws::String>
126 void SetStateReason(StateReasonT&& value) {
127 m_stateReasonHasBeenSet = true;
128 m_stateReason = std::forward<StateReasonT>(value);
129 }
130 template <typename StateReasonT = Aws::String>
131 CreateEventBusResult& WithStateReason(StateReasonT&& value) {
132 SetStateReason(std::forward<StateReasonT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
142 template <typename CreationTimeT = Aws::Utils::DateTime>
143 void SetCreationTime(CreationTimeT&& value) {
144 m_creationTimeHasBeenSet = true;
145 m_creationTime = std::forward<CreationTimeT>(value);
146 }
147 template <typename CreationTimeT = Aws::Utils::DateTime>
148 CreateEventBusResult& WithCreationTime(CreationTimeT&& value) {
149 SetCreationTime(std::forward<CreationTimeT>(value));
150 return *this;
151 }
153
155
156 inline const Aws::String& GetRequestId() const { return m_requestId; }
157 template <typename RequestIdT = Aws::String>
158 void SetRequestId(RequestIdT&& value) {
159 m_requestIdHasBeenSet = true;
160 m_requestId = std::forward<RequestIdT>(value);
161 }
162 template <typename RequestIdT = Aws::String>
163 CreateEventBusResult& WithRequestId(RequestIdT&& value) {
164 SetRequestId(std::forward<RequestIdT>(value));
165 return *this;
166 }
168 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
169
170 private:
171 Aws::String m_eventBusArn;
172
173 Aws::String m_name;
174
175 Aws::String m_description;
176
177 EncryptionConfiguration m_encryptionConfiguration;
178
179 StorageConfigurationOutput m_storageConfiguration;
180
182
183 Aws::String m_stateReason;
184
185 Aws::Utils::DateTime m_creationTime{};
186
187 Aws::String m_requestId;
188 Aws::Http::HttpResponseCode m_HttpResponseCode;
189 bool m_eventBusArnHasBeenSet = false;
190 bool m_nameHasBeenSet = false;
191 bool m_descriptionHasBeenSet = false;
192 bool m_encryptionConfigurationHasBeenSet = false;
193 bool m_storageConfigurationHasBeenSet = false;
194 bool m_stateHasBeenSet = false;
195 bool m_stateReasonHasBeenSet = false;
196 bool m_creationTimeHasBeenSet = false;
197 bool m_requestIdHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace EventBridgeV2
202} // namespace Aws
const StorageConfigurationOutput & GetStorageConfiguration() const
const Aws::Utils::DateTime & GetCreationTime() const
AWS_EVENTBRIDGEV2_API CreateEventBusResult()=default
AWS_EVENTBRIDGEV2_API CreateEventBusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
CreateEventBusResult & WithStateReason(StateReasonT &&value)
CreateEventBusResult & WithName(NameT &&value)
CreateEventBusResult & WithStorageConfiguration(StorageConfigurationT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateEventBusResult & WithDescription(DescriptionT &&value)
void SetStorageConfiguration(StorageConfigurationT &&value)
CreateEventBusResult & WithCreationTime(CreationTimeT &&value)
CreateEventBusResult & WithRequestId(RequestIdT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateEventBusResult & WithEventBusArn(EventBusArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateEventBusResult & WithState(BusState value)
CreateEventBusResult & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_EVENTBRIDGEV2_API CreateEventBusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String