@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 |
getLogGroupArn()
The Amazon Resource Name (ARN) of the log group.
|
String |
getLogGroupClass()
This specifies the log group class for this log group.
|
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)
Marshalls this structured data using the given
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 |
setLogGroupArn(String logGroupArn)
The Amazon Resource Name (ARN) of the log group.
|
void |
setLogGroupClass(String logGroupClass)
This specifies the log group class for this log group.
|
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 |
withLogGroupArn(String logGroupArn)
The Amazon Resource Name (ARN) of the log group.
|
LogGroup |
withLogGroupClass(LogGroupClass logGroupClass)
This specifies the log group class for this log group.
|
LogGroup |
withLogGroupClass(String logGroupClass)
This specifies the log group class for this log group.
|
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. This version of the ARN includes a trailing :*
after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The
exception is when specifying permissions for TagResource,
UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't include a
trailing :*
.
arn
- The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing
:*
after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The
exception is when specifying permissions for TagResource, UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't
include a trailing :*
.
public String getArn()
The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing :*
after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The
exception is when specifying permissions for TagResource,
UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't include a
trailing :*
.
:*
after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions.
The exception is when specifying permissions for TagResource, UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't
include a trailing :*
.
public LogGroup withArn(String arn)
The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing :*
after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The
exception is when specifying permissions for TagResource,
UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't include a
trailing :*
.
arn
- The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing
:*
after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The
exception is when specifying permissions for TagResource, UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't
include a trailing :*
.
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 void setLogGroupClass(String logGroupClass)
This specifies the log group class for this log group. There are two classes:
The Standard
log class supports all CloudWatch Logs features.
The Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs lower
costs.
For details about the features supported by each class, see Log classes
logGroupClass
- This specifies the log group class for this log group. There are two classes:
The Standard
log class supports all CloudWatch Logs features.
The Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs
lower costs.
For details about the features supported by each class, see Log classes
LogGroupClass
public String getLogGroupClass()
This specifies the log group class for this log group. There are two classes:
The Standard
log class supports all CloudWatch Logs features.
The Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs lower
costs.
For details about the features supported by each class, see Log classes
The Standard
log class supports all CloudWatch Logs features.
The Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs
lower costs.
For details about the features supported by each class, see Log classes
LogGroupClass
public LogGroup withLogGroupClass(String logGroupClass)
This specifies the log group class for this log group. There are two classes:
The Standard
log class supports all CloudWatch Logs features.
The Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs lower
costs.
For details about the features supported by each class, see Log classes
logGroupClass
- This specifies the log group class for this log group. There are two classes:
The Standard
log class supports all CloudWatch Logs features.
The Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs
lower costs.
For details about the features supported by each class, see Log classes
LogGroupClass
public LogGroup withLogGroupClass(LogGroupClass logGroupClass)
This specifies the log group class for this log group. There are two classes:
The Standard
log class supports all CloudWatch Logs features.
The Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs lower
costs.
For details about the features supported by each class, see Log classes
logGroupClass
- This specifies the log group class for this log group. There are two classes:
The Standard
log class supports all CloudWatch Logs features.
The Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs
lower costs.
For details about the features supported by each class, see Log classes
LogGroupClass
public void setLogGroupArn(String logGroupArn)
The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing
:*
after the log group name.
Use this version to refer to the ARN in the following situations:
In the logGroupIdentifier
input field in many CloudWatch Logs APIs.
In the resourceArn
field in tagging APIs
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
logGroupArn
- The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing
:*
after the log group name.
Use this version to refer to the ARN in the following situations:
In the logGroupIdentifier
input field in many CloudWatch Logs APIs.
In the resourceArn
field in tagging APIs
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
public String getLogGroupArn()
The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing
:*
after the log group name.
Use this version to refer to the ARN in the following situations:
In the logGroupIdentifier
input field in many CloudWatch Logs APIs.
In the resourceArn
field in tagging APIs
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
:*
after the log group name.
Use this version to refer to the ARN in the following situations:
In the logGroupIdentifier
input field in many CloudWatch Logs APIs.
In the resourceArn
field in tagging APIs
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
public LogGroup withLogGroupArn(String logGroupArn)
The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing
:*
after the log group name.
Use this version to refer to the ARN in the following situations:
In the logGroupIdentifier
input field in many CloudWatch Logs APIs.
In the resourceArn
field in tagging APIs
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
logGroupArn
- The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing
:*
after the log group name.
Use this version to refer to the ARN in the following situations:
In the logGroupIdentifier
input field in many CloudWatch Logs APIs.
In the resourceArn
field in tagging APIs
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.