Interface LogGroup.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LogGroup.Builder,LogGroup>,SdkBuilder<LogGroup.Builder,LogGroup>,SdkPojo
- Enclosing class:
- LogGroup
public static interface LogGroup.Builder extends SdkPojo, CopyableBuilder<LogGroup.Builder,LogGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LogGroup.Builderarn(String arn)The Amazon Resource Name (ARN) of the log group.LogGroup.BuildercreationTime(Long creationTime)The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.LogGroup.BuilderdataProtectionStatus(String dataProtectionStatus)Displays whether this log group has a protection policy, or whether it had one in the past.LogGroup.BuilderdataProtectionStatus(DataProtectionStatus dataProtectionStatus)Displays whether this log group has a protection policy, or whether it had one in the past.LogGroup.BuilderinheritedProperties(Collection<InheritedProperty> inheritedProperties)Displays all the properties that this log group has inherited from account-level settings.LogGroup.BuilderinheritedProperties(InheritedProperty... inheritedProperties)Displays all the properties that this log group has inherited from account-level settings.LogGroup.BuilderinheritedPropertiesWithStrings(String... inheritedProperties)Displays all the properties that this log group has inherited from account-level settings.LogGroup.BuilderinheritedPropertiesWithStrings(Collection<String> inheritedProperties)Displays all the properties that this log group has inherited from account-level settings.LogGroup.BuilderkmsKeyId(String kmsKeyId)The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.LogGroup.BuilderlogGroupArn(String logGroupArn)The Amazon Resource Name (ARN) of the log group.LogGroup.BuilderlogGroupClass(String logGroupClass)This specifies the log group class for this log group.LogGroup.BuilderlogGroupClass(LogGroupClass logGroupClass)This specifies the log group class for this log group.LogGroup.BuilderlogGroupName(String logGroupName)The name of the log group.LogGroup.BuildermetricFilterCount(Integer metricFilterCount)The number of metric filters.LogGroup.BuilderretentionInDays(Integer retentionInDays)Sets the value of the RetentionInDays property for this object.LogGroup.BuilderstoredBytes(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 Detail
-
logGroupName
LogGroup.Builder logGroupName(String 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
LogGroup.Builder creationTime(Long 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
LogGroup.Builder retentionInDays(Integer 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
LogGroup.Builder metricFilterCount(Integer 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
LogGroup.Builder arn(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
:*.- 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
LogGroup.Builder storedBytes(Long 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
LogGroup.Builder kmsKeyId(String 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
LogGroup.Builder dataProtectionStatus(String 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,DataProtectionStatus
-
dataProtectionStatus
LogGroup.Builder dataProtectionStatus(DataProtectionStatus 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,DataProtectionStatus
-
inheritedPropertiesWithStrings
LogGroup.Builder inheritedPropertiesWithStrings(Collection<String> 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.
-
inheritedPropertiesWithStrings
LogGroup.Builder inheritedPropertiesWithStrings(String... 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
LogGroup.Builder inheritedProperties(Collection<InheritedProperty> 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
LogGroup.Builder inheritedProperties(InheritedProperty... 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
LogGroup.Builder logGroupClass(String logGroupClass)
This specifies the log group class for this log group. There are two classes:
-
The
Standardlog class supports all CloudWatch Logs features. -
The
Infrequent Accesslog 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
Standardlog class supports all CloudWatch Logs features. -
The
Infrequent Accesslog 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,LogGroupClass
-
-
logGroupClass
LogGroup.Builder logGroupClass(LogGroupClass logGroupClass)
This specifies the log group class for this log group. There are two classes:
-
The
Standardlog class supports all CloudWatch Logs features. -
The
Infrequent Accesslog 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
Standardlog class supports all CloudWatch Logs features. -
The
Infrequent Accesslog 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,LogGroupClass
-
-
logGroupArn
LogGroup.Builder logGroupArn(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
logGroupIdentifierinput field in many CloudWatch Logs APIs. -
In the
resourceArnfield 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
logGroupIdentifierinput field in many CloudWatch Logs APIs. -
In the
resourceArnfield 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.
-
-
-