AWS SDK for C++  0.14.3
AWS SDK for C++
CreateTrailResult.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 template<typename RESULT_TYPE>
22 class AmazonWebServiceResult;
23 
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace CloudTrail
32 {
33 namespace Model
34 {
40  {
41  public:
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_name = value; }
60 
64  inline void SetName(const char* value) { m_name.assign(value); }
65 
69  inline CreateTrailResult& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline CreateTrailResult& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline CreateTrailResult& WithName(const char* value) { SetName(value); return *this;}
80 
85  inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
86 
91  inline void SetS3BucketName(const Aws::String& value) { m_s3BucketName = value; }
92 
97  inline void SetS3BucketName(Aws::String&& value) { m_s3BucketName = value; }
98 
103  inline void SetS3BucketName(const char* value) { m_s3BucketName.assign(value); }
104 
109  inline CreateTrailResult& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
110 
115  inline CreateTrailResult& WithS3BucketName(Aws::String&& value) { SetS3BucketName(value); return *this;}
116 
121  inline CreateTrailResult& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
122 
129  inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
130 
137  inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefix = value; }
138 
145  inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefix = value; }
146 
153  inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefix.assign(value); }
154 
161  inline CreateTrailResult& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
162 
169  inline CreateTrailResult& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(value); return *this;}
170 
177  inline CreateTrailResult& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
178 
184  inline const Aws::String& GetSnsTopicARN() const{ return m_snsTopicARN; }
185 
191  inline void SetSnsTopicARN(const Aws::String& value) { m_snsTopicARN = value; }
192 
198  inline void SetSnsTopicARN(Aws::String&& value) { m_snsTopicARN = value; }
199 
205  inline void SetSnsTopicARN(const char* value) { m_snsTopicARN.assign(value); }
206 
212  inline CreateTrailResult& WithSnsTopicARN(const Aws::String& value) { SetSnsTopicARN(value); return *this;}
213 
219  inline CreateTrailResult& WithSnsTopicARN(Aws::String&& value) { SetSnsTopicARN(value); return *this;}
220 
226  inline CreateTrailResult& WithSnsTopicARN(const char* value) { SetSnsTopicARN(value); return *this;}
227 
232  inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
233 
238  inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEvents = value; }
239 
244  inline CreateTrailResult& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;}
245 
249  inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
250 
254  inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrail = value; }
255 
259  inline CreateTrailResult& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
260 
266  inline const Aws::String& GetTrailARN() const{ return m_trailARN; }
267 
273  inline void SetTrailARN(const Aws::String& value) { m_trailARN = value; }
274 
280  inline void SetTrailARN(Aws::String&& value) { m_trailARN = value; }
281 
287  inline void SetTrailARN(const char* value) { m_trailARN.assign(value); }
288 
294  inline CreateTrailResult& WithTrailARN(const Aws::String& value) { SetTrailARN(value); return *this;}
295 
301  inline CreateTrailResult& WithTrailARN(Aws::String&& value) { SetTrailARN(value); return *this;}
302 
308  inline CreateTrailResult& WithTrailARN(const char* value) { SetTrailARN(value); return *this;}
309 
313  inline bool GetLogFileValidationEnabled() const{ return m_logFileValidationEnabled; }
314 
318  inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabled = value; }
319 
323  inline CreateTrailResult& WithLogFileValidationEnabled(bool value) { SetLogFileValidationEnabled(value); return *this;}
324 
329  inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
330 
335  inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArn = value; }
336 
341  inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArn = value; }
342 
347  inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArn.assign(value); }
348 
353  inline CreateTrailResult& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
354 
359  inline CreateTrailResult& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
360 
365  inline CreateTrailResult& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
366 
371  inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
372 
377  inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArn = value; }
378 
383  inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArn = value; }
384 
389  inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArn.assign(value); }
390 
395  inline CreateTrailResult& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;}
396 
401  inline CreateTrailResult& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(value); return *this;}
402 
407  inline CreateTrailResult& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
408 
415  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
416 
423  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; }
424 
431  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = value; }
432 
439  inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); }
440 
447  inline CreateTrailResult& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
448 
455  inline CreateTrailResult& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
456 
463  inline CreateTrailResult& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
464 
465  private:
466  Aws::String m_name;
467  Aws::String m_s3BucketName;
468  Aws::String m_s3KeyPrefix;
469  Aws::String m_snsTopicARN;
470  bool m_includeGlobalServiceEvents;
471  bool m_isMultiRegionTrail;
472  Aws::String m_trailARN;
473  bool m_logFileValidationEnabled;
474  Aws::String m_cloudWatchLogsLogGroupArn;
475  Aws::String m_cloudWatchLogsRoleArn;
476  Aws::String m_kmsKeyId;
477  };
478 
479 } // namespace Model
480 } // namespace CloudTrail
481 } // namespace Aws
CreateTrailResult & WithSnsTopicARN(const Aws::String &value)
CreateTrailResult & WithLogFileValidationEnabled(bool value)
CreateTrailResult & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
CreateTrailResult & WithCloudWatchLogsRoleArn(const char *value)
CreateTrailResult & WithSnsTopicARN(Aws::String &&value)
CreateTrailResult & WithS3BucketName(const Aws::String &value)
CreateTrailResult & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
const Aws::String & GetSnsTopicARN() const
CreateTrailResult & WithS3BucketName(Aws::String &&value)
CreateTrailResult & WithKmsKeyId(const Aws::String &value)
CreateTrailResult & WithS3KeyPrefix(Aws::String &&value)
void SetCloudWatchLogsLogGroupArn(const char *value)
CreateTrailResult & WithKmsKeyId(Aws::String &&value)
CreateTrailResult & WithIncludeGlobalServiceEvents(bool value)
CreateTrailResult & WithCloudWatchLogsRoleArn(const Aws::String &value)
void SetSnsTopicARN(const Aws::String &value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
CreateTrailResult & WithSnsTopicARN(const char *value)
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
const Aws::String & GetS3KeyPrefix() const
void SetTrailARN(const Aws::String &value)
CreateTrailResult & WithName(Aws::String &&value)
CreateTrailResult & WithTrailARN(const char *value)
CreateTrailResult & WithS3KeyPrefix(const Aws::String &value)
const Aws::String & GetName() const
CreateTrailResult & WithS3BucketName(const char *value)
void SetCloudWatchLogsRoleArn(const char *value)
CreateTrailResult & WithS3KeyPrefix(const char *value)
CreateTrailResult & WithName(const char *value)
void SetKmsKeyId(const Aws::String &value)
const Aws::String & GetCloudWatchLogsRoleArn() const
void SetCloudWatchLogsRoleArn(Aws::String &&value)
void SetName(const Aws::String &value)
void SetS3BucketName(const Aws::String &value)
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
CreateTrailResult & WithTrailARN(const Aws::String &value)
void SetCloudWatchLogsRoleArn(const Aws::String &value)
CreateTrailResult & WithIsMultiRegionTrail(bool value)
CreateTrailResult & WithName(const Aws::String &value)
const Aws::String & GetTrailARN() const
CreateTrailResult & WithCloudWatchLogsLogGroupArn(const char *value)
void SetS3KeyPrefix(const Aws::String &value)
CreateTrailResult & WithKmsKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetS3BucketName() const
#define AWS_CLOUDTRAIL_API
CreateTrailResult & WithTrailARN(Aws::String &&value)
CreateTrailResult & WithCloudWatchLogsRoleArn(Aws::String &&value)
const Aws::String & GetKmsKeyId() const
JSON (JavaScript Object Notation).