Interface ListLifecyclePoliciesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListLifecyclePoliciesRequest.Builder,
,ListLifecyclePoliciesRequest> OpenSearchServerlessRequest.Builder
,SdkBuilder<ListLifecyclePoliciesRequest.Builder,
,ListLifecyclePoliciesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ListLifecyclePoliciesRequest
@Mutable
@NotThreadSafe
public static interface ListLifecyclePoliciesRequest.Builder
extends OpenSearchServerlessRequest.Builder, SdkPojo, CopyableBuilder<ListLifecyclePoliciesRequest.Builder,ListLifecyclePoliciesRequest>
-
Method Summary
Modifier and TypeMethodDescriptionmaxResults
(Integer maxResults) An optional parameter that specifies the maximum number of results to return.If your initialListLifecyclePolicies
operation returns anextToken
, you can include the returnednextToken
in subsequentListLifecyclePolicies
operations, which returns results in the next page.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Resource filters that policies can apply to.resources
(Collection<String> resources) Resource filters that policies can apply to.The type of lifecycle policy.type
(LifecyclePolicyType type) The type of lifecycle policy.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.opensearchserverless.model.OpenSearchServerlessRequest.Builder
build
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
-
type
The type of lifecycle policy.
- Parameters:
type
- The type of lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of lifecycle policy.
- Parameters:
type
- The type of lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resources
Resource filters that policies can apply to. Currently, the only supported resource type is
index
.- Parameters:
resources
- Resource filters that policies can apply to. Currently, the only supported resource type isindex
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
Resource filters that policies can apply to. Currently, the only supported resource type is
index
.- Parameters:
resources
- Resource filters that policies can apply to. Currently, the only supported resource type isindex
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
If your initial
ListLifecyclePolicies
operation returns anextToken
, you can include the returnednextToken
in subsequentListLifecyclePolicies
operations, which returns results in the next page.- Parameters:
nextToken
- If your initialListLifecyclePolicies
operation returns anextToken
, you can include the returnednextToken
in subsequentListLifecyclePolicies
operations, which returns results in the next page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
An optional parameter that specifies the maximum number of results to return. You can use use
nextToken
to get the next page of results. The default is 10.- Parameters:
maxResults
- An optional parameter that specifies the maximum number of results to return. You can use usenextToken
to get the next page of results. The default is 10.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListLifecyclePoliciesRequest.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
ListLifecyclePoliciesRequest.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.
-