AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LogGroup.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/DataProtectionStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/logs/model/LogGroupClass.h>
12#include <aws/logs/model/InheritedProperty.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CloudWatchLogs
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CLOUDWATCHLOGS_API LogGroup();
39 AWS_CLOUDWATCHLOGS_API LogGroup(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API LogGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
49 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
50 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
51 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
52 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
53 inline LogGroup& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
54 inline LogGroup& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
55 inline LogGroup& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
57
59
63 inline long long GetCreationTime() const{ return m_creationTime; }
64 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
65 inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
66 inline LogGroup& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
68
70
71 inline int GetRetentionInDays() const{ return m_retentionInDays; }
72 inline bool RetentionInDaysHasBeenSet() const { return m_retentionInDaysHasBeenSet; }
73 inline void SetRetentionInDays(int value) { m_retentionInDaysHasBeenSet = true; m_retentionInDays = value; }
74 inline LogGroup& WithRetentionInDays(int value) { SetRetentionInDays(value); return *this;}
76
78
81 inline int GetMetricFilterCount() const{ return m_metricFilterCount; }
82 inline bool MetricFilterCountHasBeenSet() const { return m_metricFilterCountHasBeenSet; }
83 inline void SetMetricFilterCount(int value) { m_metricFilterCountHasBeenSet = true; m_metricFilterCount = value; }
84 inline LogGroup& WithMetricFilterCount(int value) { SetMetricFilterCount(value); return *this;}
86
88
101 inline const Aws::String& GetArn() const{ return m_arn; }
102 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
103 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
104 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
105 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
106 inline LogGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
107 inline LogGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
108 inline LogGroup& WithArn(const char* value) { SetArn(value); return *this;}
110
112
115 inline long long GetStoredBytes() const{ return m_storedBytes; }
116 inline bool StoredBytesHasBeenSet() const { return m_storedBytesHasBeenSet; }
117 inline void SetStoredBytes(long long value) { m_storedBytesHasBeenSet = true; m_storedBytes = value; }
118 inline LogGroup& WithStoredBytes(long long value) { SetStoredBytes(value); return *this;}
120
122
126 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
127 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
128 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
129 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
130 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
131 inline LogGroup& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
132 inline LogGroup& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
133 inline LogGroup& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
135
137
142 inline const DataProtectionStatus& GetDataProtectionStatus() const{ return m_dataProtectionStatus; }
143 inline bool DataProtectionStatusHasBeenSet() const { return m_dataProtectionStatusHasBeenSet; }
144 inline void SetDataProtectionStatus(const DataProtectionStatus& value) { m_dataProtectionStatusHasBeenSet = true; m_dataProtectionStatus = value; }
145 inline void SetDataProtectionStatus(DataProtectionStatus&& value) { m_dataProtectionStatusHasBeenSet = true; m_dataProtectionStatus = std::move(value); }
147 inline LogGroup& WithDataProtectionStatus(DataProtectionStatus&& value) { SetDataProtectionStatus(std::move(value)); return *this;}
149
151
155 inline const Aws::Vector<InheritedProperty>& GetInheritedProperties() const{ return m_inheritedProperties; }
156 inline bool InheritedPropertiesHasBeenSet() const { return m_inheritedPropertiesHasBeenSet; }
157 inline void SetInheritedProperties(const Aws::Vector<InheritedProperty>& value) { m_inheritedPropertiesHasBeenSet = true; m_inheritedProperties = value; }
158 inline void SetInheritedProperties(Aws::Vector<InheritedProperty>&& value) { m_inheritedPropertiesHasBeenSet = true; m_inheritedProperties = std::move(value); }
161 inline LogGroup& AddInheritedProperties(const InheritedProperty& value) { m_inheritedPropertiesHasBeenSet = true; m_inheritedProperties.push_back(value); return *this; }
162 inline LogGroup& AddInheritedProperties(InheritedProperty&& value) { m_inheritedPropertiesHasBeenSet = true; m_inheritedProperties.push_back(std::move(value)); return *this; }
164
166
176 inline const LogGroupClass& GetLogGroupClass() const{ return m_logGroupClass; }
177 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
178 inline void SetLogGroupClass(const LogGroupClass& value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = value; }
179 inline void SetLogGroupClass(LogGroupClass&& value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = std::move(value); }
180 inline LogGroup& WithLogGroupClass(const LogGroupClass& value) { SetLogGroupClass(value); return *this;}
181 inline LogGroup& WithLogGroupClass(LogGroupClass&& value) { SetLogGroupClass(std::move(value)); return *this;}
183
185
199 inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; }
200 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
201 inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; }
202 inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); }
203 inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); }
204 inline LogGroup& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;}
205 inline LogGroup& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;}
206 inline LogGroup& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;}
208 private:
209
210 Aws::String m_logGroupName;
211 bool m_logGroupNameHasBeenSet = false;
212
213 long long m_creationTime;
214 bool m_creationTimeHasBeenSet = false;
215
216 int m_retentionInDays;
217 bool m_retentionInDaysHasBeenSet = false;
218
219 int m_metricFilterCount;
220 bool m_metricFilterCountHasBeenSet = false;
221
222 Aws::String m_arn;
223 bool m_arnHasBeenSet = false;
224
225 long long m_storedBytes;
226 bool m_storedBytesHasBeenSet = false;
227
228 Aws::String m_kmsKeyId;
229 bool m_kmsKeyIdHasBeenSet = false;
230
231 DataProtectionStatus m_dataProtectionStatus;
232 bool m_dataProtectionStatusHasBeenSet = false;
233
234 Aws::Vector<InheritedProperty> m_inheritedProperties;
235 bool m_inheritedPropertiesHasBeenSet = false;
236
237 LogGroupClass m_logGroupClass;
238 bool m_logGroupClassHasBeenSet = false;
239
240 Aws::String m_logGroupArn;
241 bool m_logGroupArnHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace CloudWatchLogs
246} // namespace Aws
LogGroup & WithKmsKeyId(Aws::String &&value)
Definition LogGroup.h:132
LogGroup & AddInheritedProperties(InheritedProperty &&value)
Definition LogGroup.h:162
void SetDataProtectionStatus(const DataProtectionStatus &value)
Definition LogGroup.h:144
LogGroup & AddInheritedProperties(const InheritedProperty &value)
Definition LogGroup.h:161
const DataProtectionStatus & GetDataProtectionStatus() const
Definition LogGroup.h:142
LogGroup & WithArn(const Aws::String &value)
Definition LogGroup.h:106
long long GetCreationTime() const
Definition LogGroup.h:63
const Aws::String & GetKmsKeyId() const
Definition LogGroup.h:126
const Aws::String & GetArn() const
Definition LogGroup.h:101
LogGroup & WithInheritedProperties(Aws::Vector< InheritedProperty > &&value)
Definition LogGroup.h:160
LogGroup & WithDataProtectionStatus(DataProtectionStatus &&value)
Definition LogGroup.h:147
void SetInheritedProperties(const Aws::Vector< InheritedProperty > &value)
Definition LogGroup.h:157
void SetLogGroupArn(const char *value)
Definition LogGroup.h:203
const Aws::Vector< InheritedProperty > & GetInheritedProperties() const
Definition LogGroup.h:155
void SetArn(const Aws::String &value)
Definition LogGroup.h:103
void SetKmsKeyId(const char *value)
Definition LogGroup.h:130
LogGroup & WithArn(const char *value)
Definition LogGroup.h:108
const Aws::String & GetLogGroupName() const
Definition LogGroup.h:48
LogGroup & WithKmsKeyId(const Aws::String &value)
Definition LogGroup.h:131
LogGroup & WithRetentionInDays(int value)
Definition LogGroup.h:74
LogGroup & WithLogGroupName(Aws::String &&value)
Definition LogGroup.h:54
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogGroupClass(LogGroupClass &&value)
Definition LogGroup.h:179
AWS_CLOUDWATCHLOGS_API LogGroup()
LogGroup & WithLogGroupClass(const LogGroupClass &value)
Definition LogGroup.h:180
void SetDataProtectionStatus(DataProtectionStatus &&value)
Definition LogGroup.h:145
void SetStoredBytes(long long value)
Definition LogGroup.h:117
LogGroup & WithLogGroupName(const char *value)
Definition LogGroup.h:55
void SetLogGroupName(const char *value)
Definition LogGroup.h:52
void SetKmsKeyId(const Aws::String &value)
Definition LogGroup.h:128
LogGroup & WithInheritedProperties(const Aws::Vector< InheritedProperty > &value)
Definition LogGroup.h:159
LogGroup & WithLogGroupArn(Aws::String &&value)
Definition LogGroup.h:205
LogGroup & WithCreationTime(long long value)
Definition LogGroup.h:66
void SetArn(const char *value)
Definition LogGroup.h:105
LogGroup & WithLogGroupName(const Aws::String &value)
Definition LogGroup.h:53
const LogGroupClass & GetLogGroupClass() const
Definition LogGroup.h:176
const Aws::String & GetLogGroupArn() const
Definition LogGroup.h:199
void SetLogGroupArn(const Aws::String &value)
Definition LogGroup.h:201
LogGroup & WithDataProtectionStatus(const DataProtectionStatus &value)
Definition LogGroup.h:146
void SetArn(Aws::String &&value)
Definition LogGroup.h:104
void SetKmsKeyId(Aws::String &&value)
Definition LogGroup.h:129
void SetLogGroupClass(const LogGroupClass &value)
Definition LogGroup.h:178
void SetLogGroupName(Aws::String &&value)
Definition LogGroup.h:51
LogGroup & WithMetricFilterCount(int value)
Definition LogGroup.h:84
LogGroup & WithArn(Aws::String &&value)
Definition LogGroup.h:107
LogGroup & WithStoredBytes(long long value)
Definition LogGroup.h:118
void SetCreationTime(long long value)
Definition LogGroup.h:65
LogGroup & WithKmsKeyId(const char *value)
Definition LogGroup.h:133
AWS_CLOUDWATCHLOGS_API LogGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroupName(const Aws::String &value)
Definition LogGroup.h:50
void SetInheritedProperties(Aws::Vector< InheritedProperty > &&value)
Definition LogGroup.h:158
LogGroup & WithLogGroupArn(const Aws::String &value)
Definition LogGroup.h:204
AWS_CLOUDWATCHLOGS_API LogGroup(Aws::Utils::Json::JsonView jsonValue)
LogGroup & WithLogGroupClass(LogGroupClass &&value)
Definition LogGroup.h:181
void SetLogGroupArn(Aws::String &&value)
Definition LogGroup.h:202
LogGroup & WithLogGroupArn(const char *value)
Definition LogGroup.h:206
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue