AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename EventDataStoreT = Aws::String>
48 void SetEventDataStore(EventDataStoreT&& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = std::forward<EventDataStoreT>(value); }
49 template<typename EventDataStoreT = Aws::String>
50 UpdateEventDataStoreRequest& WithEventDataStore(EventDataStoreT&& value) { SetEventDataStore(std::forward<EventDataStoreT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 UpdateEventDataStoreRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
71 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const { return m_advancedEventSelectors; }
72 inline bool AdvancedEventSelectorsHasBeenSet() const { return m_advancedEventSelectorsHasBeenSet; }
73 template<typename AdvancedEventSelectorsT = Aws::Vector<AdvancedEventSelector>>
74 void SetAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = std::forward<AdvancedEventSelectorsT>(value); }
75 template<typename AdvancedEventSelectorsT = Aws::Vector<AdvancedEventSelector>>
76 UpdateEventDataStoreRequest& WithAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { SetAdvancedEventSelectors(std::forward<AdvancedEventSelectorsT>(value)); return *this;}
77 template<typename AdvancedEventSelectorsT = AdvancedEventSelector>
78 UpdateEventDataStoreRequest& AddAdvancedEventSelectors(AdvancedEventSelectorsT&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.emplace_back(std::forward<AdvancedEventSelectorsT>(value)); return *this; }
80
82
86 inline bool GetMultiRegionEnabled() const { return m_multiRegionEnabled; }
87 inline bool MultiRegionEnabledHasBeenSet() const { return m_multiRegionEnabledHasBeenSet; }
88 inline void SetMultiRegionEnabled(bool value) { m_multiRegionEnabledHasBeenSet = true; m_multiRegionEnabled = value; }
91
93
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
123 inline int GetRetentionPeriod() const { return m_retentionPeriod; }
124 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
125 inline void SetRetentionPeriod(int value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
126 inline UpdateEventDataStoreRequest& WithRetentionPeriod(int value) { SetRetentionPeriod(value); return *this;}
128
130
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
162 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
163 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
164 template<typename KmsKeyIdT = Aws::String>
165 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
166 template<typename KmsKeyIdT = Aws::String>
167 UpdateEventDataStoreRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
169
171
194 inline BillingMode GetBillingMode() const { return m_billingMode; }
195 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
196 inline void SetBillingMode(BillingMode value) { m_billingModeHasBeenSet = true; m_billingMode = value; }
199 private:
200
201 Aws::String m_eventDataStore;
202 bool m_eventDataStoreHasBeenSet = false;
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
208 bool m_advancedEventSelectorsHasBeenSet = false;
209
210 bool m_multiRegionEnabled{false};
211 bool m_multiRegionEnabledHasBeenSet = false;
212
213 bool m_organizationEnabled{false};
214 bool m_organizationEnabledHasBeenSet = false;
215
216 int m_retentionPeriod{0};
217 bool m_retentionPeriodHasBeenSet = false;
218
219 bool m_terminationProtectionEnabled{false};
220 bool m_terminationProtectionEnabledHasBeenSet = false;
221
222 Aws::String m_kmsKeyId;
223 bool m_kmsKeyIdHasBeenSet = false;
224
225 BillingMode m_billingMode{BillingMode::NOT_SET};
226 bool m_billingModeHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace CloudTrail
231} // namespace Aws
void SetAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
UpdateEventDataStoreRequest & AddAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEventDataStoreRequest & WithName(NameT &&value)
UpdateEventDataStoreRequest & WithMultiRegionEnabled(bool value)
UpdateEventDataStoreRequest & WithOrganizationEnabled(bool value)
UpdateEventDataStoreRequest & WithBillingMode(BillingMode value)
UpdateEventDataStoreRequest & WithAdvancedEventSelectors(AdvancedEventSelectorsT &&value)
UpdateEventDataStoreRequest & WithTerminationProtectionEnabled(bool value)
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
UpdateEventDataStoreRequest & WithEventDataStore(EventDataStoreT &&value)
AWS_CLOUDTRAIL_API UpdateEventDataStoreRequest()=default
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
UpdateEventDataStoreRequest & WithKmsKeyId(KmsKeyIdT &&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