AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateEventDataStoreRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
72 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const { return m_advancedEventSelectors; }
73 inline bool AdvancedEventSelectorsHasBeenSet() const { return m_advancedEventSelectorsHasBeenSet; }
74 template<typename AdvancedEventSelectorsT = Aws::Vector<AdvancedEventSelector>>
75 void SetAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = std::forward<AdvancedEventSelectorsT>(value); }
76 template<typename AdvancedEventSelectorsT = Aws::Vector<AdvancedEventSelector>>
77 CreateEventDataStoreRequest& WithAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { SetAdvancedEventSelectors(std::forward<AdvancedEventSelectorsT>(value)); return *this;}
78 template<typename AdvancedEventSelectorsT = AdvancedEventSelector>
79 CreateEventDataStoreRequest& AddAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.emplace_back(std::forward<AdvancedEventSelectorsT>(value)); return *this; }
81
83
87 inline bool GetMultiRegionEnabled() const { return m_multiRegionEnabled; }
88 inline bool MultiRegionEnabledHasBeenSet() const { return m_multiRegionEnabledHasBeenSet; }
89 inline void SetMultiRegionEnabled(bool value) { m_multiRegionEnabledHasBeenSet = true; m_multiRegionEnabled = value; }
92
94
98 inline bool GetOrganizationEnabled() const { return m_organizationEnabled; }
99 inline bool OrganizationEnabledHasBeenSet() const { return m_organizationEnabledHasBeenSet; }
100 inline void SetOrganizationEnabled(bool value) { m_organizationEnabledHasBeenSet = true; m_organizationEnabled = value; }
103
105
122 inline int GetRetentionPeriod() const { return m_retentionPeriod; }
123 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
124 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
125 inline CreateEventDataStoreRequest& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
127
129
134 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
135 inline bool TerminationProtectionEnabledHasBeenSet() const { return m_terminationProtectionEnabledHasBeenSet; }
136 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
139
141
142 inline const Aws::Vector<Tag>& GetTagsList() const { return m_tagsList; }
143 inline bool TagsListHasBeenSet() const { return m_tagsListHasBeenSet; }
144 template<typename TagsListT = Aws::Vector<Tag>>
145 void SetTagsList(TagsListT&& value) { m_tagsListHasBeenSet = true; m_tagsList = std::forward<TagsListT>(value); }
146 template<typename TagsListT = Aws::Vector<Tag>>
147 CreateEventDataStoreRequest& WithTagsList(TagsListT&& value) { SetTagsList(std::forward<TagsListT>(value)); return *this;}
148 template<typename TagsListT = Tag>
149 CreateEventDataStoreRequest& AddTagsList(TagsListT&& value) { m_tagsListHasBeenSet = true; m_tagsList.emplace_back(std::forward<TagsListT>(value)); return *this; }
151
153
174 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
175 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
176 template<typename KmsKeyIdT = Aws::String>
177 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
178 template<typename KmsKeyIdT = Aws::String>
179 CreateEventDataStoreRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
181
183
187 inline bool GetStartIngestion() const { return m_startIngestion; }
188 inline bool StartIngestionHasBeenSet() const { return m_startIngestionHasBeenSet; }
189 inline void SetStartIngestion(bool value) { m_startIngestionHasBeenSet = true; m_startIngestion = value; }
190 inline CreateEventDataStoreRequest& WithStartIngestion(bool value) { SetStartIngestion(value); return *this;}
192
194
211 inline BillingMode GetBillingMode() const { return m_billingMode; }
212 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
213 inline void SetBillingMode(BillingMode value) { m_billingModeHasBeenSet = true; m_billingMode = value; }
216 private:
217
218 Aws::String m_name;
219 bool m_nameHasBeenSet = false;
220
221 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
222 bool m_advancedEventSelectorsHasBeenSet = false;
223
224 bool m_multiRegionEnabled{false};
225 bool m_multiRegionEnabledHasBeenSet = false;
226
227 bool m_organizationEnabled{false};
228 bool m_organizationEnabledHasBeenSet = false;
229
230 int m_retentionPeriod{0};
231 bool m_retentionPeriodHasBeenSet = false;
232
233 bool m_terminationProtectionEnabled{false};
234 bool m_terminationProtectionEnabledHasBeenSet = false;
235
236 Aws::Vector<Tag> m_tagsList;
237 bool m_tagsListHasBeenSet = false;
238
239 Aws::String m_kmsKeyId;
240 bool m_kmsKeyIdHasBeenSet = false;
241
242 bool m_startIngestion{false};
243 bool m_startIngestionHasBeenSet = false;
244
245 BillingMode m_billingMode{BillingMode::NOT_SET};
246 bool m_billingModeHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace CloudTrail
251} // namespace Aws
CreateEventDataStoreRequest & AddAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
CreateEventDataStoreRequest & WithOrganizationEnabled(bool value)
CreateEventDataStoreRequest & WithMultiRegionEnabled(bool value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
CreateEventDataStoreRequest & WithTerminationProtectionEnabled(bool value)
void SetAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
CreateEventDataStoreRequest & WithTagsList(TagsListT &&value)
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
CreateEventDataStoreRequest & WithBillingMode(BillingMode value)
CreateEventDataStoreRequest & WithAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEventDataStoreRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateEventDataStoreRequest & WithName(NameT &&value)
CreateEventDataStoreRequest & AddTagsList(TagsListT &&value)
AWS_CLOUDTRAIL_API CreateEventDataStoreRequest()=default
CreateEventDataStoreRequest & WithStartIngestion(bool 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