AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 CreateTrailRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
68 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
69 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
70 template<typename S3BucketNameT = Aws::String>
71 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
72 template<typename S3BucketNameT = Aws::String>
73 CreateTrailRequest& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
75
77
83 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
84 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
85 template<typename S3KeyPrefixT = Aws::String>
86 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
87 template<typename S3KeyPrefixT = Aws::String>
88 CreateTrailRequest& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
90
92
96 inline const Aws::String& GetSnsTopicName() const { return m_snsTopicName; }
97 inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
98 template<typename SnsTopicNameT = Aws::String>
99 void SetSnsTopicName(SnsTopicNameT&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = std::forward<SnsTopicNameT>(value); }
100 template<typename SnsTopicNameT = Aws::String>
101 CreateTrailRequest& WithSnsTopicName(SnsTopicNameT&& value) { SetSnsTopicName(std::forward<SnsTopicNameT>(value)); return *this;}
103
105
109 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
110 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
111 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
114
116
122 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
123 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
124 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
125 inline CreateTrailRequest& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
127
129
140 inline bool GetEnableLogFileValidation() const { return m_enableLogFileValidation; }
141 inline bool EnableLogFileValidationHasBeenSet() const { return m_enableLogFileValidationHasBeenSet; }
142 inline void SetEnableLogFileValidation(bool value) { m_enableLogFileValidationHasBeenSet = true; m_enableLogFileValidation = value; }
145
147
153 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
154 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
155 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
156 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value); }
157 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
158 CreateTrailRequest& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value)); return *this;}
160
162
166 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
167 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
168 template<typename CloudWatchLogsRoleArnT = Aws::String>
169 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
170 template<typename CloudWatchLogsRoleArnT = Aws::String>
171 CreateTrailRequest& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value)); return *this;}
173
175
190 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
191 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
192 template<typename KmsKeyIdT = Aws::String>
193 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
194 template<typename KmsKeyIdT = Aws::String>
195 CreateTrailRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
197
199
206 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
207 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
208 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
209 inline CreateTrailRequest& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
211
213
214 inline const Aws::Vector<Tag>& GetTagsList() const { return m_tagsList; }
215 inline bool TagsListHasBeenSet() const { return m_tagsListHasBeenSet; }
216 template<typename TagsListT = Aws::Vector<Tag>>
217 void SetTagsList(TagsListT&& value) { m_tagsListHasBeenSet = true; m_tagsList = std::forward<TagsListT>(value); }
218 template<typename TagsListT = Aws::Vector<Tag>>
219 CreateTrailRequest& WithTagsList(TagsListT&& value) { SetTagsList(std::forward<TagsListT>(value)); return *this;}
220 template<typename TagsListT = Tag>
221 CreateTrailRequest& AddTagsList(TagsListT&& value) { m_tagsListHasBeenSet = true; m_tagsList.emplace_back(std::forward<TagsListT>(value)); return *this; }
223 private:
224
225 Aws::String m_name;
226 bool m_nameHasBeenSet = false;
227
228 Aws::String m_s3BucketName;
229 bool m_s3BucketNameHasBeenSet = false;
230
231 Aws::String m_s3KeyPrefix;
232 bool m_s3KeyPrefixHasBeenSet = false;
233
234 Aws::String m_snsTopicName;
235 bool m_snsTopicNameHasBeenSet = false;
236
237 bool m_includeGlobalServiceEvents{false};
238 bool m_includeGlobalServiceEventsHasBeenSet = false;
239
240 bool m_isMultiRegionTrail{false};
241 bool m_isMultiRegionTrailHasBeenSet = false;
242
243 bool m_enableLogFileValidation{false};
244 bool m_enableLogFileValidationHasBeenSet = false;
245
246 Aws::String m_cloudWatchLogsLogGroupArn;
247 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
248
249 Aws::String m_cloudWatchLogsRoleArn;
250 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
251
252 Aws::String m_kmsKeyId;
253 bool m_kmsKeyIdHasBeenSet = false;
254
255 bool m_isOrganizationTrail{false};
256 bool m_isOrganizationTrailHasBeenSet = false;
257
258 Aws::Vector<Tag> m_tagsList;
259 bool m_tagsListHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace CloudTrail
264} // namespace Aws
CreateTrailRequest & WithEnableLogFileValidation(bool value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrailRequest & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
CreateTrailRequest & WithS3BucketName(S3BucketNameT &&value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailRequest & WithTagsList(TagsListT &&value)
CreateTrailRequest & WithSnsTopicName(SnsTopicNameT &&value)
CreateTrailRequest & AddTagsList(TagsListT &&value)
const Aws::Vector< Tag > & GetTagsList() const
CreateTrailRequest & WithIsOrganizationTrail(bool value)
CreateTrailRequest & WithIncludeGlobalServiceEvents(bool value)
CreateTrailRequest & WithS3KeyPrefix(S3KeyPrefixT &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
CreateTrailRequest & WithIsMultiRegionTrail(bool value)
const Aws::String & GetCloudWatchLogsRoleArn() const
AWS_CLOUDTRAIL_API CreateTrailRequest()=default
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateTrailRequest & WithName(NameT &&value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
virtual const char * GetServiceRequestName() const override
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