@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LogGroup extends Object implements Serializable, Cloneable, StructuredPojo
Represents a log group.
Constructor and Description |
---|
LogGroup() |
Modifier and Type | Method and Description |
---|---|
LogGroup |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the log group.
|
Long |
getCreationTime()
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
String |
getDataProtectionStatus()
Displays whether this log group has a protection policy, or whether it had one in the past.
|
List<String> |
getInheritedProperties()
Displays all the properties that this log group has inherited from account-level settings.
|
String |
getKmsKeyId()
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
|
String |
getLogGroupName()
The name of the log group.
|
Integer |
getMetricFilterCount()
The number of metric filters.
|
Integer |
getRetentionInDays() |
Long |
getStoredBytes()
The number of bytes stored.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the log group.
|
void |
setCreationTime(Long creationTime)
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setDataProtectionStatus(String dataProtectionStatus)
Displays whether this log group has a protection policy, or whether it had one in the past.
|
void |
setInheritedProperties(Collection<String> inheritedProperties)
Displays all the properties that this log group has inherited from account-level settings.
|
void |
setKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
|
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setMetricFilterCount(Integer metricFilterCount)
The number of metric filters.
|
void |
setRetentionInDays(Integer retentionInDays) |
void |
setStoredBytes(Long storedBytes)
The number of bytes stored.
|
String |
toString()
Returns a string representation of this object.
|
LogGroup |
withArn(String arn)
The Amazon Resource Name (ARN) of the log group.
|
LogGroup |
withCreationTime(Long creationTime)
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
LogGroup |
withDataProtectionStatus(DataProtectionStatus dataProtectionStatus)
Displays whether this log group has a protection policy, or whether it had one in the past.
|
LogGroup |
withDataProtectionStatus(String dataProtectionStatus)
Displays whether this log group has a protection policy, or whether it had one in the past.
|
LogGroup |
withInheritedProperties(Collection<String> inheritedProperties)
Displays all the properties that this log group has inherited from account-level settings.
|
LogGroup |
withInheritedProperties(InheritedProperty... inheritedProperties)
Displays all the properties that this log group has inherited from account-level settings.
|
LogGroup |
withInheritedProperties(String... inheritedProperties)
Displays all the properties that this log group has inherited from account-level settings.
|
LogGroup |
withKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
|
LogGroup |
withLogGroupName(String logGroupName)
The name of the log group.
|
LogGroup |
withMetricFilterCount(Integer metricFilterCount)
The number of metric filters.
|
LogGroup |
withRetentionInDays(Integer retentionInDays) |
LogGroup |
withStoredBytes(Long storedBytes)
The number of bytes stored.
|
public void setLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public String getLogGroupName()
The name of the log group.
public LogGroup withLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public void setCreationTime(Long creationTime)
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
creationTime
- The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00
UTC.public Long getCreationTime()
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public LogGroup withCreationTime(Long creationTime)
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
creationTime
- The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00
UTC.public void setRetentionInDays(Integer retentionInDays)
retentionInDays
- public Integer getRetentionInDays()
public LogGroup withRetentionInDays(Integer retentionInDays)
retentionInDays
- public void setMetricFilterCount(Integer metricFilterCount)
The number of metric filters.
metricFilterCount
- The number of metric filters.public Integer getMetricFilterCount()
The number of metric filters.
public LogGroup withMetricFilterCount(Integer metricFilterCount)
The number of metric filters.
metricFilterCount
- The number of metric filters.public void setArn(String arn)
The Amazon Resource Name (ARN) of the log group.
arn
- The Amazon Resource Name (ARN) of the log group.public String getArn()
The Amazon Resource Name (ARN) of the log group.
public LogGroup withArn(String arn)
The Amazon Resource Name (ARN) of the log group.
arn
- The Amazon Resource Name (ARN) of the log group.public void setStoredBytes(Long storedBytes)
The number of bytes stored.
storedBytes
- The number of bytes stored.public Long getStoredBytes()
The number of bytes stored.
public LogGroup withStoredBytes(Long storedBytes)
The number of bytes stored.
storedBytes
- The number of bytes stored.public void setKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
kmsKeyId
- The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.public String getKmsKeyId()
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
public LogGroup withKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
kmsKeyId
- The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.public void setDataProtectionStatus(String dataProtectionStatus)
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
dataProtectionStatus
- Displays whether this log group has a protection policy, or whether it had one in the past. For more
information, see PutDataProtectionPolicy.DataProtectionStatus
public String getDataProtectionStatus()
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
DataProtectionStatus
public LogGroup withDataProtectionStatus(String dataProtectionStatus)
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
dataProtectionStatus
- Displays whether this log group has a protection policy, or whether it had one in the past. For more
information, see PutDataProtectionPolicy.DataProtectionStatus
public LogGroup withDataProtectionStatus(DataProtectionStatus dataProtectionStatus)
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
dataProtectionStatus
- Displays whether this log group has a protection policy, or whether it had one in the past. For more
information, see PutDataProtectionPolicy.DataProtectionStatus
public List<String> getInheritedProperties()
Displays all the properties that this log group has inherited from account-level settings.
InheritedProperty
public void setInheritedProperties(Collection<String> inheritedProperties)
Displays all the properties that this log group has inherited from account-level settings.
inheritedProperties
- Displays all the properties that this log group has inherited from account-level settings.InheritedProperty
public LogGroup withInheritedProperties(String... inheritedProperties)
Displays all the properties that this log group has inherited from account-level settings.
NOTE: This method appends the values to the existing list (if any). Use
setInheritedProperties(java.util.Collection)
or withInheritedProperties(java.util.Collection)
if you want to override the existing values.
inheritedProperties
- Displays all the properties that this log group has inherited from account-level settings.InheritedProperty
public LogGroup withInheritedProperties(Collection<String> inheritedProperties)
Displays all the properties that this log group has inherited from account-level settings.
inheritedProperties
- Displays all the properties that this log group has inherited from account-level settings.InheritedProperty
public LogGroup withInheritedProperties(InheritedProperty... inheritedProperties)
Displays all the properties that this log group has inherited from account-level settings.
inheritedProperties
- Displays all the properties that this log group has inherited from account-level settings.InheritedProperty
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.