Interface ListRulesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListRulesRequest.Builder,
,ListRulesRequest> RbinRequest.Builder
,SdkBuilder<ListRulesRequest.Builder,
,ListRulesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ListRulesRequest
-
Method Summary
Modifier and TypeMethodDescriptionexcludeResourceTags
(Collection<ResourceTag> excludeResourceTags) [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.excludeResourceTags
(Consumer<ResourceTag.Builder>... excludeResourceTags) [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.excludeResourceTags
(ResourceTag... excludeResourceTags) [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.The lock state of the retention rules to list.The lock state of the retention rules to list.maxResults
(Integer maxResults) The maximum number of results to return with a single call.The token for the next page of results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceTags
(Collection<ResourceTag> resourceTags) [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.resourceTags
(Consumer<ResourceTag.Builder>... resourceTags) [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.resourceTags
(ResourceTag... resourceTags) [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.resourceType
(String resourceType) The resource type retained by the retention rule.resourceType
(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, sdkFieldNameToField, sdkFields
-
Method Details
-
maxResults
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
NextToken
value.- Parameters:
maxResults
- The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returnedNextToken
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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:
-
resourceTags
[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.
- Parameters:
resourceTags
- [Tag-level retention rules only] 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
[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.
- Parameters:
resourceTags
- [Tag-level retention rules only] 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
[Tag-level retention rules only] 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.Builder
avoiding the need to create one manually viaResourceTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceTags(List<ResourceTag>)
.- 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:
-
lockState
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
- Parameters:
lockState
- The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lockState
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
- Parameters:
lockState
- The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excludeResourceTags
[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.
- Parameters:
excludeResourceTags
- [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeResourceTags
[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.
- Parameters:
excludeResourceTags
- [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeResourceTags
[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.
This is a convenience method that creates an instance of theResourceTag.Builder
avoiding the need to create one manually viaResourceTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexcludeResourceTags(List<ResourceTag>)
.- Parameters:
excludeResourceTags
- 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:
-
overrideConfiguration
ListRulesRequest.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
ListRulesRequest.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.
-