AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateEventDataStoreResult.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 <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace CloudTrail
30{
31namespace Model
32{
34 {
35 public:
36 AWS_CLOUDTRAIL_API UpdateEventDataStoreResult() = default;
39
40
42
45 inline const Aws::String& GetEventDataStoreArn() const { return m_eventDataStoreArn; }
46 template<typename EventDataStoreArnT = Aws::String>
47 void SetEventDataStoreArn(EventDataStoreArnT&& value) { m_eventDataStoreArnHasBeenSet = true; m_eventDataStoreArn = std::forward<EventDataStoreArnT>(value); }
48 template<typename EventDataStoreArnT = Aws::String>
49 UpdateEventDataStoreResult& WithEventDataStoreArn(EventDataStoreArnT&& value) { SetEventDataStoreArn(std::forward<EventDataStoreArnT>(value)); return *this;}
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 UpdateEventDataStoreResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline EventDataStoreStatus GetStatus() const { return m_status; }
68 inline void SetStatus(EventDataStoreStatus value) { m_statusHasBeenSet = true; m_status = value; }
71
73
76 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const { return m_advancedEventSelectors; }
77 template<typename AdvancedEventSelectorsT = Aws::Vector<AdvancedEventSelector>>
78 void SetAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = std::forward<AdvancedEventSelectorsT>(value); }
79 template<typename AdvancedEventSelectorsT = Aws::Vector<AdvancedEventSelector>>
80 UpdateEventDataStoreResult& WithAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { SetAdvancedEventSelectors(std::forward<AdvancedEventSelectorsT>(value)); return *this;}
81 template<typename AdvancedEventSelectorsT = AdvancedEventSelector>
82 UpdateEventDataStoreResult& AddAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.emplace_back(std::forward<AdvancedEventSelectorsT>(value)); return *this; }
84
86
90 inline bool GetMultiRegionEnabled() const { return m_multiRegionEnabled; }
91 inline void SetMultiRegionEnabled(bool value) { m_multiRegionEnabledHasBeenSet = true; m_multiRegionEnabled = value; }
92 inline UpdateEventDataStoreResult& WithMultiRegionEnabled(bool value) { SetMultiRegionEnabled(value); return *this;}
94
96
100 inline bool GetOrganizationEnabled() const { return m_organizationEnabled; }
101 inline void SetOrganizationEnabled(bool value) { m_organizationEnabledHasBeenSet = true; m_organizationEnabled = value; }
104
106
109 inline int GetRetentionPeriod() const { return m_retentionPeriod; }
110 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
111 inline UpdateEventDataStoreResult& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
113
115
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 UpdateEventDataStoreResult& 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 UpdateEventDataStoreResult& 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 UpdateEventDataStoreResult& 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 UpdateEventDataStoreResult& WithFederationRoleArn(FederationRoleArnT&& value) { SetFederationRoleArn(std::forward<FederationRoleArnT>(value)); return *this;}
196
198
199 inline const Aws::String& GetRequestId() const { return m_requestId; }
200 template<typename RequestIdT = Aws::String>
201 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
202 template<typename RequestIdT = Aws::String>
203 UpdateEventDataStoreResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
205 private:
206
207 Aws::String m_eventDataStoreArn;
208 bool m_eventDataStoreArnHasBeenSet = false;
209
210 Aws::String m_name;
211 bool m_nameHasBeenSet = false;
212
214 bool m_statusHasBeenSet = false;
215
216 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
217 bool m_advancedEventSelectorsHasBeenSet = false;
218
219 bool m_multiRegionEnabled{false};
220 bool m_multiRegionEnabledHasBeenSet = false;
221
222 bool m_organizationEnabled{false};
223 bool m_organizationEnabledHasBeenSet = false;
224
225 int m_retentionPeriod{0};
226 bool m_retentionPeriodHasBeenSet = false;
227
228 bool m_terminationProtectionEnabled{false};
229 bool m_terminationProtectionEnabledHasBeenSet = false;
230
231 Aws::Utils::DateTime m_createdTimestamp{};
232 bool m_createdTimestampHasBeenSet = false;
233
234 Aws::Utils::DateTime m_updatedTimestamp{};
235 bool m_updatedTimestampHasBeenSet = false;
236
237 Aws::String m_kmsKeyId;
238 bool m_kmsKeyIdHasBeenSet = false;
239
240 BillingMode m_billingMode{BillingMode::NOT_SET};
241 bool m_billingModeHasBeenSet = false;
242
244 bool m_federationStatusHasBeenSet = false;
245
246 Aws::String m_federationRoleArn;
247 bool m_federationRoleArnHasBeenSet = false;
248
249 Aws::String m_requestId;
250 bool m_requestIdHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace CloudTrail
255} // namespace Aws
UpdateEventDataStoreResult & WithFederationStatus(FederationStatus value)
UpdateEventDataStoreResult & WithTerminationProtectionEnabled(bool value)
UpdateEventDataStoreResult & AddAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
UpdateEventDataStoreResult & WithName(NameT &&value)
UpdateEventDataStoreResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
AWS_CLOUDTRAIL_API UpdateEventDataStoreResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateEventDataStoreResult & WithKmsKeyId(KmsKeyIdT &&value)
AWS_CLOUDTRAIL_API UpdateEventDataStoreResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateEventDataStoreResult & WithFederationRoleArn(FederationRoleArnT &&value)
UpdateEventDataStoreResult & WithStatus(EventDataStoreStatus value)
UpdateEventDataStoreResult & WithEventDataStoreArn(EventDataStoreArnT &&value)
UpdateEventDataStoreResult & WithAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
UpdateEventDataStoreResult & WithMultiRegionEnabled(bool value)
UpdateEventDataStoreResult & WithBillingMode(BillingMode value)
void SetAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
UpdateEventDataStoreResult & WithRequestId(RequestIdT &&value)
UpdateEventDataStoreResult & WithRetentionPeriod(int value)
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
AWS_CLOUDTRAIL_API UpdateEventDataStoreResult()=default
UpdateEventDataStoreResult & WithCreatedTimestamp(CreatedTimestampT &&value)
UpdateEventDataStoreResult & WithOrganizationEnabled(bool 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