AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename LogGroupNameT = Aws::String>
51 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
52 template<typename LogGroupNameT = Aws::String>
53 LogGroup& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
55
57
61 inline long long GetCreationTime() const { return m_creationTime; }
62 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
63 inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
64 inline LogGroup& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
66
68
69 inline int GetRetentionInDays() const { return m_retentionInDays; }
70 inline bool RetentionInDaysHasBeenSet() const { return m_retentionInDaysHasBeenSet; }
71 inline void SetRetentionInDays(int value) { m_retentionInDaysHasBeenSet = true; m_retentionInDays = value; }
72 inline LogGroup& WithRetentionInDays(int value) { SetRetentionInDays(value); return *this;}
74
76
79 inline int GetMetricFilterCount() const { return m_metricFilterCount; }
80 inline bool MetricFilterCountHasBeenSet() const { return m_metricFilterCountHasBeenSet; }
81 inline void SetMetricFilterCount(int value) { m_metricFilterCountHasBeenSet = true; m_metricFilterCount = value; }
82 inline LogGroup& WithMetricFilterCount(int value) { SetMetricFilterCount(value); return *this;}
84
86
99 inline const Aws::String& GetArn() const { return m_arn; }
100 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
101 template<typename ArnT = Aws::String>
102 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
103 template<typename ArnT = Aws::String>
104 LogGroup& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
106
108
111 inline long long GetStoredBytes() const { return m_storedBytes; }
112 inline bool StoredBytesHasBeenSet() const { return m_storedBytesHasBeenSet; }
113 inline void SetStoredBytes(long long value) { m_storedBytesHasBeenSet = true; m_storedBytes = value; }
114 inline LogGroup& WithStoredBytes(long long value) { SetStoredBytes(value); return *this;}
116
118
122 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
123 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
124 template<typename KmsKeyIdT = Aws::String>
125 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
126 template<typename KmsKeyIdT = Aws::String>
127 LogGroup& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
129
131
136 inline DataProtectionStatus GetDataProtectionStatus() const { return m_dataProtectionStatus; }
137 inline bool DataProtectionStatusHasBeenSet() const { return m_dataProtectionStatusHasBeenSet; }
138 inline void SetDataProtectionStatus(DataProtectionStatus value) { m_dataProtectionStatusHasBeenSet = true; m_dataProtectionStatus = value; }
141
143
147 inline const Aws::Vector<InheritedProperty>& GetInheritedProperties() const { return m_inheritedProperties; }
148 inline bool InheritedPropertiesHasBeenSet() const { return m_inheritedPropertiesHasBeenSet; }
149 template<typename InheritedPropertiesT = Aws::Vector<InheritedProperty>>
150 void SetInheritedProperties(InheritedPropertiesT&& value) { m_inheritedPropertiesHasBeenSet = true; m_inheritedProperties = std::forward<InheritedPropertiesT>(value); }
151 template<typename InheritedPropertiesT = Aws::Vector<InheritedProperty>>
152 LogGroup& WithInheritedProperties(InheritedPropertiesT&& value) { SetInheritedProperties(std::forward<InheritedPropertiesT>(value)); return *this;}
153 inline LogGroup& AddInheritedProperties(InheritedProperty value) { m_inheritedPropertiesHasBeenSet = true; m_inheritedProperties.push_back(value); return *this; }
155
157
171 inline LogGroupClass GetLogGroupClass() const { return m_logGroupClass; }
172 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
173 inline void SetLogGroupClass(LogGroupClass value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = value; }
174 inline LogGroup& WithLogGroupClass(LogGroupClass value) { SetLogGroupClass(value); return *this;}
176
178
192 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
193 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
194 template<typename LogGroupArnT = Aws::String>
195 void SetLogGroupArn(LogGroupArnT&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::forward<LogGroupArnT>(value); }
196 template<typename LogGroupArnT = Aws::String>
197 LogGroup& WithLogGroupArn(LogGroupArnT&& value) { SetLogGroupArn(std::forward<LogGroupArnT>(value)); return *this;}
199 private:
200
201 Aws::String m_logGroupName;
202 bool m_logGroupNameHasBeenSet = false;
203
204 long long m_creationTime{0};
205 bool m_creationTimeHasBeenSet = false;
206
207 int m_retentionInDays{0};
208 bool m_retentionInDaysHasBeenSet = false;
209
210 int m_metricFilterCount{0};
211 bool m_metricFilterCountHasBeenSet = false;
212
213 Aws::String m_arn;
214 bool m_arnHasBeenSet = false;
215
216 long long m_storedBytes{0};
217 bool m_storedBytesHasBeenSet = false;
218
219 Aws::String m_kmsKeyId;
220 bool m_kmsKeyIdHasBeenSet = false;
221
223 bool m_dataProtectionStatusHasBeenSet = false;
224
225 Aws::Vector<InheritedProperty> m_inheritedProperties;
226 bool m_inheritedPropertiesHasBeenSet = false;
227
228 LogGroupClass m_logGroupClass{LogGroupClass::NOT_SET};
229 bool m_logGroupClassHasBeenSet = false;
230
231 Aws::String m_logGroupArn;
232 bool m_logGroupArnHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace CloudWatchLogs
237} // namespace Aws
LogGroup & WithLogGroupClass(LogGroupClass value)
Definition LogGroup.h:174
void SetLogGroupArn(LogGroupArnT &&value)
Definition LogGroup.h:195
LogGroup & WithLogGroupArn(LogGroupArnT &&value)
Definition LogGroup.h:197
void SetLogGroupClass(LogGroupClass value)
Definition LogGroup.h:173
long long GetCreationTime() const
Definition LogGroup.h:61
void SetInheritedProperties(InheritedPropertiesT &&value)
Definition LogGroup.h:150
AWS_CLOUDWATCHLOGS_API LogGroup()=default
const Aws::String & GetKmsKeyId() const
Definition LogGroup.h:122
const Aws::String & GetArn() const
Definition LogGroup.h:99
LogGroup & WithDataProtectionStatus(DataProtectionStatus value)
Definition LogGroup.h:139
LogGroup & WithArn(ArnT &&value)
Definition LogGroup.h:104
const Aws::Vector< InheritedProperty > & GetInheritedProperties() const
Definition LogGroup.h:147
void SetLogGroupName(LogGroupNameT &&value)
Definition LogGroup.h:51
const Aws::String & GetLogGroupName() const
Definition LogGroup.h:48
LogGroup & WithRetentionInDays(int value)
Definition LogGroup.h:72
LogGroup & AddInheritedProperties(InheritedProperty value)
Definition LogGroup.h:153
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStoredBytes(long long value)
Definition LogGroup.h:113
LogGroup & WithLogGroupName(LogGroupNameT &&value)
Definition LogGroup.h:53
LogGroup & WithCreationTime(long long value)
Definition LogGroup.h:64
void SetKmsKeyId(KmsKeyIdT &&value)
Definition LogGroup.h:125
const Aws::String & GetLogGroupArn() const
Definition LogGroup.h:192
LogGroup & WithMetricFilterCount(int value)
Definition LogGroup.h:82
LogGroup & WithStoredBytes(long long value)
Definition LogGroup.h:114
void SetCreationTime(long long value)
Definition LogGroup.h:63
void SetDataProtectionStatus(DataProtectionStatus value)
Definition LogGroup.h:138
AWS_CLOUDWATCHLOGS_API LogGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API LogGroup(Aws::Utils::Json::JsonView jsonValue)
LogGroupClass GetLogGroupClass() const
Definition LogGroup.h:171
DataProtectionStatus GetDataProtectionStatus() const
Definition LogGroup.h:136
LogGroup & WithKmsKeyId(KmsKeyIdT &&value)
Definition LogGroup.h:127
LogGroup & WithInheritedProperties(InheritedPropertiesT &&value)
Definition LogGroup.h:152
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue