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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaAddPrefixListEntry.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaRemovePrefixListEntry.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-