7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/DataProtectionStatus.h>
11#include <aws/logs/model/InheritedProperty.h>
12#include <aws/logs/model/LogGroupClass.h>
23namespace CloudWatchLogs {
44 template <
typename LogGroupNameT = Aws::String>
46 m_logGroupNameHasBeenSet =
true;
47 m_logGroupName = std::forward<LogGroupNameT>(value);
49 template <
typename LogGroupNameT = Aws::String>
64 m_creationTimeHasBeenSet =
true;
65 m_creationTime = value;
78 m_retentionInDaysHasBeenSet =
true;
79 m_retentionInDays = value;
94 m_metricFilterCountHasBeenSet =
true;
95 m_metricFilterCount = value;
119 template <
typename ArnT = Aws::String>
121 m_arnHasBeenSet =
true;
122 m_arn = std::forward<ArnT>(value);
124 template <
typename ArnT = Aws::String>
126 SetArn(std::forward<ArnT>(value));
138 m_storedBytesHasBeenSet =
true;
139 m_storedBytes = value;
154 template <
typename KmsKeyIdT = Aws::String>
156 m_kmsKeyIdHasBeenSet =
true;
157 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
159 template <
typename KmsKeyIdT = Aws::String>
175 m_dataProtectionStatusHasBeenSet =
true;
176 m_dataProtectionStatus = value;
191 template <
typename InheritedPropertiesT = Aws::Vector<InheritedProperty>>
193 m_inheritedPropertiesHasBeenSet =
true;
194 m_inheritedProperties = std::forward<InheritedPropertiesT>(value);
196 template <
typename InheritedPropertiesT = Aws::Vector<InheritedProperty>>
202 m_inheritedPropertiesHasBeenSet =
true;
203 m_inheritedProperties.push_back(value);
226 m_logGroupClassHasBeenSet =
true;
227 m_logGroupClass = value;
252 template <
typename LogGroupArnT = Aws::String>
254 m_logGroupArnHasBeenSet =
true;
255 m_logGroupArn = std::forward<LogGroupArnT>(value);
257 template <
typename LogGroupArnT = Aws::String>
273 m_deletionProtectionEnabledHasBeenSet =
true;
274 m_deletionProtectionEnabled = value;
284 long long m_creationTime{0};
286 int m_retentionInDays{0};
288 int m_metricFilterCount{0};
292 long long m_storedBytes{0};
304 bool m_deletionProtectionEnabled{
false};
305 bool m_logGroupNameHasBeenSet =
false;
306 bool m_creationTimeHasBeenSet =
false;
307 bool m_retentionInDaysHasBeenSet =
false;
308 bool m_metricFilterCountHasBeenSet =
false;
309 bool m_arnHasBeenSet =
false;
310 bool m_storedBytesHasBeenSet =
false;
311 bool m_kmsKeyIdHasBeenSet =
false;
312 bool m_dataProtectionStatusHasBeenSet =
false;
313 bool m_inheritedPropertiesHasBeenSet =
false;
314 bool m_logGroupClassHasBeenSet =
false;
315 bool m_logGroupArnHasBeenSet =
false;
316 bool m_deletionProtectionEnabledHasBeenSet =
false;
LogGroup & WithLogGroupClass(LogGroupClass value)
void SetLogGroupArn(LogGroupArnT &&value)
bool ArnHasBeenSet() const
void SetArn(ArnT &&value)
LogGroup & WithLogGroupArn(LogGroupArnT &&value)
void SetLogGroupClass(LogGroupClass value)
long long GetCreationTime() const
void SetInheritedProperties(InheritedPropertiesT &&value)
void SetRetentionInDays(int value)
AWS_CLOUDWATCHLOGS_API LogGroup()=default
const Aws::String & GetKmsKeyId() const
const Aws::String & GetArn() const
LogGroup & WithDataProtectionStatus(DataProtectionStatus value)
LogGroup & WithArn(ArnT &&value)
bool DataProtectionStatusHasBeenSet() const
void SetMetricFilterCount(int value)
bool LogGroupClassHasBeenSet() const
bool LogGroupArnHasBeenSet() const
const Aws::Vector< InheritedProperty > & GetInheritedProperties() const
void SetLogGroupName(LogGroupNameT &&value)
const Aws::String & GetLogGroupName() const
int GetRetentionInDays() const
LogGroup & WithRetentionInDays(int value)
bool StoredBytesHasBeenSet() const
LogGroup & AddInheritedProperties(InheritedProperty value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
bool KmsKeyIdHasBeenSet() const
void SetDeletionProtectionEnabled(bool value)
void SetStoredBytes(long long value)
LogGroup & WithLogGroupName(LogGroupNameT &&value)
bool CreationTimeHasBeenSet() const
LogGroup & WithCreationTime(long long value)
bool GetDeletionProtectionEnabled() const
void SetKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetLogGroupArn() const
LogGroup & WithMetricFilterCount(int value)
bool InheritedPropertiesHasBeenSet() const
bool RetentionInDaysHasBeenSet() const
LogGroup & WithStoredBytes(long long value)
void SetCreationTime(long long value)
void SetDataProtectionStatus(DataProtectionStatus value)
bool DeletionProtectionEnabledHasBeenSet() const
bool MetricFilterCountHasBeenSet() const
AWS_CLOUDWATCHLOGS_API LogGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
LogGroup & WithDeletionProtectionEnabled(bool value)
AWS_CLOUDWATCHLOGS_API LogGroup(Aws::Utils::Json::JsonView jsonValue)
long long GetStoredBytes() const
LogGroupClass GetLogGroupClass() const
DataProtectionStatus GetDataProtectionStatus() const
bool LogGroupNameHasBeenSet() const
LogGroup & WithKmsKeyId(KmsKeyIdT &&value)
LogGroup & WithInheritedProperties(InheritedPropertiesT &&value)
int GetMetricFilterCount() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue