AWS SDK for C++  0.12.9
AWS SDK for C++
Trail.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudTrail
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Trail();
40  Trail(const Aws::Utils::Json::JsonValue& jsonValue);
41  Trail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
61 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
72  inline Trail& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
78  inline Trail& WithName(Aws::String&& value) { SetName(value); return *this;}
79 
84  inline Trail& WithName(const char* value) { SetName(value); return *this;}
85 
92  inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
93 
100  inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
101 
108  inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
109 
116  inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
117 
124  inline Trail& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
125 
132  inline Trail& WithS3BucketName(Aws::String&& value) { SetS3BucketName(value); return *this;}
133 
140  inline Trail& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
141 
148  inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
149 
156  inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
157 
164  inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
165 
172  inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
173 
180  inline Trail& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
181 
188  inline Trail& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(value); return *this;}
189 
196  inline Trail& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
197 
203  inline const Aws::String& GetSnsTopicARN() const{ return m_snsTopicARN; }
204 
210  inline void SetSnsTopicARN(const Aws::String& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = value; }
211 
217  inline void SetSnsTopicARN(Aws::String&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = value; }
218 
224  inline void SetSnsTopicARN(const char* value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN.assign(value); }
225 
231  inline Trail& WithSnsTopicARN(const Aws::String& value) { SetSnsTopicARN(value); return *this;}
232 
238  inline Trail& WithSnsTopicARN(Aws::String&& value) { SetSnsTopicARN(value); return *this;}
239 
245  inline Trail& WithSnsTopicARN(const char* value) { SetSnsTopicARN(value); return *this;}
246 
251  inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
252 
257  inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
258 
263  inline Trail& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;}
264 
269  inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
270 
275  inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
276 
281  inline Trail& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
282 
286  inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
287 
291  inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
292 
296  inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
297 
301  inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
302 
306  inline Trail& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
307 
311  inline Trail& WithHomeRegion(Aws::String&& value) { SetHomeRegion(value); return *this;}
312 
316  inline Trail& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
317 
322  inline const Aws::String& GetTrailARN() const{ return m_trailARN; }
323 
328  inline void SetTrailARN(const Aws::String& value) { m_trailARNHasBeenSet = true; m_trailARN = value; }
329 
334  inline void SetTrailARN(Aws::String&& value) { m_trailARNHasBeenSet = true; m_trailARN = value; }
335 
340  inline void SetTrailARN(const char* value) { m_trailARNHasBeenSet = true; m_trailARN.assign(value); }
341 
346  inline Trail& WithTrailARN(const Aws::String& value) { SetTrailARN(value); return *this;}
347 
352  inline Trail& WithTrailARN(Aws::String&& value) { SetTrailARN(value); return *this;}
353 
358  inline Trail& WithTrailARN(const char* value) { SetTrailARN(value); return *this;}
359 
363  inline bool GetLogFileValidationEnabled() const{ return m_logFileValidationEnabled; }
364 
368  inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabledHasBeenSet = true; m_logFileValidationEnabled = value; }
369 
373  inline Trail& WithLogFileValidationEnabled(bool value) { SetLogFileValidationEnabled(value); return *this;}
374 
379  inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
380 
385  inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
386 
391  inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
392 
397  inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
398 
403  inline Trail& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
404 
409  inline Trail& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
410 
415  inline Trail& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
416 
421  inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
422 
427  inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
428 
433  inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
434 
439  inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
440 
445  inline Trail& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;}
446 
451  inline Trail& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(value); return *this;}
452 
457  inline Trail& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
458 
465  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
466 
473  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
474 
481  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
482 
489  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
490 
497  inline Trail& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
498 
505  inline Trail& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
506 
513  inline Trail& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
514 
515  private:
516  Aws::String m_name;
517  bool m_nameHasBeenSet;
518  Aws::String m_s3BucketName;
519  bool m_s3BucketNameHasBeenSet;
520  Aws::String m_s3KeyPrefix;
521  bool m_s3KeyPrefixHasBeenSet;
522  Aws::String m_snsTopicARN;
523  bool m_snsTopicARNHasBeenSet;
524  bool m_includeGlobalServiceEvents;
525  bool m_includeGlobalServiceEventsHasBeenSet;
526  bool m_isMultiRegionTrail;
527  bool m_isMultiRegionTrailHasBeenSet;
528  Aws::String m_homeRegion;
529  bool m_homeRegionHasBeenSet;
530  Aws::String m_trailARN;
531  bool m_trailARNHasBeenSet;
532  bool m_logFileValidationEnabled;
533  bool m_logFileValidationEnabledHasBeenSet;
534  Aws::String m_cloudWatchLogsLogGroupArn;
535  bool m_cloudWatchLogsLogGroupArnHasBeenSet;
536  Aws::String m_cloudWatchLogsRoleArn;
537  bool m_cloudWatchLogsRoleArnHasBeenSet;
538  Aws::String m_kmsKeyId;
539  bool m_kmsKeyIdHasBeenSet;
540  };
541 
542 } // namespace Model
543 } // namespace CloudTrail
544 } // namespace Aws
void SetSnsTopicARN(const char *value)
Definition: Trail.h:224
Trail & WithS3KeyPrefix(Aws::String &&value)
Definition: Trail.h:188
void SetS3KeyPrefix(Aws::String &&value)
Definition: Trail.h:164
Trail & WithKmsKeyId(const Aws::String &value)
Definition: Trail.h:497
void SetIncludeGlobalServiceEvents(bool value)
Definition: Trail.h:257
Trail & WithHomeRegion(Aws::String &&value)
Definition: Trail.h:311
void SetCloudWatchLogsRoleArn(const Aws::String &value)
Definition: Trail.h:427
void SetCloudWatchLogsRoleArn(Aws::String &&value)
Definition: Trail.h:433
Trail & WithIsMultiRegionTrail(bool value)
Definition: Trail.h:281
Trail & WithCloudWatchLogsRoleArn(Aws::String &&value)
Definition: Trail.h:451
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
Definition: Trail.h:391
bool GetIsMultiRegionTrail() const
Definition: Trail.h:269
Trail & WithS3KeyPrefix(const char *value)
Definition: Trail.h:196
void SetS3BucketName(const char *value)
Definition: Trail.h:116
void SetCloudWatchLogsRoleArn(const char *value)
Definition: Trail.h:439
void SetTrailARN(const char *value)
Definition: Trail.h:340
void SetS3KeyPrefix(const Aws::String &value)
Definition: Trail.h:156
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
Definition: Trail.h:385
Trail & WithTrailARN(const Aws::String &value)
Definition: Trail.h:346
void SetCloudWatchLogsLogGroupArn(const char *value)
Definition: Trail.h:397
Trail & WithLogFileValidationEnabled(bool value)
Definition: Trail.h:373
Trail & WithSnsTopicARN(Aws::String &&value)
Definition: Trail.h:238
void SetHomeRegion(const char *value)
Definition: Trail.h:301
void SetS3BucketName(const Aws::String &value)
Definition: Trail.h:100
Trail & WithHomeRegion(const char *value)
Definition: Trail.h:316
Trail & WithTrailARN(const char *value)
Definition: Trail.h:358
const Aws::String & GetKmsKeyId() const
Definition: Trail.h:465
const Aws::String & GetSnsTopicARN() const
Definition: Trail.h:203
const Aws::String & GetS3KeyPrefix() const
Definition: Trail.h:148
bool GetLogFileValidationEnabled() const
Definition: Trail.h:363
Trail & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
Definition: Trail.h:403
Trail & WithS3BucketName(const Aws::String &value)
Definition: Trail.h:124
const Aws::String & GetName() const
Definition: Trail.h:48
Trail & WithS3BucketName(Aws::String &&value)
Definition: Trail.h:132
Trail & WithIncludeGlobalServiceEvents(bool value)
Definition: Trail.h:263
Trail & WithSnsTopicARN(const char *value)
Definition: Trail.h:245
void SetHomeRegion(Aws::String &&value)
Definition: Trail.h:296
Trail & WithName(Aws::String &&value)
Definition: Trail.h:78
Trail & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
Definition: Trail.h:409
const Aws::String & GetS3BucketName() const
Definition: Trail.h:92
Trail & WithKmsKeyId(const char *value)
Definition: Trail.h:513
void SetSnsTopicARN(const Aws::String &value)
Definition: Trail.h:210
bool GetIncludeGlobalServiceEvents() const
Definition: Trail.h:251
void SetName(Aws::String &&value)
Definition: Trail.h:60
void SetS3BucketName(Aws::String &&value)
Definition: Trail.h:108
void SetS3KeyPrefix(const char *value)
Definition: Trail.h:172
const Aws::String & GetCloudWatchLogsRoleArn() const
Definition: Trail.h:421
Trail & WithSnsTopicARN(const Aws::String &value)
Definition: Trail.h:231
void SetTrailARN(const Aws::String &value)
Definition: Trail.h:328
Trail & WithName(const char *value)
Definition: Trail.h:84
void SetKmsKeyId(const char *value)
Definition: Trail.h:489
Trail & WithTrailARN(Aws::String &&value)
Definition: Trail.h:352
Trail & WithCloudWatchLogsRoleArn(const char *value)
Definition: Trail.h:457
const Aws::String & GetHomeRegion() const
Definition: Trail.h:286
void SetName(const Aws::String &value)
Definition: Trail.h:54
void SetName(const char *value)
Definition: Trail.h:66
Trail & WithHomeRegion(const Aws::String &value)
Definition: Trail.h:306
Trail & WithS3BucketName(const char *value)
Definition: Trail.h:140
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Trail & WithS3KeyPrefix(const Aws::String &value)
Definition: Trail.h:180
Trail & WithCloudWatchLogsLogGroupArn(const char *value)
Definition: Trail.h:415
#define AWS_CLOUDTRAIL_API
Trail & WithName(const Aws::String &value)
Definition: Trail.h:72
Trail & WithKmsKeyId(Aws::String &&value)
Definition: Trail.h:505
void SetTrailARN(Aws::String &&value)
Definition: Trail.h:334
void SetSnsTopicARN(Aws::String &&value)
Definition: Trail.h:217
void SetKmsKeyId(Aws::String &&value)
Definition: Trail.h:481
const Aws::String & GetTrailARN() const
Definition: Trail.h:322
void SetHomeRegion(const Aws::String &value)
Definition: Trail.h:291
void SetLogFileValidationEnabled(bool value)
Definition: Trail.h:368
const Aws::String & GetCloudWatchLogsLogGroupArn() const
Definition: Trail.h:379
void SetIsMultiRegionTrail(bool value)
Definition: Trail.h:275
void SetKmsKeyId(const Aws::String &value)
Definition: Trail.h:473
JSON (JavaScript Object Notation).
Trail & WithCloudWatchLogsRoleArn(const Aws::String &value)
Definition: Trail.h:445