AWS SDK for C++

AWS SDK for C++ Version 1.11.781

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
115 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
116 inline void SetIncludeGlobalServiceEvents(bool value) {
117 m_includeGlobalServiceEventsHasBeenSet = true;
118 m_includeGlobalServiceEvents = value;
119 }
122 return *this;
123 }
125
127
130 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
131 inline void SetIsMultiRegionTrail(bool value) {
132 m_isMultiRegionTrailHasBeenSet = true;
133 m_isMultiRegionTrail = value;
134 }
137 return *this;
138 }
140
142
147 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
148 template <typename TrailARNT = Aws::String>
149 void SetTrailARN(TrailARNT&& value) {
150 m_trailARNHasBeenSet = true;
151 m_trailARN = std::forward<TrailARNT>(value);
152 }
153 template <typename TrailARNT = Aws::String>
154 UpdateTrailResult& WithTrailARN(TrailARNT&& value) {
155 SetTrailARN(std::forward<TrailARNT>(value));
156 return *this;
157 }
159
161
164 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
165 inline void SetLogFileValidationEnabled(bool value) {
166 m_logFileValidationEnabledHasBeenSet = true;
167 m_logFileValidationEnabled = value;
168 }
171 return *this;
172 }
174
176
180 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
181 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
182 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
183 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
184 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
185 }
186 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
187 UpdateTrailResult& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
188 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
199 template <typename CloudWatchLogsRoleArnT = Aws::String>
200 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
201 m_cloudWatchLogsRoleArnHasBeenSet = true;
202 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
203 }
204 template <typename CloudWatchLogsRoleArnT = Aws::String>
205 UpdateTrailResult& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
206 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
207 return *this;
208 }
210
212
219 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
220 template <typename KmsKeyIdT = Aws::String>
221 void SetKmsKeyId(KmsKeyIdT&& value) {
222 m_kmsKeyIdHasBeenSet = true;
223 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
224 }
225 template <typename KmsKeyIdT = Aws::String>
226 UpdateTrailResult& WithKmsKeyId(KmsKeyIdT&& value) {
227 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
228 return *this;
229 }
231
233
236 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
237 inline void SetIsOrganizationTrail(bool value) {
238 m_isOrganizationTrailHasBeenSet = true;
239 m_isOrganizationTrail = value;
240 }
243 return *this;
244 }
246
248
249 inline const Aws::String& GetRequestId() const { return m_requestId; }
250 template <typename RequestIdT = Aws::String>
251 void SetRequestId(RequestIdT&& value) {
252 m_requestIdHasBeenSet = true;
253 m_requestId = std::forward<RequestIdT>(value);
254 }
255 template <typename RequestIdT = Aws::String>
256 UpdateTrailResult& WithRequestId(RequestIdT&& value) {
257 SetRequestId(std::forward<RequestIdT>(value));
258 return *this;
259 }
261 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
262
263 private:
264 Aws::String m_name;
265
266 Aws::String m_s3BucketName;
267
268 Aws::String m_s3KeyPrefix;
269
270 Aws::String m_snsTopicARN;
271
272 bool m_includeGlobalServiceEvents{false};
273
274 bool m_isMultiRegionTrail{false};
275
276 Aws::String m_trailARN;
277
278 bool m_logFileValidationEnabled{false};
279
280 Aws::String m_cloudWatchLogsLogGroupArn;
281
282 Aws::String m_cloudWatchLogsRoleArn;
283
284 Aws::String m_kmsKeyId;
285
286 bool m_isOrganizationTrail{false};
287
288 Aws::String m_requestId;
289 Aws::Http::HttpResponseCode m_HttpResponseCode;
290 bool m_nameHasBeenSet = false;
291 bool m_s3BucketNameHasBeenSet = false;
292 bool m_s3KeyPrefixHasBeenSet = false;
293 bool m_snsTopicARNHasBeenSet = false;
294 bool m_includeGlobalServiceEventsHasBeenSet = false;
295 bool m_isMultiRegionTrailHasBeenSet = false;
296 bool m_trailARNHasBeenSet = false;
297 bool m_logFileValidationEnabledHasBeenSet = false;
298 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
299 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
300 bool m_kmsKeyIdHasBeenSet = false;
301 bool m_isOrganizationTrailHasBeenSet = false;
302 bool m_requestIdHasBeenSet = false;
303};
304
305} // namespace Model
306} // namespace CloudTrail
307} // 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)
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