Interface ListRulesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListRulesRequest.Builder,ListRulesRequest>,RbinRequest.Builder,SdkBuilder<ListRulesRequest.Builder,ListRulesRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListRulesRequest
public static interface ListRulesRequest.Builder extends RbinRequest.Builder, SdkPojo, CopyableBuilder<ListRulesRequest.Builder,ListRulesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListRulesRequest.BuilderlockState(String lockState)The lock state of the retention rules to list.ListRulesRequest.BuilderlockState(LockState lockState)The lock state of the retention rules to list.ListRulesRequest.BuildermaxResults(Integer maxResults)The maximum number of results to return with a single call.ListRulesRequest.BuildernextToken(String nextToken)The token for the next page of results.ListRulesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListRulesRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ListRulesRequest.BuilderresourceTags(Collection<ResourceTag> resourceTags)Information about the resource tags used to identify resources that are retained by the retention rule.ListRulesRequest.BuilderresourceTags(Consumer<ResourceTag.Builder>... resourceTags)Information about the resource tags used to identify resources that are retained by the retention rule.ListRulesRequest.BuilderresourceTags(ResourceTag... resourceTags)Information about the resource tags used to identify resources that are retained by the retention rule.ListRulesRequest.BuilderresourceType(String resourceType)The resource type retained by the retention rule.ListRulesRequest.BuilderresourceType(ResourceType resourceType)The resource type retained by the retention rule.-
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.rbin.model.RbinRequest.Builder
build
-
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
-
maxResults
ListRulesRequest.Builder maxResults(Integer maxResults)
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
NextTokenvalue.- Parameters:
maxResults- The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returnedNextTokenvalue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
ListRulesRequest.Builder nextToken(String nextToken)
The token for the next page of results.
- Parameters:
nextToken- The token for the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
ListRulesRequest.Builder resourceType(String resourceType)
The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specify
EBS_SNAPSHOT. To list retention rules that retain EBS-backed AMIs, specifyEC2_IMAGE.- Parameters:
resourceType- The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specifyEBS_SNAPSHOT. To list retention rules that retain EBS-backed AMIs, specifyEC2_IMAGE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
ListRulesRequest.Builder resourceType(ResourceType resourceType)
The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specify
EBS_SNAPSHOT. To list retention rules that retain EBS-backed AMIs, specifyEC2_IMAGE.- Parameters:
resourceType- The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specifyEBS_SNAPSHOT. To list retention rules that retain EBS-backed AMIs, specifyEC2_IMAGE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceTags
ListRulesRequest.Builder resourceTags(Collection<ResourceTag> resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
- Parameters:
resourceTags- Information about the resource tags used to identify resources that are retained by the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
ListRulesRequest.Builder resourceTags(ResourceTag... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
- Parameters:
resourceTags- Information about the resource tags used to identify resources that are retained by the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
ListRulesRequest.Builder resourceTags(Consumer<ResourceTag.Builder>... resourceTags)
Information about the resource tags used to identify resources that are retained by the retention rule.
This is a convenience method that creates an instance of theResourceTag.Builderavoiding the need to create one manually viaResourceTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourceTags(List.) - Parameters:
resourceTags- a consumer that will call methods onResourceTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resourceTags(java.util.Collection)
-
lockState
ListRulesRequest.Builder lockState(String lockState)
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
-
lockState
ListRulesRequest.Builder lockState(LockState lockState)
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
-
overrideConfiguration
ListRulesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListRulesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-