AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateTrailRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CloudTrail
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_CLOUDTRAIL_API UpdateTrailRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateTrail"; }
34
35 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
36
38
39
41
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 UpdateTrailRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
69 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
70 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
71 template<typename S3BucketNameT = Aws::String>
72 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
73 template<typename S3BucketNameT = Aws::String>
74 UpdateTrailRequest& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
76
78
84 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
85 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
86 template<typename S3KeyPrefixT = Aws::String>
87 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
88 template<typename S3KeyPrefixT = Aws::String>
89 UpdateTrailRequest& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
91
93
97 inline const Aws::String& GetSnsTopicName() const { return m_snsTopicName; }
98 inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
99 template<typename SnsTopicNameT = Aws::String>
100 void SetSnsTopicName(SnsTopicNameT&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = std::forward<SnsTopicNameT>(value); }
101 template<typename SnsTopicNameT = Aws::String>
102 UpdateTrailRequest& WithSnsTopicName(SnsTopicNameT&& value) { SetSnsTopicName(std::forward<SnsTopicNameT>(value)); return *this;}
104
106
110 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
111 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
112 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
115
117
126 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
127 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
128 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
129 inline UpdateTrailRequest& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
131
133
144 inline bool GetEnableLogFileValidation() const { return m_enableLogFileValidation; }
145 inline bool EnableLogFileValidationHasBeenSet() const { return m_enableLogFileValidationHasBeenSet; }
146 inline void SetEnableLogFileValidation(bool value) { m_enableLogFileValidationHasBeenSet = true; m_enableLogFileValidation = value; }
149
151
157 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
158 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
159 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
160 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value); }
161 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
162 UpdateTrailRequest& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value)); return *this;}
164
166
170 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
171 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
172 template<typename CloudWatchLogsRoleArnT = Aws::String>
173 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
174 template<typename CloudWatchLogsRoleArnT = Aws::String>
175 UpdateTrailRequest& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value)); return *this;}
177
179
192 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
193 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
194 template<typename KmsKeyIdT = Aws::String>
195 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
196 template<typename KmsKeyIdT = Aws::String>
197 UpdateTrailRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
199
201
215 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
216 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
217 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
218 inline UpdateTrailRequest& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
220 private:
221
222 Aws::String m_name;
223 bool m_nameHasBeenSet = false;
224
225 Aws::String m_s3BucketName;
226 bool m_s3BucketNameHasBeenSet = false;
227
228 Aws::String m_s3KeyPrefix;
229 bool m_s3KeyPrefixHasBeenSet = false;
230
231 Aws::String m_snsTopicName;
232 bool m_snsTopicNameHasBeenSet = false;
233
234 bool m_includeGlobalServiceEvents{false};
235 bool m_includeGlobalServiceEventsHasBeenSet = false;
236
237 bool m_isMultiRegionTrail{false};
238 bool m_isMultiRegionTrailHasBeenSet = false;
239
240 bool m_enableLogFileValidation{false};
241 bool m_enableLogFileValidationHasBeenSet = false;
242
243 Aws::String m_cloudWatchLogsLogGroupArn;
244 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
245
246 Aws::String m_cloudWatchLogsRoleArn;
247 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
248
249 Aws::String m_kmsKeyId;
250 bool m_kmsKeyIdHasBeenSet = false;
251
252 bool m_isOrganizationTrail{false};
253 bool m_isOrganizationTrailHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace CloudTrail
258} // 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