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>
25namespace CloudWatchLogs
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>
63 inline void SetCreationTime(
long long value) { m_creationTimeHasBeenSet =
true; m_creationTime = value; }
71 inline void SetRetentionInDays(
int value) { m_retentionInDaysHasBeenSet =
true; m_retentionInDays = value; }
81 inline void SetMetricFilterCount(
int value) { m_metricFilterCountHasBeenSet =
true; m_metricFilterCount = value; }
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>
113 inline void SetStoredBytes(
long long value) { m_storedBytesHasBeenSet =
true; m_storedBytes = value; }
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>
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>>
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>
202 bool m_logGroupNameHasBeenSet =
false;
204 long long m_creationTime{0};
205 bool m_creationTimeHasBeenSet =
false;
207 int m_retentionInDays{0};
208 bool m_retentionInDaysHasBeenSet =
false;
210 int m_metricFilterCount{0};
211 bool m_metricFilterCountHasBeenSet =
false;
214 bool m_arnHasBeenSet =
false;
216 long long m_storedBytes{0};
217 bool m_storedBytesHasBeenSet =
false;
220 bool m_kmsKeyIdHasBeenSet =
false;
223 bool m_dataProtectionStatusHasBeenSet =
false;
226 bool m_inheritedPropertiesHasBeenSet =
false;
229 bool m_logGroupClassHasBeenSet =
false;
232 bool m_logGroupArnHasBeenSet =
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 SetStoredBytes(long long value)
LogGroup & WithLogGroupName(LogGroupNameT &&value)
bool CreationTimeHasBeenSet() const
LogGroup & WithCreationTime(long long value)
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 MetricFilterCountHasBeenSet() const
AWS_CLOUDWATCHLOGS_API LogGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
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