AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutEventConfigurationRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/AggregationConfiguration.h>
10#include <aws/cloudtrail/model/ContextKeySelector.h>
11#include <aws/cloudtrail/model/MaxEventSize.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudTrail {
19namespace Model {
20
24 public:
25 AWS_CLOUDTRAIL_API PutEventConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutEventConfiguration"; }
32
33 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetTrailName() const { return m_trailName; }
43 inline bool TrailNameHasBeenSet() const { return m_trailNameHasBeenSet; }
44 template <typename TrailNameT = Aws::String>
45 void SetTrailName(TrailNameT&& value) {
46 m_trailNameHasBeenSet = true;
47 m_trailName = std::forward<TrailNameT>(value);
48 }
49 template <typename TrailNameT = Aws::String>
51 SetTrailName(std::forward<TrailNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetEventDataStore() const { return m_eventDataStore; }
62 inline bool EventDataStoreHasBeenSet() const { return m_eventDataStoreHasBeenSet; }
63 template <typename EventDataStoreT = Aws::String>
64 void SetEventDataStore(EventDataStoreT&& value) {
65 m_eventDataStoreHasBeenSet = true;
66 m_eventDataStore = std::forward<EventDataStoreT>(value);
67 }
68 template <typename EventDataStoreT = Aws::String>
70 SetEventDataStore(std::forward<EventDataStoreT>(value));
71 return *this;
72 }
74
76
81 inline MaxEventSize GetMaxEventSize() const { return m_maxEventSize; }
82 inline bool MaxEventSizeHasBeenSet() const { return m_maxEventSizeHasBeenSet; }
83 inline void SetMaxEventSize(MaxEventSize value) {
84 m_maxEventSizeHasBeenSet = true;
85 m_maxEventSize = value;
86 }
88 SetMaxEventSize(value);
89 return *this;
90 }
92
94
98 inline const Aws::Vector<ContextKeySelector>& GetContextKeySelectors() const { return m_contextKeySelectors; }
99 inline bool ContextKeySelectorsHasBeenSet() const { return m_contextKeySelectorsHasBeenSet; }
100 template <typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
101 void SetContextKeySelectors(ContextKeySelectorsT&& value) {
102 m_contextKeySelectorsHasBeenSet = true;
103 m_contextKeySelectors = std::forward<ContextKeySelectorsT>(value);
104 }
105 template <typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
107 SetContextKeySelectors(std::forward<ContextKeySelectorsT>(value));
108 return *this;
109 }
110 template <typename ContextKeySelectorsT = ContextKeySelector>
112 m_contextKeySelectorsHasBeenSet = true;
113 m_contextKeySelectors.emplace_back(std::forward<ContextKeySelectorsT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Vector<AggregationConfiguration>& GetAggregationConfigurations() const { return m_aggregationConfigurations; }
124 inline bool AggregationConfigurationsHasBeenSet() const { return m_aggregationConfigurationsHasBeenSet; }
125 template <typename AggregationConfigurationsT = Aws::Vector<AggregationConfiguration>>
126 void SetAggregationConfigurations(AggregationConfigurationsT&& value) {
127 m_aggregationConfigurationsHasBeenSet = true;
128 m_aggregationConfigurations = std::forward<AggregationConfigurationsT>(value);
129 }
130 template <typename AggregationConfigurationsT = Aws::Vector<AggregationConfiguration>>
131 PutEventConfigurationRequest& WithAggregationConfigurations(AggregationConfigurationsT&& value) {
132 SetAggregationConfigurations(std::forward<AggregationConfigurationsT>(value));
133 return *this;
134 }
135 template <typename AggregationConfigurationsT = AggregationConfiguration>
136 PutEventConfigurationRequest& AddAggregationConfigurations(AggregationConfigurationsT&& value) {
137 m_aggregationConfigurationsHasBeenSet = true;
138 m_aggregationConfigurations.emplace_back(std::forward<AggregationConfigurationsT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_trailName;
144
145 Aws::String m_eventDataStore;
146
147 MaxEventSize m_maxEventSize{MaxEventSize::NOT_SET};
148
149 Aws::Vector<ContextKeySelector> m_contextKeySelectors;
150
151 Aws::Vector<AggregationConfiguration> m_aggregationConfigurations;
152 bool m_trailNameHasBeenSet = false;
153 bool m_eventDataStoreHasBeenSet = false;
154 bool m_maxEventSizeHasBeenSet = false;
155 bool m_contextKeySelectorsHasBeenSet = false;
156 bool m_aggregationConfigurationsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace CloudTrail
161} // namespace Aws
PutEventConfigurationRequest & AddContextKeySelectors(ContextKeySelectorsT &&value)
PutEventConfigurationRequest & WithEventDataStore(EventDataStoreT &&value)
AWS_CLOUDTRAIL_API PutEventConfigurationRequest()=default
PutEventConfigurationRequest & WithMaxEventSize(MaxEventSize value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ContextKeySelector > & GetContextKeySelectors() const
PutEventConfigurationRequest & AddAggregationConfigurations(AggregationConfigurationsT &&value)
PutEventConfigurationRequest & WithAggregationConfigurations(AggregationConfigurationsT &&value)
const Aws::Vector< AggregationConfiguration > & GetAggregationConfigurations() const
void SetAggregationConfigurations(AggregationConfigurationsT &&value)
PutEventConfigurationRequest & WithTrailName(TrailNameT &&value)
PutEventConfigurationRequest & WithContextKeySelectors(ContextKeySelectorsT &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
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