AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateTrailResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail {
22namespace Model {
30 public:
31 AWS_CLOUDTRAIL_API UpdateTrailResult() = default;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 UpdateTrailResult& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
58 template <typename S3BucketNameT = Aws::String>
59 void SetS3BucketName(S3BucketNameT&& value) {
60 m_s3BucketNameHasBeenSet = true;
61 m_s3BucketName = std::forward<S3BucketNameT>(value);
62 }
63 template <typename S3BucketNameT = Aws::String>
64 UpdateTrailResult& WithS3BucketName(S3BucketNameT&& value) {
65 SetS3BucketName(std::forward<S3BucketNameT>(value));
66 return *this;
67 }
69
71
77 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
78 template <typename S3KeyPrefixT = Aws::String>
79 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
80 m_s3KeyPrefixHasBeenSet = true;
81 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
82 }
83 template <typename S3KeyPrefixT = Aws::String>
84 UpdateTrailResult& WithS3KeyPrefix(S3KeyPrefixT&& value) {
85 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
97 template <typename SnsTopicARNT = Aws::String>
98 void SetSnsTopicARN(SnsTopicARNT&& value) {
99 m_snsTopicARNHasBeenSet = true;
100 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
101 }
102 template <typename SnsTopicARNT = Aws::String>
103 UpdateTrailResult& WithSnsTopicARN(SnsTopicARNT&& value) {
104 SetSnsTopicARN(std::forward<SnsTopicARNT>(value));
105 return *this;
106 }
108
110
114 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
115 inline void SetIncludeGlobalServiceEvents(bool value) {
116 m_includeGlobalServiceEventsHasBeenSet = true;
117 m_includeGlobalServiceEvents = value;
118 }
121 return *this;
122 }
124
126
129 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
130 inline void SetIsMultiRegionTrail(bool value) {
131 m_isMultiRegionTrailHasBeenSet = true;
132 m_isMultiRegionTrail = value;
133 }
136 return *this;
137 }
139
141
146 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
147 template <typename TrailARNT = Aws::String>
148 void SetTrailARN(TrailARNT&& value) {
149 m_trailARNHasBeenSet = true;
150 m_trailARN = std::forward<TrailARNT>(value);
151 }
152 template <typename TrailARNT = Aws::String>
153 UpdateTrailResult& WithTrailARN(TrailARNT&& value) {
154 SetTrailARN(std::forward<TrailARNT>(value));
155 return *this;
156 }
158
160
163 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
164 inline void SetLogFileValidationEnabled(bool value) {
165 m_logFileValidationEnabledHasBeenSet = true;
166 m_logFileValidationEnabled = value;
167 }
170 return *this;
171 }
173
175
179 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
180 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
181 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
182 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
183 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
184 }
185 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
186 UpdateTrailResult& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
187 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
188 return *this;
189 }
191
193
197 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
198 template <typename CloudWatchLogsRoleArnT = Aws::String>
199 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
200 m_cloudWatchLogsRoleArnHasBeenSet = true;
201 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
202 }
203 template <typename CloudWatchLogsRoleArnT = Aws::String>
204 UpdateTrailResult& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
205 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
206 return *this;
207 }
209
211
218 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
219 template <typename KmsKeyIdT = Aws::String>
220 void SetKmsKeyId(KmsKeyIdT&& value) {
221 m_kmsKeyIdHasBeenSet = true;
222 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
223 }
224 template <typename KmsKeyIdT = Aws::String>
225 UpdateTrailResult& WithKmsKeyId(KmsKeyIdT&& value) {
226 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
227 return *this;
228 }
230
232
235 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
236 inline void SetIsOrganizationTrail(bool value) {
237 m_isOrganizationTrailHasBeenSet = true;
238 m_isOrganizationTrail = value;
239 }
242 return *this;
243 }
245
247
248 inline const Aws::String& GetRequestId() const { return m_requestId; }
249 template <typename RequestIdT = Aws::String>
250 void SetRequestId(RequestIdT&& value) {
251 m_requestIdHasBeenSet = true;
252 m_requestId = std::forward<RequestIdT>(value);
253 }
254 template <typename RequestIdT = Aws::String>
255 UpdateTrailResult& WithRequestId(RequestIdT&& value) {
256 SetRequestId(std::forward<RequestIdT>(value));
257 return *this;
258 }
260 private:
261 Aws::String m_name;
262
263 Aws::String m_s3BucketName;
264
265 Aws::String m_s3KeyPrefix;
266
267 Aws::String m_snsTopicARN;
268
269 bool m_includeGlobalServiceEvents{false};
270
271 bool m_isMultiRegionTrail{false};
272
273 Aws::String m_trailARN;
274
275 bool m_logFileValidationEnabled{false};
276
277 Aws::String m_cloudWatchLogsLogGroupArn;
278
279 Aws::String m_cloudWatchLogsRoleArn;
280
281 Aws::String m_kmsKeyId;
282
283 bool m_isOrganizationTrail{false};
284
285 Aws::String m_requestId;
286 bool m_nameHasBeenSet = false;
287 bool m_s3BucketNameHasBeenSet = false;
288 bool m_s3KeyPrefixHasBeenSet = false;
289 bool m_snsTopicARNHasBeenSet = false;
290 bool m_includeGlobalServiceEventsHasBeenSet = false;
291 bool m_isMultiRegionTrailHasBeenSet = false;
292 bool m_trailARNHasBeenSet = false;
293 bool m_logFileValidationEnabledHasBeenSet = false;
294 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
295 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
296 bool m_kmsKeyIdHasBeenSet = false;
297 bool m_isOrganizationTrailHasBeenSet = false;
298 bool m_requestIdHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace CloudTrail
303} // namespace Aws
const Aws::String & GetSnsTopicARN() const
const Aws::String & GetS3BucketName() const
const Aws::String & GetCloudWatchLogsLogGroupArn() const
AWS_CLOUDTRAIL_API UpdateTrailResult()=default
UpdateTrailResult & WithSnsTopicARN(SnsTopicARNT &&value)
AWS_CLOUDTRAIL_API UpdateTrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetS3BucketName(S3BucketNameT &&value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
const Aws::String & GetS3KeyPrefix() const
UpdateTrailResult & WithTrailARN(TrailARNT &&value)
UpdateTrailResult & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
const Aws::String & GetCloudWatchLogsRoleArn() const
UpdateTrailResult & WithS3BucketName(S3BucketNameT &&value)
UpdateTrailResult & WithIncludeGlobalServiceEvents(bool value)
UpdateTrailResult & WithName(NameT &&value)
UpdateTrailResult & WithKmsKeyId(KmsKeyIdT &&value)
UpdateTrailResult & WithIsMultiRegionTrail(bool value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
UpdateTrailResult & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
UpdateTrailResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDTRAIL_API UpdateTrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateTrailResult & WithIsOrganizationTrail(bool value)
UpdateTrailResult & WithLogFileValidationEnabled(bool value)
UpdateTrailResult & WithS3KeyPrefix(S3KeyPrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue