AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateTrailResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail {
23namespace Model {
31 public:
32 AWS_CLOUDTRAIL_API CreateTrailResult() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 CreateTrailResult& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
59 template <typename S3BucketNameT = Aws::String>
60 void SetS3BucketName(S3BucketNameT&& value) {
61 m_s3BucketNameHasBeenSet = true;
62 m_s3BucketName = std::forward<S3BucketNameT>(value);
63 }
64 template <typename S3BucketNameT = Aws::String>
65 CreateTrailResult& WithS3BucketName(S3BucketNameT&& value) {
66 SetS3BucketName(std::forward<S3BucketNameT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
79 template <typename S3KeyPrefixT = Aws::String>
80 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
81 m_s3KeyPrefixHasBeenSet = true;
82 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
83 }
84 template <typename S3KeyPrefixT = Aws::String>
85 CreateTrailResult& WithS3KeyPrefix(S3KeyPrefixT&& value) {
86 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
98 template <typename SnsTopicARNT = Aws::String>
99 void SetSnsTopicARN(SnsTopicARNT&& value) {
100 m_snsTopicARNHasBeenSet = true;
101 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
102 }
103 template <typename SnsTopicARNT = Aws::String>
104 CreateTrailResult& WithSnsTopicARN(SnsTopicARNT&& value) {
105 SetSnsTopicARN(std::forward<SnsTopicARNT>(value));
106 return *this;
107 }
109
111
115 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
116 inline void SetIncludeGlobalServiceEvents(bool value) {
117 m_includeGlobalServiceEventsHasBeenSet = true;
118 m_includeGlobalServiceEvents = value;
119 }
122 return *this;
123 }
125
127
130 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
131 inline void SetIsMultiRegionTrail(bool value) {
132 m_isMultiRegionTrailHasBeenSet = true;
133 m_isMultiRegionTrail = value;
134 }
137 return *this;
138 }
140
142
147 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
148 template <typename TrailARNT = Aws::String>
149 void SetTrailARN(TrailARNT&& value) {
150 m_trailARNHasBeenSet = true;
151 m_trailARN = std::forward<TrailARNT>(value);
152 }
153 template <typename TrailARNT = Aws::String>
154 CreateTrailResult& WithTrailARN(TrailARNT&& value) {
155 SetTrailARN(std::forward<TrailARNT>(value));
156 return *this;
157 }
159
161
164 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
165 inline void SetLogFileValidationEnabled(bool value) {
166 m_logFileValidationEnabledHasBeenSet = true;
167 m_logFileValidationEnabled = value;
168 }
171 return *this;
172 }
174
176
180 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
181 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
182 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
183 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
184 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
185 }
186 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
187 CreateTrailResult& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
188 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
199 template <typename CloudWatchLogsRoleArnT = Aws::String>
200 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
201 m_cloudWatchLogsRoleArnHasBeenSet = true;
202 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
203 }
204 template <typename CloudWatchLogsRoleArnT = Aws::String>
205 CreateTrailResult& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
206 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
207 return *this;
208 }
210
212
218 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
219 template <typename KmsKeyIdT = Aws::String>
220 void SetKmsKeyId(KmsKeyIdT&& value) {
221 m_kmsKeyIdHasBeenSet = true;
222 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
223 }
224 template <typename KmsKeyIdT = Aws::String>
225 CreateTrailResult& WithKmsKeyId(KmsKeyIdT&& value) {
226 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
227 return *this;
228 }
230
232
235 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
236 inline void SetIsOrganizationTrail(bool value) {
237 m_isOrganizationTrailHasBeenSet = true;
238 m_isOrganizationTrail = value;
239 }
242 return *this;
243 }
245
247
248 inline const Aws::String& GetRequestId() const { return m_requestId; }
249 template <typename RequestIdT = Aws::String>
250 void SetRequestId(RequestIdT&& value) {
251 m_requestIdHasBeenSet = true;
252 m_requestId = std::forward<RequestIdT>(value);
253 }
254 template <typename RequestIdT = Aws::String>
255 CreateTrailResult& WithRequestId(RequestIdT&& value) {
256 SetRequestId(std::forward<RequestIdT>(value));
257 return *this;
258 }
260 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
261
262 private:
263 Aws::String m_name;
264
265 Aws::String m_s3BucketName;
266
267 Aws::String m_s3KeyPrefix;
268
269 Aws::String m_snsTopicARN;
270
271 bool m_includeGlobalServiceEvents{false};
272
273 bool m_isMultiRegionTrail{false};
274
275 Aws::String m_trailARN;
276
277 bool m_logFileValidationEnabled{false};
278
279 Aws::String m_cloudWatchLogsLogGroupArn;
280
281 Aws::String m_cloudWatchLogsRoleArn;
282
283 Aws::String m_kmsKeyId;
284
285 bool m_isOrganizationTrail{false};
286
287 Aws::String m_requestId;
288 Aws::Http::HttpResponseCode m_HttpResponseCode;
289 bool m_nameHasBeenSet = false;
290 bool m_s3BucketNameHasBeenSet = false;
291 bool m_s3KeyPrefixHasBeenSet = false;
292 bool m_snsTopicARNHasBeenSet = false;
293 bool m_includeGlobalServiceEventsHasBeenSet = false;
294 bool m_isMultiRegionTrailHasBeenSet = false;
295 bool m_trailARNHasBeenSet = false;
296 bool m_logFileValidationEnabledHasBeenSet = false;
297 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
298 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
299 bool m_kmsKeyIdHasBeenSet = false;
300 bool m_isOrganizationTrailHasBeenSet = false;
301 bool m_requestIdHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace CloudTrail
306} // namespace Aws
CreateTrailResult & WithKmsKeyId(KmsKeyIdT &&value)
CreateTrailResult & WithIncludeGlobalServiceEvents(bool value)
CreateTrailResult & WithTrailARN(TrailARNT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateTrailResult & WithS3KeyPrefix(S3KeyPrefixT &&value)
CreateTrailResult & WithLogFileValidationEnabled(bool value)
const Aws::String & GetS3KeyPrefix() const
AWS_CLOUDTRAIL_API CreateTrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API CreateTrailResult()=default
CreateTrailResult & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
void SetS3BucketName(S3BucketNameT &&value)
CreateTrailResult & WithRequestId(RequestIdT &&value)
CreateTrailResult & WithS3BucketName(S3BucketNameT &&value)
CreateTrailResult & WithIsMultiRegionTrail(bool value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
CreateTrailResult & WithName(NameT &&value)
CreateTrailResult & WithIsOrganizationTrail(bool value)
AWS_CLOUDTRAIL_API CreateTrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateTrailResult & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailResult & WithSnsTopicARN(SnsTopicARNT &&value)
const Aws::String & GetS3BucketName() const
const Aws::String & GetSnsTopicARN() const
const Aws::String & GetCloudWatchLogsRoleArn() const
const Aws::String & GetCloudWatchLogsLogGroupArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue