AWS SDK for C++

AWS SDK for C++ Version 1.11.889

Loading...
Searching...
No Matches
UpdateTrailResult.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 UpdateTrailResult() = 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 UpdateTrailResult& 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 UpdateTrailResult& 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 UpdateTrailResult& 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 UpdateTrailResult& 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 UpdateTrailResult& 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 UpdateTrailResult& 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 UpdateTrailResult& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
208 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
209 return *this;
210 }
212
214
221 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
222 template <typename KmsKeyIdT = Aws::String>
223 void SetKmsKeyId(KmsKeyIdT&& value) {
224 m_kmsKeyIdHasBeenSet = true;
225 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
226 }
227 template <typename KmsKeyIdT = Aws::String>
228 UpdateTrailResult& WithKmsKeyId(KmsKeyIdT&& value) {
229 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
230 return *this;
231 }
233
235
238 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
239 inline void SetIsOrganizationTrail(bool value) {
240 m_isOrganizationTrailHasBeenSet = true;
241 m_isOrganizationTrail = value;
242 }
245 return *this;
246 }
248
250
253 inline bool GetRecursiveLogging() const { return m_recursiveLogging; }
254 inline void SetRecursiveLogging(bool value) {
255 m_recursiveLoggingHasBeenSet = true;
256 m_recursiveLogging = value;
257 }
259 SetRecursiveLogging(value);
260 return *this;
261 }
263
265
266 inline const Aws::String& GetRequestId() const { return m_requestId; }
267 template <typename RequestIdT = Aws::String>
268 void SetRequestId(RequestIdT&& value) {
269 m_requestIdHasBeenSet = true;
270 m_requestId = std::forward<RequestIdT>(value);
271 }
272 template <typename RequestIdT = Aws::String>
273 UpdateTrailResult& WithRequestId(RequestIdT&& value) {
274 SetRequestId(std::forward<RequestIdT>(value));
275 return *this;
276 }
278 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
279
280 private:
281 Aws::String m_name;
282
283 Aws::String m_s3BucketName;
284
285 Aws::String m_s3KeyPrefix;
286
287 Aws::String m_snsTopicARN;
288
289 bool m_includeGlobalServiceEvents{false};
290
291 bool m_isMultiRegionTrail{false};
292
293 Aws::String m_trailARN;
294
295 bool m_logFileValidationEnabled{false};
296
297 Aws::String m_cloudWatchLogsLogGroupArn;
298
299 Aws::String m_cloudWatchLogsRoleArn;
300
301 Aws::String m_kmsKeyId;
302
303 bool m_isOrganizationTrail{false};
304
305 bool m_recursiveLogging{false};
306
307 Aws::String m_requestId;
308 Aws::Http::HttpResponseCode m_HttpResponseCode;
309 bool m_nameHasBeenSet = false;
310 bool m_s3BucketNameHasBeenSet = false;
311 bool m_s3KeyPrefixHasBeenSet = false;
312 bool m_snsTopicARNHasBeenSet = false;
313 bool m_includeGlobalServiceEventsHasBeenSet = false;
314 bool m_isMultiRegionTrailHasBeenSet = false;
315 bool m_trailARNHasBeenSet = false;
316 bool m_logFileValidationEnabledHasBeenSet = false;
317 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
318 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
319 bool m_kmsKeyIdHasBeenSet = false;
320 bool m_isOrganizationTrailHasBeenSet = false;
321 bool m_recursiveLoggingHasBeenSet = false;
322 bool m_requestIdHasBeenSet = false;
323};
324
325} // namespace Model
326} // namespace CloudTrail
327} // namespace Aws
const Aws::String & GetSnsTopicARN() const
const Aws::String & GetS3BucketName() const
const Aws::String & GetCloudWatchLogsLogGroupArn() const
AWS_CLOUDTRAIL_API UpdateTrailResult()=default
UpdateTrailResult & WithSnsTopicARN(SnsTopicARNT &&value)
AWS_CLOUDTRAIL_API UpdateTrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetS3BucketName(S3BucketNameT &&value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
const Aws::String & GetS3KeyPrefix() const
UpdateTrailResult & WithTrailARN(TrailARNT &&value)
UpdateTrailResult & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
const Aws::String & GetCloudWatchLogsRoleArn() const
UpdateTrailResult & WithS3BucketName(S3BucketNameT &&value)
UpdateTrailResult & WithIncludeGlobalServiceEvents(bool value)
UpdateTrailResult & WithName(NameT &&value)
UpdateTrailResult & WithKmsKeyId(KmsKeyIdT &&value)
UpdateTrailResult & WithIsMultiRegionTrail(bool value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
UpdateTrailResult & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
UpdateTrailResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDTRAIL_API UpdateTrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateTrailResult & WithIsOrganizationTrail(bool value)
UpdateTrailResult & WithLogFileValidationEnabled(bool value)
UpdateTrailResult & WithRecursiveLogging(bool value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateTrailResult & WithS3KeyPrefix(S3KeyPrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue