AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEventDataStoreRequest.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 <utility>
14
15namespace Aws
16{
17namespace CloudTrail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDTRAIL_API UpdateEventDataStoreRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateEventDataStore"; }
34
35 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetEventDataStore() const{ return m_eventDataStore; }
46 inline bool EventDataStoreHasBeenSet() const { return m_eventDataStoreHasBeenSet; }
47 inline void SetEventDataStore(const Aws::String& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = value; }
48 inline void SetEventDataStore(Aws::String&& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = std::move(value); }
49 inline void SetEventDataStore(const char* value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore.assign(value); }
50 inline UpdateEventDataStoreRequest& WithEventDataStore(const Aws::String& value) { SetEventDataStore(value); return *this;}
51 inline UpdateEventDataStoreRequest& WithEventDataStore(Aws::String&& value) { SetEventDataStore(std::move(value)); return *this;}
52 inline UpdateEventDataStoreRequest& WithEventDataStore(const char* value) { SetEventDataStore(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline UpdateEventDataStoreRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline UpdateEventDataStoreRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline UpdateEventDataStoreRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
75 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const{ return m_advancedEventSelectors; }
76 inline bool AdvancedEventSelectorsHasBeenSet() const { return m_advancedEventSelectorsHasBeenSet; }
77 inline void SetAdvancedEventSelectors(const Aws::Vector<AdvancedEventSelector>& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = value; }
78 inline void SetAdvancedEventSelectors(Aws::Vector<AdvancedEventSelector>&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = std::move(value); }
81 inline UpdateEventDataStoreRequest& AddAdvancedEventSelectors(const AdvancedEventSelector& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(value); return *this; }
82 inline UpdateEventDataStoreRequest& AddAdvancedEventSelectors(AdvancedEventSelector&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(std::move(value)); return *this; }
84
86
90 inline bool GetMultiRegionEnabled() const{ return m_multiRegionEnabled; }
91 inline bool MultiRegionEnabledHasBeenSet() const { return m_multiRegionEnabledHasBeenSet; }
92 inline void SetMultiRegionEnabled(bool value) { m_multiRegionEnabledHasBeenSet = true; m_multiRegionEnabled = value; }
95
97
104 inline bool GetOrganizationEnabled() const{ return m_organizationEnabled; }
105 inline bool OrganizationEnabledHasBeenSet() const { return m_organizationEnabledHasBeenSet; }
106 inline void SetOrganizationEnabled(bool value) { m_organizationEnabledHasBeenSet = true; m_organizationEnabled = value; }
109
111
127 inline int GetRetentionPeriod() const{ return m_retentionPeriod; }
128 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
129 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
130 inline UpdateEventDataStoreRequest& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
132
134
138 inline bool GetTerminationProtectionEnabled() const{ return m_terminationProtectionEnabled; }
139 inline bool TerminationProtectionEnabledHasBeenSet() const { return m_terminationProtectionEnabledHasBeenSet; }
140 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
143
145
166 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
167 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
168 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
169 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
170 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
171 inline UpdateEventDataStoreRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
172 inline UpdateEventDataStoreRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
173 inline UpdateEventDataStoreRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
175
177
200 inline const BillingMode& GetBillingMode() const{ return m_billingMode; }
201 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
202 inline void SetBillingMode(const BillingMode& value) { m_billingModeHasBeenSet = true; m_billingMode = value; }
203 inline void SetBillingMode(BillingMode&& value) { m_billingModeHasBeenSet = true; m_billingMode = std::move(value); }
204 inline UpdateEventDataStoreRequest& WithBillingMode(const BillingMode& value) { SetBillingMode(value); return *this;}
205 inline UpdateEventDataStoreRequest& WithBillingMode(BillingMode&& value) { SetBillingMode(std::move(value)); return *this;}
207 private:
208
209 Aws::String m_eventDataStore;
210 bool m_eventDataStoreHasBeenSet = false;
211
212 Aws::String m_name;
213 bool m_nameHasBeenSet = false;
214
215 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
216 bool m_advancedEventSelectorsHasBeenSet = false;
217
218 bool m_multiRegionEnabled;
219 bool m_multiRegionEnabledHasBeenSet = false;
220
221 bool m_organizationEnabled;
222 bool m_organizationEnabledHasBeenSet = false;
223
224 int m_retentionPeriod;
225 bool m_retentionPeriodHasBeenSet = false;
226
227 bool m_terminationProtectionEnabled;
228 bool m_terminationProtectionEnabledHasBeenSet = false;
229
230 Aws::String m_kmsKeyId;
231 bool m_kmsKeyIdHasBeenSet = false;
232
233 BillingMode m_billingMode;
234 bool m_billingModeHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace CloudTrail
239} // namespace Aws
UpdateEventDataStoreRequest & WithAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
UpdateEventDataStoreRequest & WithEventDataStore(Aws::String &&value)
UpdateEventDataStoreRequest & WithEventDataStore(const char *value)
UpdateEventDataStoreRequest & WithName(const Aws::String &value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEventDataStoreRequest & WithName(const char *value)
UpdateEventDataStoreRequest & WithMultiRegionEnabled(bool value)
void SetAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
UpdateEventDataStoreRequest & WithKmsKeyId(const Aws::String &value)
UpdateEventDataStoreRequest & AddAdvancedEventSelectors(const AdvancedEventSelector &value)
UpdateEventDataStoreRequest & WithBillingMode(const BillingMode &value)
UpdateEventDataStoreRequest & AddAdvancedEventSelectors(AdvancedEventSelector &&value)
UpdateEventDataStoreRequest & WithOrganizationEnabled(bool value)
void SetAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
UpdateEventDataStoreRequest & WithName(Aws::String &&value)
UpdateEventDataStoreRequest & WithTerminationProtectionEnabled(bool value)
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
UpdateEventDataStoreRequest & WithBillingMode(BillingMode &&value)
UpdateEventDataStoreRequest & WithKmsKeyId(const char *value)
UpdateEventDataStoreRequest & WithKmsKeyId(Aws::String &&value)
UpdateEventDataStoreRequest & WithEventDataStore(const Aws::String &value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
UpdateEventDataStoreRequest & WithAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
UpdateEventDataStoreRequest & 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