public class LogGroup
extends java.lang.Object
implements java.io.Serializable
Represents a log group.
Constructor and Description |
---|
LogGroup() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the log group.
|
java.lang.Long |
getCreationTime()
The creation time of the log group, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
java.lang.String |
getKmsKeyId()
The Amazon Resource Name (ARN) of the CMK to use when encrypting log
data.
|
java.lang.String |
getLogGroupName()
The name of the log group.
|
java.lang.Integer |
getMetricFilterCount()
The number of metric filters.
|
java.lang.Integer |
getRetentionInDays()
The number of days to retain the log events in the specified log group.
|
java.lang.Long |
getStoredBytes()
The number of bytes stored.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the log group.
|
void |
setCreationTime(java.lang.Long creationTime)
The creation time of the log group, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setKmsKeyId(java.lang.String kmsKeyId)
The Amazon Resource Name (ARN) of the CMK to use when encrypting log
data.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
void |
setMetricFilterCount(java.lang.Integer metricFilterCount)
The number of metric filters.
|
void |
setRetentionInDays(java.lang.Integer retentionInDays)
The number of days to retain the log events in the specified log group.
|
void |
setStoredBytes(java.lang.Long storedBytes)
The number of bytes stored.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LogGroup |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the log group.
|
LogGroup |
withCreationTime(java.lang.Long creationTime)
The creation time of the log group, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
LogGroup |
withKmsKeyId(java.lang.String kmsKeyId)
The Amazon Resource Name (ARN) of the CMK to use when encrypting log
data.
|
LogGroup |
withLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
LogGroup |
withMetricFilterCount(java.lang.Integer metricFilterCount)
The number of metric filters.
|
LogGroup |
withRetentionInDays(java.lang.Integer retentionInDays)
The number of days to retain the log events in the specified log group.
|
LogGroup |
withStoredBytes(java.lang.Long storedBytes)
The number of bytes stored.
|
public java.lang.String getLogGroupName()
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
The name of the log group.
public void setLogGroupName(java.lang.String logGroupName)
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public LogGroup withLogGroupName(java.lang.String logGroupName)
The name of the log group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public java.lang.Long getCreationTime()
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public void setCreationTime(java.lang.Long creationTime)
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Constraints:
Range: 0 -
creationTime
- The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public LogGroup withCreationTime(java.lang.Long creationTime)
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
creationTime
- The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public java.lang.Integer getRetentionInDays()
The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
public void setRetentionInDays(java.lang.Integer retentionInDays)
The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
retentionInDays
- The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
public LogGroup withRetentionInDays(java.lang.Integer retentionInDays)
The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
Returns a reference to this object so that method calls can be chained together.
retentionInDays
- The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
public java.lang.Integer getMetricFilterCount()
The number of metric filters.
The number of metric filters.
public void setMetricFilterCount(java.lang.Integer metricFilterCount)
The number of metric filters.
metricFilterCount
- The number of metric filters.
public LogGroup withMetricFilterCount(java.lang.Integer metricFilterCount)
The number of metric filters.
Returns a reference to this object so that method calls can be chained together.
metricFilterCount
- The number of metric filters.
public java.lang.String getArn()
The Amazon Resource Name (ARN) of the log group.
The Amazon Resource Name (ARN) of the log group.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the log group.
arn
- The Amazon Resource Name (ARN) of the log group.
public LogGroup withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the log group.
Returns a reference to this object so that method calls can be chained together.
arn
- The Amazon Resource Name (ARN) of the log group.
public java.lang.Long getStoredBytes()
The number of bytes stored.
Constraints:
Range: 0 -
The number of bytes stored.
public void setStoredBytes(java.lang.Long storedBytes)
The number of bytes stored.
Constraints:
Range: 0 -
storedBytes
- The number of bytes stored.
public LogGroup withStoredBytes(java.lang.Long storedBytes)
The number of bytes stored.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
storedBytes
- The number of bytes stored.
public java.lang.String getKmsKeyId()
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
Constraints:
Length: - 256
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
public void setKmsKeyId(java.lang.String kmsKeyId)
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
Constraints:
Length: - 256
kmsKeyId
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
public LogGroup withKmsKeyId(java.lang.String kmsKeyId)
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 256
kmsKeyId
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.