Record Class LogGroupInfo
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.LogGroupInfo
- Record Components:
name- log group namearn- log group ARN without the trailing:*creationTime- creation timeretentionDays- retention in days (empty = never expire)storedBytes- stored bytes (approximate, eventually consistent)kmsKeyId- KMS key ARN used to encrypt the groupmetricFilterCount- number of metric filterslogGroupClass-STANDARD,INFREQUENT_ACCESS, …
public record LogGroupInfo(String name, String arn, Optional<Instant> creationTime, OptionalInt retentionDays, OptionalLong storedBytes, Optional<String> kmsKeyId, OptionalInt metricFilterCount, Optional<String> logGroupClass)
extends Record
A log group (
DescribeLogGroups).-
Constructor Summary
ConstructorsConstructorDescriptionLogGroupInfo(String name, String arn, Optional<Instant> creationTime, OptionalInt retentionDays, OptionalLong storedBytes, Optional<String> kmsKeyId, OptionalInt metricFilterCount, Optional<String> logGroupClass) Normalises absent values (null lists become empty, null optionals empty). -
Method Summary
Modifier and TypeMethodDescriptionarn()Returns the value of thearnrecord component.Returns the value of thecreationTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kmsKeyId()Returns the value of thekmsKeyIdrecord component.Returns the value of thelogGroupClassrecord component.Returns the value of themetricFilterCountrecord component.name()Returns the value of thenamerecord component.Returns the value of theretentionDaysrecord component.Returns the value of thestoredBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogGroupInfo
public LogGroupInfo(String name, String arn, Optional<Instant> creationTime, OptionalInt retentionDays, OptionalLong storedBytes, Optional<String> kmsKeyId, OptionalInt metricFilterCount, Optional<String> logGroupClass) Normalises absent values (null lists become empty, null optionals empty).- Parameters:
name- log group namearn- log group ARN without the trailing:*creationTime- creation timeretentionDays- retention in days (empty = never expire)storedBytes- stored bytes (approximate, eventually consistent)kmsKeyId- KMS key ARN used to encrypt the groupmetricFilterCount- number of metric filterslogGroupClass-STANDARD,INFREQUENT_ACCESS, …
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
arn
Returns the value of thearnrecord component.- Returns:
- the value of the
arnrecord component
-
creationTime
Returns the value of thecreationTimerecord component.- Returns:
- the value of the
creationTimerecord component
-
retentionDays
Returns the value of theretentionDaysrecord component.- Returns:
- the value of the
retentionDaysrecord component
-
storedBytes
Returns the value of thestoredBytesrecord component.- Returns:
- the value of the
storedBytesrecord component
-
kmsKeyId
Returns the value of thekmsKeyIdrecord component.- Returns:
- the value of the
kmsKeyIdrecord component
-
metricFilterCount
Returns the value of themetricFilterCountrecord component.- Returns:
- the value of the
metricFilterCountrecord component
-
logGroupClass
Returns the value of thelogGroupClassrecord component.- Returns:
- the value of the
logGroupClassrecord component
-