AWS SDK for C++

AWS SDK for C++ Version 1.11.889

Loading...
Searching...
No Matches
CreateTrailResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail {
23namespace Model {
31 public:
32 AWS_CLOUDTRAIL_API CreateTrailResult() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 CreateTrailResult& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
59 template <typename S3BucketNameT = Aws::String>
60 void SetS3BucketName(S3BucketNameT&& value) {
61 m_s3BucketNameHasBeenSet = true;
62 m_s3BucketName = std::forward<S3BucketNameT>(value);
63 }
64 template <typename S3BucketNameT = Aws::String>
65 CreateTrailResult& WithS3BucketName(S3BucketNameT&& value) {
66 SetS3BucketName(std::forward<S3BucketNameT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
79 template <typename S3KeyPrefixT = Aws::String>
80 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
81 m_s3KeyPrefixHasBeenSet = true;
82 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
83 }
84 template <typename S3KeyPrefixT = Aws::String>
85 CreateTrailResult& WithS3KeyPrefix(S3KeyPrefixT&& value) {
86 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
98 template <typename SnsTopicARNT = Aws::String>
99 void SetSnsTopicARN(SnsTopicARNT&& value) {
100 m_snsTopicARNHasBeenSet = true;
101 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
102 }
103 template <typename SnsTopicARNT = Aws::String>
104 CreateTrailResult& WithSnsTopicARN(SnsTopicARNT&& value) {
105 SetSnsTopicARN(std::forward<SnsTopicARNT>(value));
106 return *this;
107 }
109
111
117 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
118 inline void SetIncludeGlobalServiceEvents(bool value) {
119 m_includeGlobalServiceEventsHasBeenSet = true;
120 m_includeGlobalServiceEvents = value;
121 }
124 return *this;
125 }
127
129
132 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
133 inline void SetIsMultiRegionTrail(bool value) {
134 m_isMultiRegionTrailHasBeenSet = true;
135 m_isMultiRegionTrail = value;
136 }
139 return *this;
140 }
142
144
149 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
150 template <typename TrailARNT = Aws::String>
151 void SetTrailARN(TrailARNT&& value) {
152 m_trailARNHasBeenSet = true;
153 m_trailARN = std::forward<TrailARNT>(value);
154 }
155 template <typename TrailARNT = Aws::String>
156 CreateTrailResult& WithTrailARN(TrailARNT&& value) {
157 SetTrailARN(std::forward<TrailARNT>(value));
158 return *this;
159 }
161
163
166 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
167 inline void SetLogFileValidationEnabled(bool value) {
168 m_logFileValidationEnabledHasBeenSet = true;
169 m_logFileValidationEnabled = value;
170 }
173 return *this;
174 }
176
178
182 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
183 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
184 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
185 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
186 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
187 }
188 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
189 CreateTrailResult& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
190 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
191 return *this;
192 }
194
196
200 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
201 template <typename CloudWatchLogsRoleArnT = Aws::String>
202 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
203 m_cloudWatchLogsRoleArnHasBeenSet = true;
204 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
205 }
206 template <typename CloudWatchLogsRoleArnT = Aws::String>
207 CreateTrailResult& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
208 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
209 return *this;
210 }
212
214
220 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
221 template <typename KmsKeyIdT = Aws::String>
222 void SetKmsKeyId(KmsKeyIdT&& value) {
223 m_kmsKeyIdHasBeenSet = true;
224 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
225 }
226 template <typename KmsKeyIdT = Aws::String>
227 CreateTrailResult& WithKmsKeyId(KmsKeyIdT&& value) {
228 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
229 return *this;
230 }
232
234
237 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
238 inline void SetIsOrganizationTrail(bool value) {
239 m_isOrganizationTrailHasBeenSet = true;
240 m_isOrganizationTrail = value;
241 }
244 return *this;
245 }
247
249
252 inline bool GetRecursiveLogging() const { return m_recursiveLogging; }
253 inline void SetRecursiveLogging(bool value) {
254 m_recursiveLoggingHasBeenSet = true;
255 m_recursiveLogging = value;
256 }
258 SetRecursiveLogging(value);
259 return *this;
260 }
262
264
265 inline const Aws::String& GetRequestId() const { return m_requestId; }
266 template <typename RequestIdT = Aws::String>
267 void SetRequestId(RequestIdT&& value) {
268 m_requestIdHasBeenSet = true;
269 m_requestId = std::forward<RequestIdT>(value);
270 }
271 template <typename RequestIdT = Aws::String>
272 CreateTrailResult& WithRequestId(RequestIdT&& value) {
273 SetRequestId(std::forward<RequestIdT>(value));
274 return *this;
275 }
277 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
278
279 private:
280 Aws::String m_name;
281
282 Aws::String m_s3BucketName;
283
284 Aws::String m_s3KeyPrefix;
285
286 Aws::String m_snsTopicARN;
287
288 bool m_includeGlobalServiceEvents{false};
289
290 bool m_isMultiRegionTrail{false};
291
292 Aws::String m_trailARN;
293
294 bool m_logFileValidationEnabled{false};
295
296 Aws::String m_cloudWatchLogsLogGroupArn;
297
298 Aws::String m_cloudWatchLogsRoleArn;
299
300 Aws::String m_kmsKeyId;
301
302 bool m_isOrganizationTrail{false};
303
304 bool m_recursiveLogging{false};
305
306 Aws::String m_requestId;
307 Aws::Http::HttpResponseCode m_HttpResponseCode;
308 bool m_nameHasBeenSet = false;
309 bool m_s3BucketNameHasBeenSet = false;
310 bool m_s3KeyPrefixHasBeenSet = false;
311 bool m_snsTopicARNHasBeenSet = false;
312 bool m_includeGlobalServiceEventsHasBeenSet = false;
313 bool m_isMultiRegionTrailHasBeenSet = false;
314 bool m_trailARNHasBeenSet = false;
315 bool m_logFileValidationEnabledHasBeenSet = false;
316 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
317 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
318 bool m_kmsKeyIdHasBeenSet = false;
319 bool m_isOrganizationTrailHasBeenSet = false;
320 bool m_recursiveLoggingHasBeenSet = false;
321 bool m_requestIdHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace CloudTrail
326} // namespace Aws
CreateTrailResult & WithKmsKeyId(KmsKeyIdT &&value)
CreateTrailResult & WithIncludeGlobalServiceEvents(bool value)
CreateTrailResult & WithTrailARN(TrailARNT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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 & WithRecursiveLogging(bool 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