AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
UpdateTrailRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudTrail {
15namespace Model {
16
23 public:
24 AWS_CLOUDTRAIL_API UpdateTrailRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateTrail"; }
31
32 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
33
35
37
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template <typename NameT = Aws::String>
53 void SetName(NameT&& value) {
54 m_nameHasBeenSet = true;
55 m_name = std::forward<NameT>(value);
56 }
57 template <typename NameT = Aws::String>
58 UpdateTrailRequest& WithName(NameT&& value) {
59 SetName(std::forward<NameT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
72 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
73 template <typename S3BucketNameT = Aws::String>
74 void SetS3BucketName(S3BucketNameT&& value) {
75 m_s3BucketNameHasBeenSet = true;
76 m_s3BucketName = std::forward<S3BucketNameT>(value);
77 }
78 template <typename S3BucketNameT = Aws::String>
79 UpdateTrailRequest& WithS3BucketName(S3BucketNameT&& value) {
80 SetS3BucketName(std::forward<S3BucketNameT>(value));
81 return *this;
82 }
84
86
92 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
93 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
94 template <typename S3KeyPrefixT = Aws::String>
95 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
96 m_s3KeyPrefixHasBeenSet = true;
97 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
98 }
99 template <typename S3KeyPrefixT = Aws::String>
100 UpdateTrailRequest& WithS3KeyPrefix(S3KeyPrefixT&& value) {
101 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetSnsTopicName() const { return m_snsTopicName; }
112 inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
113 template <typename SnsTopicNameT = Aws::String>
114 void SetSnsTopicName(SnsTopicNameT&& value) {
115 m_snsTopicNameHasBeenSet = true;
116 m_snsTopicName = std::forward<SnsTopicNameT>(value);
117 }
118 template <typename SnsTopicNameT = Aws::String>
119 UpdateTrailRequest& WithSnsTopicName(SnsTopicNameT&& value) {
120 SetSnsTopicName(std::forward<SnsTopicNameT>(value));
121 return *this;
122 }
124
126
132 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
133 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
134 inline void SetIncludeGlobalServiceEvents(bool value) {
135 m_includeGlobalServiceEventsHasBeenSet = true;
136 m_includeGlobalServiceEvents = value;
137 }
140 return *this;
141 }
143
145
154 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
155 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
156 inline void SetIsMultiRegionTrail(bool value) {
157 m_isMultiRegionTrailHasBeenSet = true;
158 m_isMultiRegionTrail = value;
159 }
162 return *this;
163 }
165
167
178 inline bool GetEnableLogFileValidation() const { return m_enableLogFileValidation; }
179 inline bool EnableLogFileValidationHasBeenSet() const { return m_enableLogFileValidationHasBeenSet; }
180 inline void SetEnableLogFileValidation(bool value) {
181 m_enableLogFileValidationHasBeenSet = true;
182 m_enableLogFileValidation = value;
183 }
186 return *this;
187 }
189
191
197 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
198 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
199 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
200 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
201 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
202 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
203 }
204 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
205 UpdateTrailRequest& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
206 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
217 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
218 template <typename CloudWatchLogsRoleArnT = Aws::String>
219 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
220 m_cloudWatchLogsRoleArnHasBeenSet = true;
221 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
222 }
223 template <typename CloudWatchLogsRoleArnT = Aws::String>
224 UpdateTrailRequest& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
225 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
226 return *this;
227 }
229
231
244 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
245 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
246 template <typename KmsKeyIdT = Aws::String>
247 void SetKmsKeyId(KmsKeyIdT&& value) {
248 m_kmsKeyIdHasBeenSet = true;
249 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
250 }
251 template <typename KmsKeyIdT = Aws::String>
252 UpdateTrailRequest& WithKmsKeyId(KmsKeyIdT&& value) {
253 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
254 return *this;
255 }
257
259
273 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
274 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
275 inline void SetIsOrganizationTrail(bool value) {
276 m_isOrganizationTrailHasBeenSet = true;
277 m_isOrganizationTrail = value;
278 }
281 return *this;
282 }
284
286
293 inline bool GetRecursiveLogging() const { return m_recursiveLogging; }
294 inline bool RecursiveLoggingHasBeenSet() const { return m_recursiveLoggingHasBeenSet; }
295 inline void SetRecursiveLogging(bool value) {
296 m_recursiveLoggingHasBeenSet = true;
297 m_recursiveLogging = value;
298 }
300 SetRecursiveLogging(value);
301 return *this;
302 }
304 private:
305 Aws::String m_name;
306
307 Aws::String m_s3BucketName;
308
309 Aws::String m_s3KeyPrefix;
310
311 Aws::String m_snsTopicName;
312
313 bool m_includeGlobalServiceEvents{false};
314
315 bool m_isMultiRegionTrail{false};
316
317 bool m_enableLogFileValidation{false};
318
319 Aws::String m_cloudWatchLogsLogGroupArn;
320
321 Aws::String m_cloudWatchLogsRoleArn;
322
323 Aws::String m_kmsKeyId;
324
325 bool m_isOrganizationTrail{false};
326
327 bool m_recursiveLogging{false};
328 bool m_nameHasBeenSet = false;
329 bool m_s3BucketNameHasBeenSet = false;
330 bool m_s3KeyPrefixHasBeenSet = false;
331 bool m_snsTopicNameHasBeenSet = false;
332 bool m_includeGlobalServiceEventsHasBeenSet = false;
333 bool m_isMultiRegionTrailHasBeenSet = false;
334 bool m_enableLogFileValidationHasBeenSet = false;
335 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
336 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
337 bool m_kmsKeyIdHasBeenSet = false;
338 bool m_isOrganizationTrailHasBeenSet = false;
339 bool m_recursiveLoggingHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace CloudTrail
344} // namespace Aws
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetCloudWatchLogsRoleArn() const
virtual const char * GetServiceRequestName() const override
UpdateTrailRequest & WithIncludeGlobalServiceEvents(bool value)
AWS_CLOUDTRAIL_API UpdateTrailRequest()=default
const Aws::String & GetCloudWatchLogsLogGroupArn() const
UpdateTrailRequest & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
UpdateTrailRequest & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
UpdateTrailRequest & WithName(NameT &&value)
UpdateTrailRequest & WithS3BucketName(S3BucketNameT &&value)
UpdateTrailRequest & WithRecursiveLogging(bool value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
UpdateTrailRequest & WithSnsTopicName(SnsTopicNameT &&value)
UpdateTrailRequest & WithKmsKeyId(KmsKeyIdT &&value)
UpdateTrailRequest & WithIsOrganizationTrail(bool value)
UpdateTrailRequest & WithIsMultiRegionTrail(bool value)
UpdateTrailRequest & WithEnableLogFileValidation(bool value)
UpdateTrailRequest & WithS3KeyPrefix(S3KeyPrefixT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String