Interface ModifyManagedPrefixListRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyManagedPrefixListRequest.Builder,
,ModifyManagedPrefixListRequest> Ec2Request.Builder
,SdkBuilder<ModifyManagedPrefixListRequest.Builder,
,ModifyManagedPrefixListRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifyManagedPrefixListRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddEntries
(Collection<AddPrefixListEntry> addEntries) One or more entries to add to the prefix list.addEntries
(Consumer<AddPrefixListEntry.Builder>... addEntries) One or more entries to add to the prefix list.addEntries
(AddPrefixListEntry... addEntries) One or more entries to add to the prefix list.currentVersion
(Long currentVersion) The current version of the prefix list.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.maxEntries
(Integer maxEntries) The maximum number of entries for the prefix list.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.prefixListId
(String prefixListId) The ID of the prefix list.prefixListName
(String prefixListName) A name for the prefix list.removeEntries
(Collection<RemovePrefixListEntry> removeEntries) One or more entries to remove from the prefix list.removeEntries
(Consumer<RemovePrefixListEntry.Builder>... removeEntries) One or more entries to remove from the prefix list.removeEntries
(RemovePrefixListEntry... removeEntries) One or more entries to remove from the prefix list.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.ec2.model.Ec2Request.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 Details
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixListId
The ID of the prefix list.
- Parameters:
prefixListId
- The ID of the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentVersion
The current version of the prefix list.
- Parameters:
currentVersion
- The current version of the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixListName
A name for the prefix list.
- Parameters:
prefixListName
- A name for the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addEntries
One or more entries to add to the prefix list.
- Parameters:
addEntries
- One or more entries to add to the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addEntries
One or more entries to add to the prefix list.
- Parameters:
addEntries
- One or more entries to add to the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addEntries
ModifyManagedPrefixListRequest.Builder addEntries(Consumer<AddPrefixListEntry.Builder>... addEntries) One or more entries to add to the prefix list.
This is a convenience method that creates an instance of theAddPrefixListEntry.Builder
avoiding the need to create one manually viaAddPrefixListEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddEntries(List<AddPrefixListEntry>)
.- Parameters:
addEntries
- a consumer that will call methods onAddPrefixListEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
removeEntries
ModifyManagedPrefixListRequest.Builder removeEntries(Collection<RemovePrefixListEntry> removeEntries) One or more entries to remove from the prefix list.
- Parameters:
removeEntries
- One or more entries to remove from the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeEntries
One or more entries to remove from the prefix list.
- Parameters:
removeEntries
- One or more entries to remove from the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeEntries
ModifyManagedPrefixListRequest.Builder removeEntries(Consumer<RemovePrefixListEntry.Builder>... removeEntries) One or more entries to remove from the prefix list.
This is a convenience method that creates an instance of theRemovePrefixListEntry.Builder
avoiding the need to create one manually viaRemovePrefixListEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toremoveEntries(List<RemovePrefixListEntry>)
.- Parameters:
removeEntries
- a consumer that will call methods onRemovePrefixListEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxEntries
The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.
If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.
- Parameters:
maxEntries
- The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyManagedPrefixListRequest.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
ModifyManagedPrefixListRequest.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.
-