AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
GetEventConfigurationResult.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/http/HttpResponse.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 {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CloudTrail {
27namespace Model {
29 public:
30 AWS_CLOUDTRAIL_API GetEventConfigurationResult() = default;
33
35
39 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
40 template <typename TrailARNT = Aws::String>
41 void SetTrailARN(TrailARNT&& value) {
42 m_trailARNHasBeenSet = true;
43 m_trailARN = std::forward<TrailARNT>(value);
44 }
45 template <typename TrailARNT = Aws::String>
47 SetTrailARN(std::forward<TrailARNT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetEventDataStoreArn() const { return m_eventDataStoreArn; }
58 template <typename EventDataStoreArnT = Aws::String>
59 void SetEventDataStoreArn(EventDataStoreArnT&& value) {
60 m_eventDataStoreArnHasBeenSet = true;
61 m_eventDataStoreArn = std::forward<EventDataStoreArnT>(value);
62 }
63 template <typename EventDataStoreArnT = Aws::String>
65 SetEventDataStoreArn(std::forward<EventDataStoreArnT>(value));
66 return *this;
67 }
69
71
75 inline MaxEventSize GetMaxEventSize() const { return m_maxEventSize; }
76 inline void SetMaxEventSize(MaxEventSize value) {
77 m_maxEventSizeHasBeenSet = true;
78 m_maxEventSize = value;
79 }
81 SetMaxEventSize(value);
82 return *this;
83 }
85
87
91 inline const Aws::Vector<ContextKeySelector>& GetContextKeySelectors() const { return m_contextKeySelectors; }
92 template <typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
93 void SetContextKeySelectors(ContextKeySelectorsT&& value) {
94 m_contextKeySelectorsHasBeenSet = true;
95 m_contextKeySelectors = std::forward<ContextKeySelectorsT>(value);
96 }
97 template <typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
99 SetContextKeySelectors(std::forward<ContextKeySelectorsT>(value));
100 return *this;
101 }
102 template <typename ContextKeySelectorsT = ContextKeySelector>
104 m_contextKeySelectorsHasBeenSet = true;
105 m_contextKeySelectors.emplace_back(std::forward<ContextKeySelectorsT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<AggregationConfiguration>& GetAggregationConfigurations() const { return m_aggregationConfigurations; }
115 template <typename AggregationConfigurationsT = Aws::Vector<AggregationConfiguration>>
116 void SetAggregationConfigurations(AggregationConfigurationsT&& value) {
117 m_aggregationConfigurationsHasBeenSet = true;
118 m_aggregationConfigurations = std::forward<AggregationConfigurationsT>(value);
119 }
120 template <typename AggregationConfigurationsT = Aws::Vector<AggregationConfiguration>>
121 GetEventConfigurationResult& WithAggregationConfigurations(AggregationConfigurationsT&& value) {
122 SetAggregationConfigurations(std::forward<AggregationConfigurationsT>(value));
123 return *this;
124 }
125 template <typename AggregationConfigurationsT = AggregationConfiguration>
126 GetEventConfigurationResult& AddAggregationConfigurations(AggregationConfigurationsT&& value) {
127 m_aggregationConfigurationsHasBeenSet = true;
128 m_aggregationConfigurations.emplace_back(std::forward<AggregationConfigurationsT>(value));
129 return *this;
130 }
132
134
135 inline const Aws::String& GetRequestId() const { return m_requestId; }
136 template <typename RequestIdT = Aws::String>
137 void SetRequestId(RequestIdT&& value) {
138 m_requestIdHasBeenSet = true;
139 m_requestId = std::forward<RequestIdT>(value);
140 }
141 template <typename RequestIdT = Aws::String>
143 SetRequestId(std::forward<RequestIdT>(value));
144 return *this;
145 }
147 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
148
149 private:
150 Aws::String m_trailARN;
151
152 Aws::String m_eventDataStoreArn;
153
154 MaxEventSize m_maxEventSize{MaxEventSize::NOT_SET};
155
156 Aws::Vector<ContextKeySelector> m_contextKeySelectors;
157
158 Aws::Vector<AggregationConfiguration> m_aggregationConfigurations;
159
160 Aws::String m_requestId;
161 Aws::Http::HttpResponseCode m_HttpResponseCode;
162 bool m_trailARNHasBeenSet = false;
163 bool m_eventDataStoreArnHasBeenSet = false;
164 bool m_maxEventSizeHasBeenSet = false;
165 bool m_contextKeySelectorsHasBeenSet = false;
166 bool m_aggregationConfigurationsHasBeenSet = false;
167 bool m_requestIdHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace CloudTrail
172} // namespace Aws
GetEventConfigurationResult & WithMaxEventSize(MaxEventSize value)
GetEventConfigurationResult & AddContextKeySelectors(ContextKeySelectorsT &&value)
const Aws::Vector< AggregationConfiguration > & GetAggregationConfigurations() const
GetEventConfigurationResult & WithTrailARN(TrailARNT &&value)
GetEventConfigurationResult & WithContextKeySelectors(ContextKeySelectorsT &&value)
GetEventConfigurationResult & AddAggregationConfigurations(AggregationConfigurationsT &&value)
const Aws::Vector< ContextKeySelector > & GetContextKeySelectors() const
GetEventConfigurationResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDTRAIL_API GetEventConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API GetEventConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API GetEventConfigurationResult()=default
GetEventConfigurationResult & WithAggregationConfigurations(AggregationConfigurationsT &&value)
GetEventConfigurationResult & WithEventDataStoreArn(EventDataStoreArnT &&value)
void SetAggregationConfigurations(AggregationConfigurationsT &&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