AWS SDK for C++  0.12.9
AWS SDK for C++
CreateTrailRequest.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
19 
20 namespace Aws
21 {
22 namespace CloudTrail
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
72  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
73 
84  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
85 
96  inline CreateTrailRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
97 
108  inline CreateTrailRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
109 
120  inline CreateTrailRequest& WithName(const char* value) { SetName(value); return *this;}
121 
128  inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
129 
136  inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
137 
144  inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
145 
152  inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
153 
160  inline CreateTrailRequest& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
161 
168  inline CreateTrailRequest& WithS3BucketName(Aws::String&& value) { SetS3BucketName(value); return *this;}
169 
176  inline CreateTrailRequest& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
177 
184  inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
185 
192  inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
193 
200  inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
201 
208  inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
209 
216  inline CreateTrailRequest& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
217 
224  inline CreateTrailRequest& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(value); return *this;}
225 
232  inline CreateTrailRequest& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
233 
238  inline const Aws::String& GetSnsTopicName() const{ return m_snsTopicName; }
239 
244  inline void SetSnsTopicName(const Aws::String& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; }
245 
250  inline void SetSnsTopicName(Aws::String&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; }
251 
256  inline void SetSnsTopicName(const char* value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName.assign(value); }
257 
262  inline CreateTrailRequest& WithSnsTopicName(const Aws::String& value) { SetSnsTopicName(value); return *this;}
263 
268  inline CreateTrailRequest& WithSnsTopicName(Aws::String&& value) { SetSnsTopicName(value); return *this;}
269 
274  inline CreateTrailRequest& WithSnsTopicName(const char* value) { SetSnsTopicName(value); return *this;}
275 
280  inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
281 
286  inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
287 
292  inline CreateTrailRequest& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;}
293 
298  inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
299 
304  inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
305 
310  inline CreateTrailRequest& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
311 
323  inline bool GetEnableLogFileValidation() const{ return m_enableLogFileValidation; }
324 
336  inline void SetEnableLogFileValidation(bool value) { m_enableLogFileValidationHasBeenSet = true; m_enableLogFileValidation = value; }
337 
349  inline CreateTrailRequest& WithEnableLogFileValidation(bool value) { SetEnableLogFileValidation(value); return *this;}
350 
356  inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
357 
363  inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
364 
370  inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
371 
377  inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
378 
384  inline CreateTrailRequest& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
385 
391  inline CreateTrailRequest& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
392 
398  inline CreateTrailRequest& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
399 
404  inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
405 
410  inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
411 
416  inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
417 
422  inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
423 
428  inline CreateTrailRequest& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;}
429 
434  inline CreateTrailRequest& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(value); return *this;}
435 
440  inline CreateTrailRequest& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
441 
451  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
452 
462  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
463 
473  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
474 
484  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
485 
495  inline CreateTrailRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
496 
506  inline CreateTrailRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
507 
517  inline CreateTrailRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
518 
519  private:
520  Aws::String m_name;
521  bool m_nameHasBeenSet;
522  Aws::String m_s3BucketName;
523  bool m_s3BucketNameHasBeenSet;
524  Aws::String m_s3KeyPrefix;
525  bool m_s3KeyPrefixHasBeenSet;
526  Aws::String m_snsTopicName;
527  bool m_snsTopicNameHasBeenSet;
528  bool m_includeGlobalServiceEvents;
529  bool m_includeGlobalServiceEventsHasBeenSet;
530  bool m_isMultiRegionTrail;
531  bool m_isMultiRegionTrailHasBeenSet;
532  bool m_enableLogFileValidation;
533  bool m_enableLogFileValidationHasBeenSet;
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 SetName(const Aws::String &value)
void SetKmsKeyId(const Aws::String &value)
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)
void SetS3BucketName(const Aws::String &value)
void SetCloudWatchLogsRoleArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateTrailRequest & WithCloudWatchLogsRoleArn(Aws::String &&value)
const Aws::String & GetCloudWatchLogsRoleArn() const
CreateTrailRequest & WithS3BucketName(const char *value)
CreateTrailRequest & WithName(Aws::String &&value)
const Aws::String & GetSnsTopicName() const
CreateTrailRequest & WithIsMultiRegionTrail(bool value)
CreateTrailRequest & WithName(const Aws::String &value)
void SetCloudWatchLogsLogGroupArn(const char *value)
const Aws::String & GetS3KeyPrefix() 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)
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)
const Aws::String & GetS3BucketName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTrailRequest & WithSnsTopicName(const Aws::String &value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
#define AWS_CLOUDTRAIL_API
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
CreateTrailRequest & WithKmsKeyId(const char *value)
CreateTrailRequest & WithEnableLogFileValidation(bool value)
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
CreateTrailRequest & WithKmsKeyId(Aws::String &&value)
CreateTrailRequest & WithS3BucketName(const Aws::String &value)
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(const char *value)
JSON (JavaScript Object Notation).