AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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
130 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
131 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
132 inline void SetIncludeGlobalServiceEvents(bool value) {
133 m_includeGlobalServiceEventsHasBeenSet = true;
134 m_includeGlobalServiceEvents = value;
135 }
138 return *this;
139 }
141
143
152 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
153 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
154 inline void SetIsMultiRegionTrail(bool value) {
155 m_isMultiRegionTrailHasBeenSet = true;
156 m_isMultiRegionTrail = value;
157 }
160 return *this;
161 }
163
165
176 inline bool GetEnableLogFileValidation() const { return m_enableLogFileValidation; }
177 inline bool EnableLogFileValidationHasBeenSet() const { return m_enableLogFileValidationHasBeenSet; }
178 inline void SetEnableLogFileValidation(bool value) {
179 m_enableLogFileValidationHasBeenSet = true;
180 m_enableLogFileValidation = value;
181 }
184 return *this;
185 }
187
189
195 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
196 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
197 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
198 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
199 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
200 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
201 }
202 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
203 UpdateTrailRequest& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
204 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
215 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
216 template <typename CloudWatchLogsRoleArnT = Aws::String>
217 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
218 m_cloudWatchLogsRoleArnHasBeenSet = true;
219 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
220 }
221 template <typename CloudWatchLogsRoleArnT = Aws::String>
222 UpdateTrailRequest& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
223 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
224 return *this;
225 }
227
229
242 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
243 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
244 template <typename KmsKeyIdT = Aws::String>
245 void SetKmsKeyId(KmsKeyIdT&& value) {
246 m_kmsKeyIdHasBeenSet = true;
247 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
248 }
249 template <typename KmsKeyIdT = Aws::String>
250 UpdateTrailRequest& WithKmsKeyId(KmsKeyIdT&& value) {
251 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
252 return *this;
253 }
255
257
271 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
272 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
273 inline void SetIsOrganizationTrail(bool value) {
274 m_isOrganizationTrailHasBeenSet = true;
275 m_isOrganizationTrail = value;
276 }
279 return *this;
280 }
282 private:
283 Aws::String m_name;
284
285 Aws::String m_s3BucketName;
286
287 Aws::String m_s3KeyPrefix;
288
289 Aws::String m_snsTopicName;
290
291 bool m_includeGlobalServiceEvents{false};
292
293 bool m_isMultiRegionTrail{false};
294
295 bool m_enableLogFileValidation{false};
296
297 Aws::String m_cloudWatchLogsLogGroupArn;
298
299 Aws::String m_cloudWatchLogsRoleArn;
300
301 Aws::String m_kmsKeyId;
302
303 bool m_isOrganizationTrail{false};
304 bool m_nameHasBeenSet = false;
305 bool m_s3BucketNameHasBeenSet = false;
306 bool m_s3KeyPrefixHasBeenSet = false;
307 bool m_snsTopicNameHasBeenSet = false;
308 bool m_includeGlobalServiceEventsHasBeenSet = false;
309 bool m_isMultiRegionTrailHasBeenSet = false;
310 bool m_enableLogFileValidationHasBeenSet = false;
311 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
312 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
313 bool m_kmsKeyIdHasBeenSet = false;
314 bool m_isOrganizationTrailHasBeenSet = false;
315};
316
317} // namespace Model
318} // namespace CloudTrail
319} // 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)
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