AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEventDataStoreRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/BillingMode.h>
12#include <aws/cloudtrail/model/AdvancedEventSelector.h>
13#include <aws/cloudtrail/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudTrail
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDTRAIL_API CreateEventDataStoreRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateEventDataStore"; }
35
36 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateEventDataStoreRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateEventDataStoreRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateEventDataStoreRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
74 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const{ return m_advancedEventSelectors; }
75 inline bool AdvancedEventSelectorsHasBeenSet() const { return m_advancedEventSelectorsHasBeenSet; }
76 inline void SetAdvancedEventSelectors(const Aws::Vector<AdvancedEventSelector>& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = value; }
77 inline void SetAdvancedEventSelectors(Aws::Vector<AdvancedEventSelector>&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = std::move(value); }
80 inline CreateEventDataStoreRequest& AddAdvancedEventSelectors(const AdvancedEventSelector& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(value); return *this; }
81 inline CreateEventDataStoreRequest& AddAdvancedEventSelectors(AdvancedEventSelector&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(std::move(value)); return *this; }
83
85
89 inline bool GetMultiRegionEnabled() const{ return m_multiRegionEnabled; }
90 inline bool MultiRegionEnabledHasBeenSet() const { return m_multiRegionEnabledHasBeenSet; }
91 inline void SetMultiRegionEnabled(bool value) { m_multiRegionEnabledHasBeenSet = true; m_multiRegionEnabled = value; }
94
96
100 inline bool GetOrganizationEnabled() const{ return m_organizationEnabled; }
101 inline bool OrganizationEnabledHasBeenSet() const { return m_organizationEnabledHasBeenSet; }
102 inline void SetOrganizationEnabled(bool value) { m_organizationEnabledHasBeenSet = true; m_organizationEnabled = value; }
105
107
124 inline int GetRetentionPeriod() const{ return m_retentionPeriod; }
125 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
126 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
127 inline CreateEventDataStoreRequest& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
129
131
136 inline bool GetTerminationProtectionEnabled() const{ return m_terminationProtectionEnabled; }
137 inline bool TerminationProtectionEnabledHasBeenSet() const { return m_terminationProtectionEnabledHasBeenSet; }
138 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
141
143
144 inline const Aws::Vector<Tag>& GetTagsList() const{ return m_tagsList; }
145 inline bool TagsListHasBeenSet() const { return m_tagsListHasBeenSet; }
146 inline void SetTagsList(const Aws::Vector<Tag>& value) { m_tagsListHasBeenSet = true; m_tagsList = value; }
147 inline void SetTagsList(Aws::Vector<Tag>&& value) { m_tagsListHasBeenSet = true; m_tagsList = std::move(value); }
148 inline CreateEventDataStoreRequest& WithTagsList(const Aws::Vector<Tag>& value) { SetTagsList(value); return *this;}
149 inline CreateEventDataStoreRequest& WithTagsList(Aws::Vector<Tag>&& value) { SetTagsList(std::move(value)); return *this;}
150 inline CreateEventDataStoreRequest& AddTagsList(const Tag& value) { m_tagsListHasBeenSet = true; m_tagsList.push_back(value); return *this; }
151 inline CreateEventDataStoreRequest& AddTagsList(Tag&& value) { m_tagsListHasBeenSet = true; m_tagsList.push_back(std::move(value)); return *this; }
153
155
176 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
177 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
178 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
179 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
180 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
181 inline CreateEventDataStoreRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
182 inline CreateEventDataStoreRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
183 inline CreateEventDataStoreRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
185
187
191 inline bool GetStartIngestion() const{ return m_startIngestion; }
192 inline bool StartIngestionHasBeenSet() const { return m_startIngestionHasBeenSet; }
193 inline void SetStartIngestion(bool value) { m_startIngestionHasBeenSet = true; m_startIngestion = value; }
194 inline CreateEventDataStoreRequest& WithStartIngestion(bool value) { SetStartIngestion(value); return *this;}
196
198
215 inline const BillingMode& GetBillingMode() const{ return m_billingMode; }
216 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
217 inline void SetBillingMode(const BillingMode& value) { m_billingModeHasBeenSet = true; m_billingMode = value; }
218 inline void SetBillingMode(BillingMode&& value) { m_billingModeHasBeenSet = true; m_billingMode = std::move(value); }
219 inline CreateEventDataStoreRequest& WithBillingMode(const BillingMode& value) { SetBillingMode(value); return *this;}
220 inline CreateEventDataStoreRequest& WithBillingMode(BillingMode&& value) { SetBillingMode(std::move(value)); return *this;}
222 private:
223
224 Aws::String m_name;
225 bool m_nameHasBeenSet = false;
226
227 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
228 bool m_advancedEventSelectorsHasBeenSet = false;
229
230 bool m_multiRegionEnabled;
231 bool m_multiRegionEnabledHasBeenSet = false;
232
233 bool m_organizationEnabled;
234 bool m_organizationEnabledHasBeenSet = false;
235
236 int m_retentionPeriod;
237 bool m_retentionPeriodHasBeenSet = false;
238
239 bool m_terminationProtectionEnabled;
240 bool m_terminationProtectionEnabledHasBeenSet = false;
241
242 Aws::Vector<Tag> m_tagsList;
243 bool m_tagsListHasBeenSet = false;
244
245 Aws::String m_kmsKeyId;
246 bool m_kmsKeyIdHasBeenSet = false;
247
248 bool m_startIngestion;
249 bool m_startIngestionHasBeenSet = false;
250
251 BillingMode m_billingMode;
252 bool m_billingModeHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace CloudTrail
257} // namespace Aws
CreateEventDataStoreRequest & WithOrganizationEnabled(bool value)
CreateEventDataStoreRequest & WithMultiRegionEnabled(bool value)
CreateEventDataStoreRequest & WithName(Aws::String &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
CreateEventDataStoreRequest & WithKmsKeyId(const Aws::String &value)
CreateEventDataStoreRequest & WithTerminationProtectionEnabled(bool value)
CreateEventDataStoreRequest & WithAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
void SetAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
CreateEventDataStoreRequest & WithName(const Aws::String &value)
CreateEventDataStoreRequest & AddTagsList(Tag &&value)
CreateEventDataStoreRequest & WithBillingMode(const BillingMode &value)
CreateEventDataStoreRequest & AddAdvancedEventSelectors(AdvancedEventSelector &&value)
CreateEventDataStoreRequest & WithAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
CreateEventDataStoreRequest & WithKmsKeyId(Aws::String &&value)
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
CreateEventDataStoreRequest & AddTagsList(const Tag &value)
CreateEventDataStoreRequest & WithTagsList(const Aws::Vector< Tag > &value)
CreateEventDataStoreRequest & AddAdvancedEventSelectors(const AdvancedEventSelector &value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEventDataStoreRequest & WithName(const char *value)
CreateEventDataStoreRequest & WithStartIngestion(bool value)
CreateEventDataStoreRequest & WithBillingMode(BillingMode &&value)
CreateEventDataStoreRequest & WithKmsKeyId(const char *value)
CreateEventDataStoreRequest & WithTagsList(Aws::Vector< Tag > &&value)
void SetAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
CreateEventDataStoreRequest & WithRetentionPeriod(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector