AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTrailRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudTrail
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_CLOUDTRAIL_API CreateTrailRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateTrail"; }
36
37 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
38
40
41
43
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateTrailRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateTrailRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateTrailRequest& WithName(const char* value) { SetName(value); return *this;}
62
64
70 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
71 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
72 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
73 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
74 inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
75 inline CreateTrailRequest& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
76 inline CreateTrailRequest& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
77 inline CreateTrailRequest& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
79
81
87 inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
88 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
89 inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
90 inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); }
91 inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
92 inline CreateTrailRequest& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
93 inline CreateTrailRequest& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
94 inline CreateTrailRequest& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
96
98
102 inline const Aws::String& GetSnsTopicName() const{ return m_snsTopicName; }
103 inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
104 inline void SetSnsTopicName(const Aws::String& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; }
105 inline void SetSnsTopicName(Aws::String&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = std::move(value); }
106 inline void SetSnsTopicName(const char* value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName.assign(value); }
107 inline CreateTrailRequest& WithSnsTopicName(const Aws::String& value) { SetSnsTopicName(value); return *this;}
108 inline CreateTrailRequest& WithSnsTopicName(Aws::String&& value) { SetSnsTopicName(std::move(value)); return *this;}
109 inline CreateTrailRequest& WithSnsTopicName(const char* value) { SetSnsTopicName(value); return *this;}
111
113
117 inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
118 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
119 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
122
124
130 inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
131 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
132 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
133 inline CreateTrailRequest& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
135
137
148 inline bool GetEnableLogFileValidation() const{ return m_enableLogFileValidation; }
149 inline bool EnableLogFileValidationHasBeenSet() const { return m_enableLogFileValidationHasBeenSet; }
150 inline void SetEnableLogFileValidation(bool value) { m_enableLogFileValidationHasBeenSet = true; m_enableLogFileValidation = value; }
153
155
161 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
162 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
163 inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
164 inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); }
165 inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
168 inline CreateTrailRequest& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
170
172
176 inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
177 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
178 inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
179 inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); }
180 inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
182 inline CreateTrailRequest& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;}
183 inline CreateTrailRequest& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
185
187
202 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
203 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
204 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
205 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
206 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
207 inline CreateTrailRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
208 inline CreateTrailRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
209 inline CreateTrailRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
211
213
220 inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; }
221 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
222 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
223 inline CreateTrailRequest& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
225
227
228 inline const Aws::Vector<Tag>& GetTagsList() const{ return m_tagsList; }
229 inline bool TagsListHasBeenSet() const { return m_tagsListHasBeenSet; }
230 inline void SetTagsList(const Aws::Vector<Tag>& value) { m_tagsListHasBeenSet = true; m_tagsList = value; }
231 inline void SetTagsList(Aws::Vector<Tag>&& value) { m_tagsListHasBeenSet = true; m_tagsList = std::move(value); }
232 inline CreateTrailRequest& WithTagsList(const Aws::Vector<Tag>& value) { SetTagsList(value); return *this;}
233 inline CreateTrailRequest& WithTagsList(Aws::Vector<Tag>&& value) { SetTagsList(std::move(value)); return *this;}
234 inline CreateTrailRequest& AddTagsList(const Tag& value) { m_tagsListHasBeenSet = true; m_tagsList.push_back(value); return *this; }
235 inline CreateTrailRequest& AddTagsList(Tag&& value) { m_tagsListHasBeenSet = true; m_tagsList.push_back(std::move(value)); return *this; }
237 private:
238
239 Aws::String m_name;
240 bool m_nameHasBeenSet = false;
241
242 Aws::String m_s3BucketName;
243 bool m_s3BucketNameHasBeenSet = false;
244
245 Aws::String m_s3KeyPrefix;
246 bool m_s3KeyPrefixHasBeenSet = false;
247
248 Aws::String m_snsTopicName;
249 bool m_snsTopicNameHasBeenSet = false;
250
251 bool m_includeGlobalServiceEvents;
252 bool m_includeGlobalServiceEventsHasBeenSet = false;
253
254 bool m_isMultiRegionTrail;
255 bool m_isMultiRegionTrailHasBeenSet = false;
256
257 bool m_enableLogFileValidation;
258 bool m_enableLogFileValidationHasBeenSet = false;
259
260 Aws::String m_cloudWatchLogsLogGroupArn;
261 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
262
263 Aws::String m_cloudWatchLogsRoleArn;
264 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
265
266 Aws::String m_kmsKeyId;
267 bool m_kmsKeyIdHasBeenSet = false;
268
269 bool m_isOrganizationTrail;
270 bool m_isOrganizationTrailHasBeenSet = false;
271
272 Aws::Vector<Tag> m_tagsList;
273 bool m_tagsListHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace CloudTrail
278} // namespace Aws
CreateTrailRequest & WithEnableLogFileValidation(bool value)
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(const char *value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrailRequest & WithS3KeyPrefix(const Aws::String &value)
CreateTrailRequest & WithCloudWatchLogsRoleArn(const Aws::String &value)
CreateTrailRequest & WithKmsKeyId(Aws::String &&value)
void SetTagsList(const Aws::Vector< Tag > &value)
CreateTrailRequest & WithKmsKeyId(const char *value)
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
const Aws::Vector< Tag > & GetTagsList() const
CreateTrailRequest & WithS3KeyPrefix(Aws::String &&value)
CreateTrailRequest & WithIsOrganizationTrail(bool value)
CreateTrailRequest & WithCloudWatchLogsRoleArn(const char *value)
CreateTrailRequest & WithS3BucketName(const char *value)
CreateTrailRequest & WithCloudWatchLogsRoleArn(Aws::String &&value)
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
CreateTrailRequest & WithS3KeyPrefix(const char *value)
CreateTrailRequest & WithSnsTopicName(const char *value)
CreateTrailRequest & WithIncludeGlobalServiceEvents(bool value)
CreateTrailRequest & AddTagsList(Tag &&value)
CreateTrailRequest & WithTagsList(Aws::Vector< Tag > &&value)
CreateTrailRequest & WithTagsList(const Aws::Vector< Tag > &value)
void SetSnsTopicName(const Aws::String &value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
void SetS3BucketName(const Aws::String &value)
CreateTrailRequest & WithKmsKeyId(const Aws::String &value)
CreateTrailRequest & WithIsMultiRegionTrail(bool value)
CreateTrailRequest & WithName(Aws::String &&value)
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
void SetTagsList(Aws::Vector< Tag > &&value)
const Aws::String & GetCloudWatchLogsRoleArn() const
CreateTrailRequest & WithS3BucketName(Aws::String &&value)
CreateTrailRequest & AddTagsList(const Tag &value)
CreateTrailRequest & WithName(const Aws::String &value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
CreateTrailRequest & WithName(const char *value)
void SetKmsKeyId(const Aws::String &value)
CreateTrailRequest & WithS3BucketName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetS3KeyPrefix(const Aws::String &value)
void SetCloudWatchLogsRoleArn(const Aws::String &value)
CreateTrailRequest & WithSnsTopicName(const Aws::String &value)
CreateTrailRequest & WithSnsTopicName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector