AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEventDataStoreResult.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/AdvancedEventSelector.h>
14#include <aws/cloudtrail/model/Tag.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 CreateEventDataStoreResult();
39
40
42
45 inline const Aws::String& GetEventDataStoreArn() const{ return m_eventDataStoreArn; }
46 inline void SetEventDataStoreArn(const Aws::String& value) { m_eventDataStoreArn = value; }
47 inline void SetEventDataStoreArn(Aws::String&& value) { m_eventDataStoreArn = std::move(value); }
48 inline void SetEventDataStoreArn(const char* value) { m_eventDataStoreArn.assign(value); }
50 inline CreateEventDataStoreResult& WithEventDataStoreArn(Aws::String&& value) { SetEventDataStoreArn(std::move(value)); return *this;}
51 inline CreateEventDataStoreResult& WithEventDataStoreArn(const char* value) { SetEventDataStoreArn(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline void SetName(const Aws::String& value) { m_name = value; }
60 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
61 inline void SetName(const char* value) { m_name.assign(value); }
62 inline CreateEventDataStoreResult& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline CreateEventDataStoreResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline CreateEventDataStoreResult& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const EventDataStoreStatus& GetStatus() const{ return m_status; }
72 inline void SetStatus(const EventDataStoreStatus& value) { m_status = value; }
73 inline void SetStatus(EventDataStoreStatus&& value) { m_status = std::move(value); }
74 inline CreateEventDataStoreResult& WithStatus(const EventDataStoreStatus& value) { SetStatus(value); return *this;}
75 inline CreateEventDataStoreResult& WithStatus(EventDataStoreStatus&& value) { SetStatus(std::move(value)); return *this;}
77
79
83 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const{ return m_advancedEventSelectors; }
84 inline void SetAdvancedEventSelectors(const Aws::Vector<AdvancedEventSelector>& value) { m_advancedEventSelectors = value; }
85 inline void SetAdvancedEventSelectors(Aws::Vector<AdvancedEventSelector>&& value) { m_advancedEventSelectors = std::move(value); }
88 inline CreateEventDataStoreResult& AddAdvancedEventSelectors(const AdvancedEventSelector& value) { m_advancedEventSelectors.push_back(value); return *this; }
89 inline CreateEventDataStoreResult& AddAdvancedEventSelectors(AdvancedEventSelector&& value) { m_advancedEventSelectors.push_back(std::move(value)); return *this; }
91
93
97 inline bool GetMultiRegionEnabled() const{ return m_multiRegionEnabled; }
98 inline void SetMultiRegionEnabled(bool value) { m_multiRegionEnabled = value; }
99 inline CreateEventDataStoreResult& WithMultiRegionEnabled(bool value) { SetMultiRegionEnabled(value); return *this;}
101
103
107 inline bool GetOrganizationEnabled() const{ return m_organizationEnabled; }
108 inline void SetOrganizationEnabled(bool value) { m_organizationEnabled = value; }
111
113
116 inline int GetRetentionPeriod() const{ return m_retentionPeriod; }
117 inline void SetRetentionPeriod(int value) { m_retentionPeriod = value; }
118 inline CreateEventDataStoreResult& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
120
122
126 inline bool GetTerminationProtectionEnabled() const{ return m_terminationProtectionEnabled; }
127 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabled = value; }
130
132
133 inline const Aws::Vector<Tag>& GetTagsList() const{ return m_tagsList; }
134 inline void SetTagsList(const Aws::Vector<Tag>& value) { m_tagsList = value; }
135 inline void SetTagsList(Aws::Vector<Tag>&& value) { m_tagsList = std::move(value); }
136 inline CreateEventDataStoreResult& WithTagsList(const Aws::Vector<Tag>& value) { SetTagsList(value); return *this;}
137 inline CreateEventDataStoreResult& WithTagsList(Aws::Vector<Tag>&& value) { SetTagsList(std::move(value)); return *this;}
138 inline CreateEventDataStoreResult& AddTagsList(const Tag& value) { m_tagsList.push_back(value); return *this; }
139 inline CreateEventDataStoreResult& AddTagsList(Tag&& value) { m_tagsList.push_back(std::move(value)); return *this; }
141
143
146 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
147 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
148 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
152
154
159 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; }
160 inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestamp = value; }
161 inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestamp = std::move(value); }
165
167
173 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
174 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; }
175 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = std::move(value); }
176 inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); }
177 inline CreateEventDataStoreResult& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
178 inline CreateEventDataStoreResult& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
179 inline CreateEventDataStoreResult& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
181
183
186 inline const BillingMode& GetBillingMode() const{ return m_billingMode; }
187 inline void SetBillingMode(const BillingMode& value) { m_billingMode = value; }
188 inline void SetBillingMode(BillingMode&& value) { m_billingMode = std::move(value); }
189 inline CreateEventDataStoreResult& WithBillingMode(const BillingMode& value) { SetBillingMode(value); return *this;}
190 inline CreateEventDataStoreResult& WithBillingMode(BillingMode&& value) { SetBillingMode(std::move(value)); return *this;}
192
194
195 inline const Aws::String& GetRequestId() const{ return m_requestId; }
196 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
197 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
198 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
199 inline CreateEventDataStoreResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
200 inline CreateEventDataStoreResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
201 inline CreateEventDataStoreResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
203 private:
204
205 Aws::String m_eventDataStoreArn;
206
207 Aws::String m_name;
208
209 EventDataStoreStatus m_status;
210
211 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
212
213 bool m_multiRegionEnabled;
214
215 bool m_organizationEnabled;
216
217 int m_retentionPeriod;
218
219 bool m_terminationProtectionEnabled;
220
221 Aws::Vector<Tag> m_tagsList;
222
223 Aws::Utils::DateTime m_createdTimestamp;
224
225 Aws::Utils::DateTime m_updatedTimestamp;
226
227 Aws::String m_kmsKeyId;
228
229 BillingMode m_billingMode;
230
231 Aws::String m_requestId;
232 };
233
234} // namespace Model
235} // namespace CloudTrail
236} // namespace Aws
CreateEventDataStoreResult & WithUpdatedTimestamp(const Aws::Utils::DateTime &value)
CreateEventDataStoreResult & AddTagsList(Tag &&value)
CreateEventDataStoreResult & WithBillingMode(BillingMode &&value)
CreateEventDataStoreResult & AddTagsList(const Tag &value)
CreateEventDataStoreResult & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
CreateEventDataStoreResult & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
CreateEventDataStoreResult & WithOrganizationEnabled(bool value)
CreateEventDataStoreResult & WithMultiRegionEnabled(bool value)
AWS_CLOUDTRAIL_API CreateEventDataStoreResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetUpdatedTimestamp(const Aws::Utils::DateTime &value)
CreateEventDataStoreResult & WithRequestId(const char *value)
CreateEventDataStoreResult & AddAdvancedEventSelectors(const AdvancedEventSelector &value)
CreateEventDataStoreResult & WithName(Aws::String &&value)
CreateEventDataStoreResult & WithName(const char *value)
CreateEventDataStoreResult & WithTagsList(Aws::Vector< Tag > &&value)
CreateEventDataStoreResult & WithKmsKeyId(const char *value)
CreateEventDataStoreResult & WithEventDataStoreArn(Aws::String &&value)
CreateEventDataStoreResult & WithName(const Aws::String &value)
CreateEventDataStoreResult & WithAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
CreateEventDataStoreResult & WithEventDataStoreArn(const Aws::String &value)
CreateEventDataStoreResult & WithRequestId(Aws::String &&value)
CreateEventDataStoreResult & WithKmsKeyId(Aws::String &&value)
CreateEventDataStoreResult & WithRequestId(const Aws::String &value)
CreateEventDataStoreResult & WithAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
CreateEventDataStoreResult & WithBillingMode(const BillingMode &value)
CreateEventDataStoreResult & WithTerminationProtectionEnabled(bool value)
CreateEventDataStoreResult & WithStatus(EventDataStoreStatus &&value)
CreateEventDataStoreResult & AddAdvancedEventSelectors(AdvancedEventSelector &&value)
CreateEventDataStoreResult & WithRetentionPeriod(int value)
void SetAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
CreateEventDataStoreResult & WithEventDataStoreArn(const char *value)
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
CreateEventDataStoreResult & WithUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
CreateEventDataStoreResult & WithTagsList(const Aws::Vector< Tag > &value)
CreateEventDataStoreResult & WithKmsKeyId(const Aws::String &value)
CreateEventDataStoreResult & WithStatus(const EventDataStoreStatus &value)
AWS_CLOUDTRAIL_API CreateEventDataStoreResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue