AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline UpdateTrailRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline UpdateTrailRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline UpdateTrailRequest& WithName(const char* value) { SetName(value); return *this;}
63
65
71 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
72 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
73 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
74 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
75 inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
76 inline UpdateTrailRequest& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
77 inline UpdateTrailRequest& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
78 inline UpdateTrailRequest& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
80
82
88 inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
89 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
90 inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
91 inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); }
92 inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
93 inline UpdateTrailRequest& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
94 inline UpdateTrailRequest& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
95 inline UpdateTrailRequest& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
97
99
103 inline const Aws::String& GetSnsTopicName() const{ return m_snsTopicName; }
104 inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
105 inline void SetSnsTopicName(const Aws::String& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; }
106 inline void SetSnsTopicName(Aws::String&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = std::move(value); }
107 inline void SetSnsTopicName(const char* value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName.assign(value); }
108 inline UpdateTrailRequest& WithSnsTopicName(const Aws::String& value) { SetSnsTopicName(value); return *this;}
109 inline UpdateTrailRequest& WithSnsTopicName(Aws::String&& value) { SetSnsTopicName(std::move(value)); return *this;}
110 inline UpdateTrailRequest& WithSnsTopicName(const char* value) { SetSnsTopicName(value); return *this;}
112
114
118 inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
119 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
120 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
123
125
134 inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
135 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
136 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
137 inline UpdateTrailRequest& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
139
141
152 inline bool GetEnableLogFileValidation() const{ return m_enableLogFileValidation; }
153 inline bool EnableLogFileValidationHasBeenSet() const { return m_enableLogFileValidationHasBeenSet; }
154 inline void SetEnableLogFileValidation(bool value) { m_enableLogFileValidationHasBeenSet = true; m_enableLogFileValidation = value; }
157
159
165 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
166 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
167 inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
168 inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); }
169 inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
172 inline UpdateTrailRequest& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
174
176
180 inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
181 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
182 inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
183 inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); }
184 inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
186 inline UpdateTrailRequest& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;}
187 inline UpdateTrailRequest& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
189
191
204 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
205 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
206 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
207 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
208 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
209 inline UpdateTrailRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
210 inline UpdateTrailRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
211 inline UpdateTrailRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
213
215
229 inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; }
230 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
231 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
232 inline UpdateTrailRequest& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
234 private:
235
236 Aws::String m_name;
237 bool m_nameHasBeenSet = false;
238
239 Aws::String m_s3BucketName;
240 bool m_s3BucketNameHasBeenSet = false;
241
242 Aws::String m_s3KeyPrefix;
243 bool m_s3KeyPrefixHasBeenSet = false;
244
245 Aws::String m_snsTopicName;
246 bool m_snsTopicNameHasBeenSet = false;
247
248 bool m_includeGlobalServiceEvents;
249 bool m_includeGlobalServiceEventsHasBeenSet = false;
250
251 bool m_isMultiRegionTrail;
252 bool m_isMultiRegionTrailHasBeenSet = false;
253
254 bool m_enableLogFileValidation;
255 bool m_enableLogFileValidationHasBeenSet = false;
256
257 Aws::String m_cloudWatchLogsLogGroupArn;
258 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
259
260 Aws::String m_cloudWatchLogsRoleArn;
261 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
262
263 Aws::String m_kmsKeyId;
264 bool m_kmsKeyIdHasBeenSet = false;
265
266 bool m_isOrganizationTrail;
267 bool m_isOrganizationTrailHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace CloudTrail
272} // namespace Aws
UpdateTrailRequest & WithName(Aws::String &&value)
void SetSnsTopicName(const Aws::String &value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetCloudWatchLogsRoleArn() const
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
void SetS3KeyPrefix(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateTrailRequest & WithIncludeGlobalServiceEvents(bool value)
UpdateTrailRequest & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
void SetCloudWatchLogsRoleArn(const Aws::String &value)
UpdateTrailRequest & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
UpdateTrailRequest & WithCloudWatchLogsRoleArn(const char *value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
UpdateTrailRequest & WithCloudWatchLogsRoleArn(const Aws::String &value)
UpdateTrailRequest & WithS3BucketName(const Aws::String &value)
UpdateTrailRequest & WithCloudWatchLogsRoleArn(Aws::String &&value)
UpdateTrailRequest & WithCloudWatchLogsLogGroupArn(const char *value)
UpdateTrailRequest & WithSnsTopicName(const char *value)
UpdateTrailRequest & WithIsOrganizationTrail(bool value)
UpdateTrailRequest & WithName(const char *value)
void SetKmsKeyId(const Aws::String &value)
UpdateTrailRequest & WithS3BucketName(Aws::String &&value)
UpdateTrailRequest & WithS3KeyPrefix(Aws::String &&value)
UpdateTrailRequest & WithName(const Aws::String &value)
UpdateTrailRequest & WithS3BucketName(const char *value)
UpdateTrailRequest & WithSnsTopicName(const Aws::String &value)
UpdateTrailRequest & WithKmsKeyId(Aws::String &&value)
void SetS3BucketName(const Aws::String &value)
UpdateTrailRequest & WithKmsKeyId(const Aws::String &value)
UpdateTrailRequest & WithKmsKeyId(const char *value)
UpdateTrailRequest & WithS3KeyPrefix(const char *value)
UpdateTrailRequest & WithIsMultiRegionTrail(bool value)
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
UpdateTrailRequest & WithSnsTopicName(Aws::String &&value)
UpdateTrailRequest & WithEnableLogFileValidation(bool value)
UpdateTrailRequest & WithS3KeyPrefix(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String