Interface PutRetentionPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchLogsRequest.Builder
,CopyableBuilder<PutRetentionPolicyRequest.Builder,
,PutRetentionPolicyRequest> SdkBuilder<PutRetentionPolicyRequest.Builder,
,PutRetentionPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutRetentionPolicyRequest
@Mutable
@NotThreadSafe
public static interface PutRetentionPolicyRequest.Builder
extends CloudWatchLogsRequest.Builder, SdkPojo, CopyableBuilder<PutRetentionPolicyRequest.Builder,PutRetentionPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionlogGroupName
(String logGroupName) The name of the log group.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.retentionInDays
(Integer retentionInDays) Sets the value of the RetentionInDays property for this object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.Builder
build
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, sdkFieldNameToField, 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.
-
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.
-
overrideConfiguration
PutRetentionPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutRetentionPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-