AWS SDK for C++  1.8.71
AWS SDK for C++
CreateTrailRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CloudTrail
17 {
18 namespace Model
19 {
20 
27  {
28  public:
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::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
52  inline const Aws::String& GetName() const{ return m_name; }
53 
64  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 
76  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 
88  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
89 
100  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
101 
112  inline CreateTrailRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
124  inline CreateTrailRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
125 
136  inline CreateTrailRequest& WithName(const char* value) { SetName(value); return *this;}
137 
138 
145  inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
146 
153  inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
154 
161  inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
162 
169  inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
170 
177  inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
178 
185  inline CreateTrailRequest& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
186 
193  inline CreateTrailRequest& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
194 
201  inline CreateTrailRequest& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
202 
203 
210  inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
211 
218  inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
219 
226  inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
227 
234  inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); }
235 
242  inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
243 
250  inline CreateTrailRequest& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
251 
258  inline CreateTrailRequest& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
259 
266  inline CreateTrailRequest& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
267 
268 
273  inline const Aws::String& GetSnsTopicName() const{ return m_snsTopicName; }
274 
279  inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
280 
285  inline void SetSnsTopicName(const Aws::String& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; }
286 
291  inline void SetSnsTopicName(Aws::String&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = std::move(value); }
292 
297  inline void SetSnsTopicName(const char* value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName.assign(value); }
298 
303  inline CreateTrailRequest& WithSnsTopicName(const Aws::String& value) { SetSnsTopicName(value); return *this;}
304 
309  inline CreateTrailRequest& WithSnsTopicName(Aws::String&& value) { SetSnsTopicName(std::move(value)); return *this;}
310 
315  inline CreateTrailRequest& WithSnsTopicName(const char* value) { SetSnsTopicName(value); return *this;}
316 
317 
322  inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
323 
328  inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
329 
334  inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
335 
340  inline CreateTrailRequest& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;}
341 
342 
349  inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
350 
357  inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
358 
365  inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
366 
373  inline CreateTrailRequest& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
374 
375 
387  inline bool GetEnableLogFileValidation() const{ return m_enableLogFileValidation; }
388 
400  inline bool EnableLogFileValidationHasBeenSet() const { return m_enableLogFileValidationHasBeenSet; }
401 
413  inline void SetEnableLogFileValidation(bool value) { m_enableLogFileValidationHasBeenSet = true; m_enableLogFileValidation = value; }
414 
426  inline CreateTrailRequest& WithEnableLogFileValidation(bool value) { SetEnableLogFileValidation(value); return *this;}
427 
428 
434  inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
435 
441  inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
442 
448  inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
449 
455  inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); }
456 
462  inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
463 
469  inline CreateTrailRequest& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
470 
476  inline CreateTrailRequest& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(std::move(value)); return *this;}
477 
483  inline CreateTrailRequest& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
484 
485 
490  inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
491 
496  inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
497 
502  inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
503 
508  inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); }
509 
514  inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
515 
520  inline CreateTrailRequest& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;}
521 
526  inline CreateTrailRequest& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;}
527 
532  inline CreateTrailRequest& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
533 
534 
544  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
545 
555  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
556 
566  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
567 
577  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
578 
588  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
589 
599  inline CreateTrailRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
600 
610  inline CreateTrailRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
611 
621  inline CreateTrailRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
622 
623 
630  inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; }
631 
638  inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
639 
646  inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
647 
654  inline CreateTrailRequest& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
655 
656 
657 
658  inline const Aws::Vector<Tag>& GetTagsList() const{ return m_tagsList; }
659 
660 
661  inline bool TagsListHasBeenSet() const { return m_tagsListHasBeenSet; }
662 
663 
664  inline void SetTagsList(const Aws::Vector<Tag>& value) { m_tagsListHasBeenSet = true; m_tagsList = value; }
665 
666 
667  inline void SetTagsList(Aws::Vector<Tag>&& value) { m_tagsListHasBeenSet = true; m_tagsList = std::move(value); }
668 
669 
670  inline CreateTrailRequest& WithTagsList(const Aws::Vector<Tag>& value) { SetTagsList(value); return *this;}
671 
672 
673  inline CreateTrailRequest& WithTagsList(Aws::Vector<Tag>&& value) { SetTagsList(std::move(value)); return *this;}
674 
675 
676  inline CreateTrailRequest& AddTagsList(const Tag& value) { m_tagsListHasBeenSet = true; m_tagsList.push_back(value); return *this; }
677 
678 
679  inline CreateTrailRequest& AddTagsList(Tag&& value) { m_tagsListHasBeenSet = true; m_tagsList.push_back(std::move(value)); return *this; }
680 
681  private:
682 
683  Aws::String m_name;
684  bool m_nameHasBeenSet;
685 
686  Aws::String m_s3BucketName;
687  bool m_s3BucketNameHasBeenSet;
688 
689  Aws::String m_s3KeyPrefix;
690  bool m_s3KeyPrefixHasBeenSet;
691 
692  Aws::String m_snsTopicName;
693  bool m_snsTopicNameHasBeenSet;
694 
695  bool m_includeGlobalServiceEvents;
696  bool m_includeGlobalServiceEventsHasBeenSet;
697 
698  bool m_isMultiRegionTrail;
699  bool m_isMultiRegionTrailHasBeenSet;
700 
701  bool m_enableLogFileValidation;
702  bool m_enableLogFileValidationHasBeenSet;
703 
704  Aws::String m_cloudWatchLogsLogGroupArn;
705  bool m_cloudWatchLogsLogGroupArnHasBeenSet;
706 
707  Aws::String m_cloudWatchLogsRoleArn;
708  bool m_cloudWatchLogsRoleArnHasBeenSet;
709 
710  Aws::String m_kmsKeyId;
711  bool m_kmsKeyIdHasBeenSet;
712 
713  bool m_isOrganizationTrail;
714  bool m_isOrganizationTrailHasBeenSet;
715 
716  Aws::Vector<Tag> m_tagsList;
717  bool m_tagsListHasBeenSet;
718  };
719 
720 } // namespace Model
721 } // namespace CloudTrail
722 } // namespace Aws
CreateTrailRequest & AddTagsList(Tag &&value)
void SetName(const Aws::String &value)
void SetKmsKeyId(const Aws::String &value)
CreateTrailRequest & WithTagsList(Aws::Vector< Tag > &&value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
CreateTrailRequest & WithSnsTopicName(const char *value)
CreateTrailRequest & WithCloudWatchLogsRoleArn(const Aws::String &value)
void SetSnsTopicName(const Aws::String &value)
CreateTrailRequest & WithCloudWatchLogsRoleArn(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetTagsList(Aws::Vector< Tag > &&value)
void SetS3BucketName(const Aws::String &value)
void SetCloudWatchLogsRoleArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateTrailRequest & WithCloudWatchLogsRoleArn(Aws::String &&value)
CreateTrailRequest & WithS3BucketName(const char *value)
CreateTrailRequest & WithName(Aws::String &&value)
CreateTrailRequest & WithIsMultiRegionTrail(bool value)
CreateTrailRequest & WithName(const Aws::String &value)
CreateTrailRequest & AddTagsList(const Tag &value)
void SetCloudWatchLogsLogGroupArn(const char *value)
const Aws::Vector< Tag > & GetTagsList() const
CreateTrailRequest & WithKmsKeyId(const Aws::String &value)
CreateTrailRequest & WithS3BucketName(Aws::String &&value)
CreateTrailRequest & WithS3KeyPrefix(Aws::String &&value)
CreateTrailRequest & WithS3KeyPrefix(const Aws::String &value)
void SetS3KeyPrefix(const Aws::String &value)
CreateTrailRequest & WithIncludeGlobalServiceEvents(bool value)
CreateTrailRequest & WithIsOrganizationTrail(bool value)
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
CreateTrailRequest & WithName(const char *value)
void SetCloudWatchLogsRoleArn(Aws::String &&value)
CreateTrailRequest & WithSnsTopicName(Aws::String &&value)
CreateTrailRequest & WithS3KeyPrefix(const char *value)
virtual const char * GetServiceRequestName() const override
void SetTagsList(const Aws::Vector< Tag > &value)
CreateTrailRequest & WithTagsList(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTrailRequest & WithSnsTopicName(const Aws::String &value)
#define AWS_CLOUDTRAIL_API
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
CreateTrailRequest & WithKmsKeyId(const char *value)
CreateTrailRequest & WithEnableLogFileValidation(bool value)
const Aws::String & GetCloudWatchLogsRoleArn() const
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
CreateTrailRequest & WithKmsKeyId(Aws::String &&value)
CreateTrailRequest & WithS3BucketName(const Aws::String &value)
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(const char *value)