AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PutEventConfigurationResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/AggregationConfiguration.h>
9#include <aws/cloudtrail/model/ContextKeySelector.h>
10#include <aws/cloudtrail/model/MaxEventSize.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudTrail {
26namespace Model {
28 public:
29 AWS_CLOUDTRAIL_API PutEventConfigurationResult() = default;
32
34
37 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
38 template <typename TrailARNT = Aws::String>
39 void SetTrailARN(TrailARNT&& value) {
40 m_trailARNHasBeenSet = true;
41 m_trailARN = std::forward<TrailARNT>(value);
42 }
43 template <typename TrailARNT = Aws::String>
45 SetTrailARN(std::forward<TrailARNT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetEventDataStoreArn() const { return m_eventDataStoreArn; }
56 template <typename EventDataStoreArnT = Aws::String>
57 void SetEventDataStoreArn(EventDataStoreArnT&& value) {
58 m_eventDataStoreArnHasBeenSet = true;
59 m_eventDataStoreArn = std::forward<EventDataStoreArnT>(value);
60 }
61 template <typename EventDataStoreArnT = Aws::String>
63 SetEventDataStoreArn(std::forward<EventDataStoreArnT>(value));
64 return *this;
65 }
67
69
73 inline MaxEventSize GetMaxEventSize() const { return m_maxEventSize; }
74 inline void SetMaxEventSize(MaxEventSize value) {
75 m_maxEventSizeHasBeenSet = true;
76 m_maxEventSize = value;
77 }
79 SetMaxEventSize(value);
80 return *this;
81 }
83
85
89 inline const Aws::Vector<ContextKeySelector>& GetContextKeySelectors() const { return m_contextKeySelectors; }
90 template <typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
91 void SetContextKeySelectors(ContextKeySelectorsT&& value) {
92 m_contextKeySelectorsHasBeenSet = true;
93 m_contextKeySelectors = std::forward<ContextKeySelectorsT>(value);
94 }
95 template <typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
97 SetContextKeySelectors(std::forward<ContextKeySelectorsT>(value));
98 return *this;
99 }
100 template <typename ContextKeySelectorsT = ContextKeySelector>
102 m_contextKeySelectorsHasBeenSet = true;
103 m_contextKeySelectors.emplace_back(std::forward<ContextKeySelectorsT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<AggregationConfiguration>& GetAggregationConfigurations() const { return m_aggregationConfigurations; }
113 template <typename AggregationConfigurationsT = Aws::Vector<AggregationConfiguration>>
114 void SetAggregationConfigurations(AggregationConfigurationsT&& value) {
115 m_aggregationConfigurationsHasBeenSet = true;
116 m_aggregationConfigurations = std::forward<AggregationConfigurationsT>(value);
117 }
118 template <typename AggregationConfigurationsT = Aws::Vector<AggregationConfiguration>>
119 PutEventConfigurationResult& WithAggregationConfigurations(AggregationConfigurationsT&& value) {
120 SetAggregationConfigurations(std::forward<AggregationConfigurationsT>(value));
121 return *this;
122 }
123 template <typename AggregationConfigurationsT = AggregationConfiguration>
124 PutEventConfigurationResult& AddAggregationConfigurations(AggregationConfigurationsT&& value) {
125 m_aggregationConfigurationsHasBeenSet = true;
126 m_aggregationConfigurations.emplace_back(std::forward<AggregationConfigurationsT>(value));
127 return *this;
128 }
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template <typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) {
136 m_requestIdHasBeenSet = true;
137 m_requestId = std::forward<RequestIdT>(value);
138 }
139 template <typename RequestIdT = Aws::String>
141 SetRequestId(std::forward<RequestIdT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_trailARN;
147
148 Aws::String m_eventDataStoreArn;
149
150 MaxEventSize m_maxEventSize{MaxEventSize::NOT_SET};
151
152 Aws::Vector<ContextKeySelector> m_contextKeySelectors;
153
154 Aws::Vector<AggregationConfiguration> m_aggregationConfigurations;
155
156 Aws::String m_requestId;
157 bool m_trailARNHasBeenSet = false;
158 bool m_eventDataStoreArnHasBeenSet = false;
159 bool m_maxEventSizeHasBeenSet = false;
160 bool m_contextKeySelectorsHasBeenSet = false;
161 bool m_aggregationConfigurationsHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace CloudTrail
167} // namespace Aws
PutEventConfigurationResult & WithRequestId(RequestIdT &&value)
PutEventConfigurationResult & WithEventDataStoreArn(EventDataStoreArnT &&value)
PutEventConfigurationResult & WithMaxEventSize(MaxEventSize value)
AWS_CLOUDTRAIL_API PutEventConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutEventConfigurationResult & WithContextKeySelectors(ContextKeySelectorsT &&value)
PutEventConfigurationResult & AddAggregationConfigurations(AggregationConfigurationsT &&value)
PutEventConfigurationResult & AddContextKeySelectors(ContextKeySelectorsT &&value)
AWS_CLOUDTRAIL_API PutEventConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutEventConfigurationResult & WithAggregationConfigurations(AggregationConfigurationsT &&value)
void SetAggregationConfigurations(AggregationConfigurationsT &&value)
const Aws::Vector< ContextKeySelector > & GetContextKeySelectors() const
const Aws::Vector< AggregationConfiguration > & GetAggregationConfigurations() const
AWS_CLOUDTRAIL_API PutEventConfigurationResult()=default
PutEventConfigurationResult & WithTrailARN(TrailARNT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue