AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/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 GetEventConfigurationResult() = default;
32
34
38 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
39 template <typename TrailARNT = Aws::String>
40 void SetTrailARN(TrailARNT&& value) {
41 m_trailARNHasBeenSet = true;
42 m_trailARN = std::forward<TrailARNT>(value);
43 }
44 template <typename TrailARNT = Aws::String>
46 SetTrailARN(std::forward<TrailARNT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetEventDataStoreArn() const { return m_eventDataStoreArn; }
57 template <typename EventDataStoreArnT = Aws::String>
58 void SetEventDataStoreArn(EventDataStoreArnT&& value) {
59 m_eventDataStoreArnHasBeenSet = true;
60 m_eventDataStoreArn = std::forward<EventDataStoreArnT>(value);
61 }
62 template <typename EventDataStoreArnT = Aws::String>
64 SetEventDataStoreArn(std::forward<EventDataStoreArnT>(value));
65 return *this;
66 }
68
70
74 inline MaxEventSize GetMaxEventSize() const { return m_maxEventSize; }
75 inline void SetMaxEventSize(MaxEventSize value) {
76 m_maxEventSizeHasBeenSet = true;
77 m_maxEventSize = value;
78 }
80 SetMaxEventSize(value);
81 return *this;
82 }
84
86
90 inline const Aws::Vector<ContextKeySelector>& GetContextKeySelectors() const { return m_contextKeySelectors; }
91 template <typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
92 void SetContextKeySelectors(ContextKeySelectorsT&& value) {
93 m_contextKeySelectorsHasBeenSet = true;
94 m_contextKeySelectors = std::forward<ContextKeySelectorsT>(value);
95 }
96 template <typename ContextKeySelectorsT = Aws::Vector<ContextKeySelector>>
98 SetContextKeySelectors(std::forward<ContextKeySelectorsT>(value));
99 return *this;
100 }
101 template <typename ContextKeySelectorsT = ContextKeySelector>
103 m_contextKeySelectorsHasBeenSet = true;
104 m_contextKeySelectors.emplace_back(std::forward<ContextKeySelectorsT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<AggregationConfiguration>& GetAggregationConfigurations() const { return m_aggregationConfigurations; }
114 template <typename AggregationConfigurationsT = Aws::Vector<AggregationConfiguration>>
115 void SetAggregationConfigurations(AggregationConfigurationsT&& value) {
116 m_aggregationConfigurationsHasBeenSet = true;
117 m_aggregationConfigurations = std::forward<AggregationConfigurationsT>(value);
118 }
119 template <typename AggregationConfigurationsT = Aws::Vector<AggregationConfiguration>>
120 GetEventConfigurationResult& WithAggregationConfigurations(AggregationConfigurationsT&& value) {
121 SetAggregationConfigurations(std::forward<AggregationConfigurationsT>(value));
122 return *this;
123 }
124 template <typename AggregationConfigurationsT = AggregationConfiguration>
125 GetEventConfigurationResult& AddAggregationConfigurations(AggregationConfigurationsT&& value) {
126 m_aggregationConfigurationsHasBeenSet = true;
127 m_aggregationConfigurations.emplace_back(std::forward<AggregationConfigurationsT>(value));
128 return *this;
129 }
131
133
134 inline const Aws::String& GetRequestId() const { return m_requestId; }
135 template <typename RequestIdT = Aws::String>
136 void SetRequestId(RequestIdT&& value) {
137 m_requestIdHasBeenSet = true;
138 m_requestId = std::forward<RequestIdT>(value);
139 }
140 template <typename RequestIdT = Aws::String>
142 SetRequestId(std::forward<RequestIdT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_trailARN;
148
149 Aws::String m_eventDataStoreArn;
150
151 MaxEventSize m_maxEventSize{MaxEventSize::NOT_SET};
152
153 Aws::Vector<ContextKeySelector> m_contextKeySelectors;
154
155 Aws::Vector<AggregationConfiguration> m_aggregationConfigurations;
156
157 Aws::String m_requestId;
158 bool m_trailARNHasBeenSet = false;
159 bool m_eventDataStoreArnHasBeenSet = false;
160 bool m_maxEventSizeHasBeenSet = false;
161 bool m_contextKeySelectorsHasBeenSet = false;
162 bool m_aggregationConfigurationsHasBeenSet = false;
163 bool m_requestIdHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace CloudTrail
168} // 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