AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTrailResult.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 UpdateTrailResult();
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline void SetName(const Aws::String& value) { m_name = value; }
47 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
48 inline void SetName(const char* value) { m_name.assign(value); }
49 inline UpdateTrailResult& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline UpdateTrailResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline UpdateTrailResult& WithName(const char* value) { SetName(value); return *this;}
53
55
59 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
60 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketName = value; }
61 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketName = std::move(value); }
62 inline void SetS3BucketName(const char* value) { m_s3BucketName.assign(value); }
63 inline UpdateTrailResult& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
64 inline UpdateTrailResult& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
65 inline UpdateTrailResult& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
67
69
75 inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
76 inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefix = value; }
77 inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefix = std::move(value); }
78 inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefix.assign(value); }
79 inline UpdateTrailResult& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
80 inline UpdateTrailResult& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
81 inline UpdateTrailResult& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
83
85
90 inline const Aws::String& GetSnsTopicARN() const{ return m_snsTopicARN; }
91 inline void SetSnsTopicARN(const Aws::String& value) { m_snsTopicARN = value; }
92 inline void SetSnsTopicARN(Aws::String&& value) { m_snsTopicARN = std::move(value); }
93 inline void SetSnsTopicARN(const char* value) { m_snsTopicARN.assign(value); }
94 inline UpdateTrailResult& WithSnsTopicARN(const Aws::String& value) { SetSnsTopicARN(value); return *this;}
95 inline UpdateTrailResult& WithSnsTopicARN(Aws::String&& value) { SetSnsTopicARN(std::move(value)); return *this;}
96 inline UpdateTrailResult& WithSnsTopicARN(const char* value) { SetSnsTopicARN(value); return *this;}
98
100
104 inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
105 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEvents = value; }
108
110
113 inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
114 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrail = value; }
115 inline UpdateTrailResult& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
117
119
124 inline const Aws::String& GetTrailARN() const{ return m_trailARN; }
125 inline void SetTrailARN(const Aws::String& value) { m_trailARN = value; }
126 inline void SetTrailARN(Aws::String&& value) { m_trailARN = std::move(value); }
127 inline void SetTrailARN(const char* value) { m_trailARN.assign(value); }
128 inline UpdateTrailResult& WithTrailARN(const Aws::String& value) { SetTrailARN(value); return *this;}
129 inline UpdateTrailResult& WithTrailARN(Aws::String&& value) { SetTrailARN(std::move(value)); return *this;}
130 inline UpdateTrailResult& WithTrailARN(const char* value) { SetTrailARN(value); return *this;}
132
134
137 inline bool GetLogFileValidationEnabled() const{ return m_logFileValidationEnabled; }
138 inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabled = value; }
141
143
147 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
148 inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArn = value; }
149 inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArn = std::move(value); }
150 inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArn.assign(value); }
153 inline UpdateTrailResult& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
155
157
161 inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
162 inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArn = value; }
163 inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArn = std::move(value); }
164 inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArn.assign(value); }
166 inline UpdateTrailResult& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;}
167 inline UpdateTrailResult& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
169
171
177 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
178 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; }
179 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = std::move(value); }
180 inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); }
181 inline UpdateTrailResult& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
182 inline UpdateTrailResult& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
183 inline UpdateTrailResult& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
185
187
190 inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; }
191 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrail = value; }
192 inline UpdateTrailResult& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
194
196
197 inline const Aws::String& GetRequestId() const{ return m_requestId; }
198 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
199 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
200 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
201 inline UpdateTrailResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
202 inline UpdateTrailResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
203 inline UpdateTrailResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
205 private:
206
207 Aws::String m_name;
208
209 Aws::String m_s3BucketName;
210
211 Aws::String m_s3KeyPrefix;
212
213 Aws::String m_snsTopicARN;
214
215 bool m_includeGlobalServiceEvents;
216
217 bool m_isMultiRegionTrail;
218
219 Aws::String m_trailARN;
220
221 bool m_logFileValidationEnabled;
222
223 Aws::String m_cloudWatchLogsLogGroupArn;
224
225 Aws::String m_cloudWatchLogsRoleArn;
226
227 Aws::String m_kmsKeyId;
228
229 bool m_isOrganizationTrail;
230
231 Aws::String m_requestId;
232 };
233
234} // namespace Model
235} // namespace CloudTrail
236} // namespace Aws
UpdateTrailResult & WithSnsTopicARN(const Aws::String &value)
UpdateTrailResult & WithCloudWatchLogsRoleArn(Aws::String &&value)
UpdateTrailResult & WithCloudWatchLogsLogGroupArn(const char *value)
const Aws::String & GetSnsTopicARN() const
UpdateTrailResult & WithTrailARN(const char *value)
void SetCloudWatchLogsRoleArn(Aws::String &&value)
void SetS3KeyPrefix(const Aws::String &value)
void SetSnsTopicARN(const Aws::String &value)
const Aws::String & GetS3BucketName() const
void SetTrailARN(const Aws::String &value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
UpdateTrailResult & WithS3BucketName(Aws::String &&value)
AWS_CLOUDTRAIL_API UpdateTrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateTrailResult & WithS3KeyPrefix(const char *value)
void SetCloudWatchLogsLogGroupArn(const char *value)
void SetRequestId(const Aws::String &value)
UpdateTrailResult & WithKmsKeyId(const char *value)
void SetKmsKeyId(const Aws::String &value)
void SetS3BucketName(const Aws::String &value)
const Aws::String & GetS3KeyPrefix() const
UpdateTrailResult & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
const Aws::String & GetCloudWatchLogsRoleArn() const
UpdateTrailResult & WithTrailARN(const Aws::String &value)
UpdateTrailResult & WithIncludeGlobalServiceEvents(bool value)
UpdateTrailResult & WithSnsTopicARN(const char *value)
UpdateTrailResult & WithRequestId(const char *value)
UpdateTrailResult & WithTrailARN(Aws::String &&value)
UpdateTrailResult & WithSnsTopicARN(Aws::String &&value)
UpdateTrailResult & WithName(const Aws::String &value)
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
UpdateTrailResult & WithCloudWatchLogsRoleArn(const char *value)
UpdateTrailResult & WithCloudWatchLogsRoleArn(const Aws::String &value)
UpdateTrailResult & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
UpdateTrailResult & WithS3KeyPrefix(Aws::String &&value)
UpdateTrailResult & WithKmsKeyId(Aws::String &&value)
UpdateTrailResult & WithRequestId(Aws::String &&value)
UpdateTrailResult & WithIsMultiRegionTrail(bool value)
UpdateTrailResult & WithName(Aws::String &&value)
UpdateTrailResult & WithS3BucketName(const Aws::String &value)
UpdateTrailResult & WithName(const char *value)
UpdateTrailResult & WithS3KeyPrefix(const Aws::String &value)
UpdateTrailResult & WithKmsKeyId(const Aws::String &value)
AWS_CLOUDTRAIL_API UpdateTrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
UpdateTrailResult & WithIsOrganizationTrail(bool value)
UpdateTrailResult & WithLogFileValidationEnabled(bool value)
void SetCloudWatchLogsRoleArn(const Aws::String &value)
UpdateTrailResult & WithRequestId(const Aws::String &value)
void SetName(const Aws::String &value)
UpdateTrailResult & WithS3BucketName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue