AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetEventDataStoreResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudtrail/model/EventDataStoreStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/cloudtrail/model/BillingMode.h>
13#include <aws/cloudtrail/model/FederationStatus.h>
14#include <aws/cloudtrail/model/AdvancedEventSelector.h>
15#include <aws/cloudtrail/model/PartitionKey.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace CloudTrail
31{
32namespace Model
33{
35 {
36 public:
37 AWS_CLOUDTRAIL_API GetEventDataStoreResult() = default;
40
41
43
46 inline const Aws::String& GetEventDataStoreArn() const { return m_eventDataStoreArn; }
47 template<typename EventDataStoreArnT = Aws::String>
48 void SetEventDataStoreArn(EventDataStoreArnT&& value) { m_eventDataStoreArnHasBeenSet = true; m_eventDataStoreArn = std::forward<EventDataStoreArnT>(value); }
49 template<typename EventDataStoreArnT = Aws::String>
50 GetEventDataStoreResult& WithEventDataStoreArn(EventDataStoreArnT&& value) { SetEventDataStoreArn(std::forward<EventDataStoreArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 GetEventDataStoreResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline EventDataStoreStatus GetStatus() const { return m_status; }
69 inline void SetStatus(EventDataStoreStatus value) { m_statusHasBeenSet = true; m_status = value; }
70 inline GetEventDataStoreResult& WithStatus(EventDataStoreStatus value) { SetStatus(value); return *this;}
72
74
77 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const { return m_advancedEventSelectors; }
78 template<typename AdvancedEventSelectorsT = Aws::Vector<AdvancedEventSelector>>
79 void SetAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = std::forward<AdvancedEventSelectorsT>(value); }
80 template<typename AdvancedEventSelectorsT = Aws::Vector<AdvancedEventSelector>>
81 GetEventDataStoreResult& WithAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { SetAdvancedEventSelectors(std::forward<AdvancedEventSelectorsT>(value)); return *this;}
82 template<typename AdvancedEventSelectorsT = AdvancedEventSelector>
83 GetEventDataStoreResult& AddAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.emplace_back(std::forward<AdvancedEventSelectorsT>(value)); return *this; }
85
87
91 inline bool GetMultiRegionEnabled() const { return m_multiRegionEnabled; }
92 inline void SetMultiRegionEnabled(bool value) { m_multiRegionEnabledHasBeenSet = true; m_multiRegionEnabled = value; }
93 inline GetEventDataStoreResult& WithMultiRegionEnabled(bool value) { SetMultiRegionEnabled(value); return *this;}
95
97
101 inline bool GetOrganizationEnabled() const { return m_organizationEnabled; }
102 inline void SetOrganizationEnabled(bool value) { m_organizationEnabledHasBeenSet = true; m_organizationEnabled = value; }
103 inline GetEventDataStoreResult& WithOrganizationEnabled(bool value) { SetOrganizationEnabled(value); return *this;}
105
107
110 inline int GetRetentionPeriod() const { return m_retentionPeriod; }
111 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
112 inline GetEventDataStoreResult& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
114
116
119 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
120 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
123
125
128 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
129 template<typename CreatedTimestampT = Aws::Utils::DateTime>
130 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
131 template<typename CreatedTimestampT = Aws::Utils::DateTime>
132 GetEventDataStoreResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
134
136
141 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
142 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
143 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
144 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
145 GetEventDataStoreResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
147
149
155 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
156 template<typename KmsKeyIdT = Aws::String>
157 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
158 template<typename KmsKeyIdT = Aws::String>
159 GetEventDataStoreResult& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
161
163
166 inline BillingMode GetBillingMode() const { return m_billingMode; }
167 inline void SetBillingMode(BillingMode value) { m_billingModeHasBeenSet = true; m_billingMode = value; }
170
172
180 inline FederationStatus GetFederationStatus() const { return m_federationStatus; }
181 inline void SetFederationStatus(FederationStatus value) { m_federationStatusHasBeenSet = true; m_federationStatus = value; }
184
186
190 inline const Aws::String& GetFederationRoleArn() const { return m_federationRoleArn; }
191 template<typename FederationRoleArnT = Aws::String>
192 void SetFederationRoleArn(FederationRoleArnT&& value) { m_federationRoleArnHasBeenSet = true; m_federationRoleArn = std::forward<FederationRoleArnT>(value); }
193 template<typename FederationRoleArnT = Aws::String>
194 GetEventDataStoreResult& WithFederationRoleArn(FederationRoleArnT&& value) { SetFederationRoleArn(std::forward<FederationRoleArnT>(value)); return *this;}
196
198
203 inline const Aws::Vector<PartitionKey>& GetPartitionKeys() const { return m_partitionKeys; }
204 template<typename PartitionKeysT = Aws::Vector<PartitionKey>>
205 void SetPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::forward<PartitionKeysT>(value); }
206 template<typename PartitionKeysT = Aws::Vector<PartitionKey>>
207 GetEventDataStoreResult& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
208 template<typename PartitionKeysT = PartitionKey>
209 GetEventDataStoreResult& AddPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value)); return *this; }
211
213
214 inline const Aws::String& GetRequestId() const { return m_requestId; }
215 template<typename RequestIdT = Aws::String>
216 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
217 template<typename RequestIdT = Aws::String>
218 GetEventDataStoreResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
220 private:
221
222 Aws::String m_eventDataStoreArn;
223 bool m_eventDataStoreArnHasBeenSet = false;
224
225 Aws::String m_name;
226 bool m_nameHasBeenSet = false;
227
229 bool m_statusHasBeenSet = false;
230
231 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
232 bool m_advancedEventSelectorsHasBeenSet = false;
233
234 bool m_multiRegionEnabled{false};
235 bool m_multiRegionEnabledHasBeenSet = false;
236
237 bool m_organizationEnabled{false};
238 bool m_organizationEnabledHasBeenSet = false;
239
240 int m_retentionPeriod{0};
241 bool m_retentionPeriodHasBeenSet = false;
242
243 bool m_terminationProtectionEnabled{false};
244 bool m_terminationProtectionEnabledHasBeenSet = false;
245
246 Aws::Utils::DateTime m_createdTimestamp{};
247 bool m_createdTimestampHasBeenSet = false;
248
249 Aws::Utils::DateTime m_updatedTimestamp{};
250 bool m_updatedTimestampHasBeenSet = false;
251
252 Aws::String m_kmsKeyId;
253 bool m_kmsKeyIdHasBeenSet = false;
254
255 BillingMode m_billingMode{BillingMode::NOT_SET};
256 bool m_billingModeHasBeenSet = false;
257
259 bool m_federationStatusHasBeenSet = false;
260
261 Aws::String m_federationRoleArn;
262 bool m_federationRoleArnHasBeenSet = false;
263
264 Aws::Vector<PartitionKey> m_partitionKeys;
265 bool m_partitionKeysHasBeenSet = false;
266
267 Aws::String m_requestId;
268 bool m_requestIdHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace CloudTrail
273} // namespace Aws
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
GetEventDataStoreResult & WithRequestId(RequestIdT &&value)
GetEventDataStoreResult & WithMultiRegionEnabled(bool value)
GetEventDataStoreResult & AddAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
void SetAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
GetEventDataStoreResult & WithTerminationProtectionEnabled(bool value)
GetEventDataStoreResult & WithEventDataStoreArn(EventDataStoreArnT &&value)
GetEventDataStoreResult & WithCreatedTimestamp(CreatedTimestampT &&value)
GetEventDataStoreResult & WithStatus(EventDataStoreStatus value)
GetEventDataStoreResult & WithFederationRoleArn(FederationRoleArnT &&value)
GetEventDataStoreResult & WithName(NameT &&value)
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
AWS_CLOUDTRAIL_API GetEventDataStoreResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEventDataStoreResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
const Aws::Vector< PartitionKey > & GetPartitionKeys() const
AWS_CLOUDTRAIL_API GetEventDataStoreResult()=default
GetEventDataStoreResult & WithPartitionKeys(PartitionKeysT &&value)
GetEventDataStoreResult & AddPartitionKeys(PartitionKeysT &&value)
GetEventDataStoreResult & WithRetentionPeriod(int value)
GetEventDataStoreResult & WithOrganizationEnabled(bool value)
AWS_CLOUDTRAIL_API GetEventDataStoreResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
GetEventDataStoreResult & WithBillingMode(BillingMode value)
GetEventDataStoreResult & WithKmsKeyId(KmsKeyIdT &&value)
GetEventDataStoreResult & WithAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
GetEventDataStoreResult & WithFederationStatus(FederationStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue