AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateTrailRequest.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 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
64  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 
78  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
79 
92  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 
106  inline UpdateTrailRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
120  inline UpdateTrailRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
121 
134  inline UpdateTrailRequest& WithName(const char* value) { SetName(value); return *this;}
135 
142  inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
143 
150  inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
151 
158  inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
159 
166  inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
167 
174  inline UpdateTrailRequest& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
175 
182  inline UpdateTrailRequest& WithS3BucketName(Aws::String&& value) { SetS3BucketName(value); return *this;}
183 
190  inline UpdateTrailRequest& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
191 
198  inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
199 
206  inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
207 
214  inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
215 
222  inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
223 
230  inline UpdateTrailRequest& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
231 
238  inline UpdateTrailRequest& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(value); return *this;}
239 
246  inline UpdateTrailRequest& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
247 
252  inline const Aws::String& GetSnsTopicName() const{ return m_snsTopicName; }
253 
258  inline void SetSnsTopicName(const Aws::String& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; }
259 
264  inline void SetSnsTopicName(Aws::String&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; }
265 
270  inline void SetSnsTopicName(const char* value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName.assign(value); }
271 
276  inline UpdateTrailRequest& WithSnsTopicName(const Aws::String& value) { SetSnsTopicName(value); return *this;}
277 
282  inline UpdateTrailRequest& WithSnsTopicName(Aws::String&& value) { SetSnsTopicName(value); return *this;}
283 
288  inline UpdateTrailRequest& WithSnsTopicName(const char* value) { SetSnsTopicName(value); return *this;}
289 
294  inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
295 
300  inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
301 
306  inline UpdateTrailRequest& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;}
307 
316  inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
317 
326  inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
327 
336  inline UpdateTrailRequest& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
337 
349  inline bool GetEnableLogFileValidation() const{ return m_enableLogFileValidation; }
350 
362  inline void SetEnableLogFileValidation(bool value) { m_enableLogFileValidationHasBeenSet = true; m_enableLogFileValidation = value; }
363 
375  inline UpdateTrailRequest& WithEnableLogFileValidation(bool value) { SetEnableLogFileValidation(value); return *this;}
376 
382  inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
383 
389  inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
390 
396  inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
397 
403  inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
404 
410  inline UpdateTrailRequest& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
411 
417  inline UpdateTrailRequest& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
418 
424  inline UpdateTrailRequest& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
425 
430  inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
431 
436  inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
437 
442  inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
443 
448  inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
449 
454  inline UpdateTrailRequest& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;}
455 
460  inline UpdateTrailRequest& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(value); return *this;}
461 
466  inline UpdateTrailRequest& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
467 
477  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
478 
488  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
489 
499  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
500 
510  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
511 
521  inline UpdateTrailRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
522 
532  inline UpdateTrailRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
533 
543  inline UpdateTrailRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
544 
545  private:
546  Aws::String m_name;
547  bool m_nameHasBeenSet;
548  Aws::String m_s3BucketName;
549  bool m_s3BucketNameHasBeenSet;
550  Aws::String m_s3KeyPrefix;
551  bool m_s3KeyPrefixHasBeenSet;
552  Aws::String m_snsTopicName;
553  bool m_snsTopicNameHasBeenSet;
554  bool m_includeGlobalServiceEvents;
555  bool m_includeGlobalServiceEventsHasBeenSet;
556  bool m_isMultiRegionTrail;
557  bool m_isMultiRegionTrailHasBeenSet;
558  bool m_enableLogFileValidation;
559  bool m_enableLogFileValidationHasBeenSet;
560  Aws::String m_cloudWatchLogsLogGroupArn;
561  bool m_cloudWatchLogsLogGroupArnHasBeenSet;
562  Aws::String m_cloudWatchLogsRoleArn;
563  bool m_cloudWatchLogsRoleArnHasBeenSet;
564  Aws::String m_kmsKeyId;
565  bool m_kmsKeyIdHasBeenSet;
566  };
567 
568 } // namespace Model
569 } // namespace CloudTrail
570 } // namespace Aws
const Aws::String & GetSnsTopicName() const
UpdateTrailRequest & WithSnsTopicName(const char *value)
UpdateTrailRequest & WithEnableLogFileValidation(bool value)
const Aws::String & GetCloudWatchLogsRoleArn() const
UpdateTrailRequest & WithName(const char *value)
UpdateTrailRequest & WithS3BucketName(const char *value)
UpdateTrailRequest & WithSnsTopicName(Aws::String &&value)
UpdateTrailRequest & WithCloudWatchLogsRoleArn(const char *value)
UpdateTrailRequest & WithName(Aws::String &&value)
UpdateTrailRequest & WithS3KeyPrefix(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetS3BucketName(const Aws::String &value)
UpdateTrailRequest & WithS3BucketName(const Aws::String &value)
UpdateTrailRequest & WithS3KeyPrefix(Aws::String &&value)
void SetS3KeyPrefix(const Aws::String &value)
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
UpdateTrailRequest & WithIncludeGlobalServiceEvents(bool value)
void SetSnsTopicName(const Aws::String &value)
void SetCloudWatchLogsLogGroupArn(const char *value)
UpdateTrailRequest & WithKmsKeyId(const char *value)
UpdateTrailRequest & WithKmsKeyId(Aws::String &&value)
UpdateTrailRequest & WithCloudWatchLogsRoleArn(Aws::String &&value)
void SetCloudWatchLogsRoleArn(const Aws::String &value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
UpdateTrailRequest & WithName(const Aws::String &value)
const Aws::String & GetS3BucketName() const
UpdateTrailRequest & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
UpdateTrailRequest & WithKmsKeyId(const Aws::String &value)
void SetCloudWatchLogsRoleArn(Aws::String &&value)
UpdateTrailRequest & WithS3BucketName(Aws::String &&value)
const Aws::String & GetS3KeyPrefix() const
UpdateTrailRequest & WithCloudWatchLogsLogGroupArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateTrailRequest & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
#define AWS_CLOUDTRAIL_API
UpdateTrailRequest & WithSnsTopicName(const Aws::String &value)
void SetKmsKeyId(const Aws::String &value)
UpdateTrailRequest & WithIsMultiRegionTrail(bool value)
UpdateTrailRequest & WithCloudWatchLogsRoleArn(const Aws::String &value)
UpdateTrailRequest & WithS3KeyPrefix(const char *value)
void SetName(const Aws::String &value)
JSON (JavaScript Object Notation).