AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateTrailResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail
24{
25namespace Model
26{
34 {
35 public:
36 AWS_CLOUDTRAIL_API CreateTrailResult() = default;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateTrailResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
58 template<typename S3BucketNameT = Aws::String>
59 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
60 template<typename S3BucketNameT = Aws::String>
61 CreateTrailResult& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
63
65
71 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
72 template<typename S3KeyPrefixT = Aws::String>
73 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
74 template<typename S3KeyPrefixT = Aws::String>
75 CreateTrailResult& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
77
79
84 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
85 template<typename SnsTopicARNT = Aws::String>
86 void SetSnsTopicARN(SnsTopicARNT&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = std::forward<SnsTopicARNT>(value); }
87 template<typename SnsTopicARNT = Aws::String>
88 CreateTrailResult& WithSnsTopicARN(SnsTopicARNT&& value) { SetSnsTopicARN(std::forward<SnsTopicARNT>(value)); return *this;}
90
92
96 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
97 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
100
102
105 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
106 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
107 inline CreateTrailResult& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
109
111
116 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
117 template<typename TrailARNT = Aws::String>
118 void SetTrailARN(TrailARNT&& value) { m_trailARNHasBeenSet = true; m_trailARN = std::forward<TrailARNT>(value); }
119 template<typename TrailARNT = Aws::String>
120 CreateTrailResult& WithTrailARN(TrailARNT&& value) { SetTrailARN(std::forward<TrailARNT>(value)); return *this;}
122
124
127 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
128 inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabledHasBeenSet = true; m_logFileValidationEnabled = value; }
131
133
137 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
138 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
139 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value); }
140 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
141 CreateTrailResult& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value)); return *this;}
143
145
149 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
150 template<typename CloudWatchLogsRoleArnT = Aws::String>
151 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
152 template<typename CloudWatchLogsRoleArnT = Aws::String>
153 CreateTrailResult& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value)); return *this;}
155
157
163 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
164 template<typename KmsKeyIdT = Aws::String>
165 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
166 template<typename KmsKeyIdT = Aws::String>
167 CreateTrailResult& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
169
171
174 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
175 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
176 inline CreateTrailResult& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
178
180
181 inline const Aws::String& GetRequestId() const { return m_requestId; }
182 template<typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
184 template<typename RequestIdT = Aws::String>
185 CreateTrailResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
187 private:
188
189 Aws::String m_name;
190 bool m_nameHasBeenSet = false;
191
192 Aws::String m_s3BucketName;
193 bool m_s3BucketNameHasBeenSet = false;
194
195 Aws::String m_s3KeyPrefix;
196 bool m_s3KeyPrefixHasBeenSet = false;
197
198 Aws::String m_snsTopicARN;
199 bool m_snsTopicARNHasBeenSet = false;
200
201 bool m_includeGlobalServiceEvents{false};
202 bool m_includeGlobalServiceEventsHasBeenSet = false;
203
204 bool m_isMultiRegionTrail{false};
205 bool m_isMultiRegionTrailHasBeenSet = false;
206
207 Aws::String m_trailARN;
208 bool m_trailARNHasBeenSet = false;
209
210 bool m_logFileValidationEnabled{false};
211 bool m_logFileValidationEnabledHasBeenSet = false;
212
213 Aws::String m_cloudWatchLogsLogGroupArn;
214 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
215
216 Aws::String m_cloudWatchLogsRoleArn;
217 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
218
219 Aws::String m_kmsKeyId;
220 bool m_kmsKeyIdHasBeenSet = false;
221
222 bool m_isOrganizationTrail{false};
223 bool m_isOrganizationTrailHasBeenSet = false;
224
225 Aws::String m_requestId;
226 bool m_requestIdHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace CloudTrail
231} // namespace Aws
CreateTrailResult & WithKmsKeyId(KmsKeyIdT &&value)
CreateTrailResult & WithIncludeGlobalServiceEvents(bool value)
CreateTrailResult & WithTrailARN(TrailARNT &&value)
CreateTrailResult & WithS3KeyPrefix(S3KeyPrefixT &&value)
CreateTrailResult & WithLogFileValidationEnabled(bool value)
const Aws::String & GetS3KeyPrefix() const
AWS_CLOUDTRAIL_API CreateTrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API CreateTrailResult()=default
CreateTrailResult & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
void SetS3BucketName(S3BucketNameT &&value)
CreateTrailResult & WithRequestId(RequestIdT &&value)
CreateTrailResult & WithS3BucketName(S3BucketNameT &&value)
CreateTrailResult & WithIsMultiRegionTrail(bool value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
CreateTrailResult & WithName(NameT &&value)
CreateTrailResult & WithIsOrganizationTrail(bool value)
AWS_CLOUDTRAIL_API CreateTrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateTrailResult & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailResult & WithSnsTopicARN(SnsTopicARNT &&value)
const Aws::String & GetS3BucketName() const
const Aws::String & GetSnsTopicARN() const
const Aws::String & GetCloudWatchLogsRoleArn() const
const Aws::String & GetCloudWatchLogsLogGroupArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue