Interface LogGroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LogGroup.Builder,
,LogGroup> SdkBuilder<LogGroup.Builder,
,LogGroup> SdkPojo
- Enclosing class:
LogGroup
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the log group.creationTime
(Long creationTime) The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.dataProtectionStatus
(String dataProtectionStatus) Displays whether this log group has a protection policy, or whether it had one in the past.dataProtectionStatus
(DataProtectionStatus dataProtectionStatus) Displays whether this log group has a protection policy, or whether it had one in the past.inheritedProperties
(Collection<InheritedProperty> inheritedProperties) Displays all the properties that this log group has inherited from account-level settings.inheritedProperties
(InheritedProperty... inheritedProperties) Displays all the properties that this log group has inherited from account-level settings.inheritedPropertiesWithStrings
(String... inheritedProperties) Displays all the properties that this log group has inherited from account-level settings.inheritedPropertiesWithStrings
(Collection<String> inheritedProperties) Displays all the properties that this log group has inherited from account-level settings.The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.logGroupArn
(String logGroupArn) The Amazon Resource Name (ARN) of the log group.logGroupClass
(String logGroupClass) This specifies the log group class for this log group.logGroupClass
(LogGroupClass logGroupClass) This specifies the log group class for this log group.logGroupName
(String logGroupName) The name of the log group.metricFilterCount
(Integer metricFilterCount) The number of metric filters.retentionInDays
(Integer retentionInDays) Sets the value of the RetentionInDays property for this object.storedBytes
(Long storedBytes) The number of bytes stored.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
logGroupName
The name of the log group.
- Parameters:
logGroupName
- The name of the log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
- Parameters:
creationTime
- The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionInDays
Sets the value of the RetentionInDays property for this object.- Parameters:
retentionInDays
- The new value for the RetentionInDays property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricFilterCount
The number of metric filters.
- Parameters:
metricFilterCount
- The number of metric filters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
:*
.- Parameters:
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
:*
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storedBytes
The number of bytes stored.
- Parameters:
storedBytes
- The number of bytes stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
- Parameters:
kmsKeyId
- The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataProtectionStatus
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
- Parameters:
dataProtectionStatus
- Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataProtectionStatus
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
- Parameters:
dataProtectionStatus
- Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inheritedPropertiesWithStrings
Displays all the properties that this log group has inherited from account-level settings.
- Parameters:
inheritedProperties
- Displays all the properties that this log group has inherited from account-level settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inheritedPropertiesWithStrings
Displays all the properties that this log group has inherited from account-level settings.
- Parameters:
inheritedProperties
- Displays all the properties that this log group has inherited from account-level settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inheritedProperties
Displays all the properties that this log group has inherited from account-level settings.
- Parameters:
inheritedProperties
- Displays all the properties that this log group has inherited from account-level settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inheritedProperties
Displays all the properties that this log group has inherited from account-level settings.
- Parameters:
inheritedProperties
- Displays all the properties that this log group has inherited from account-level settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-