Interface ModifyManagedPrefixListRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyManagedPrefixListRequest.Builder,ModifyManagedPrefixListRequest>
,Ec2Request.Builder
,SdkBuilder<ModifyManagedPrefixListRequest.Builder,ModifyManagedPrefixListRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- ModifyManagedPrefixListRequest
public static interface ModifyManagedPrefixListRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyManagedPrefixListRequest.Builder,ModifyManagedPrefixListRequest>
-
-
Method Summary
-
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 Detail
-
dryRun
ModifyManagedPrefixListRequest.Builder dryRun(Boolean 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
ModifyManagedPrefixListRequest.Builder prefixListId(String 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
ModifyManagedPrefixListRequest.Builder currentVersion(Long 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
ModifyManagedPrefixListRequest.Builder prefixListName(String 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
ModifyManagedPrefixListRequest.Builder addEntries(Collection<AddPrefixListEntry> 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(AddPrefixListEntry... 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 to#addEntries(List
.) - 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:
#addEntries(java.util.Collection
)
-
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
ModifyManagedPrefixListRequest.Builder removeEntries(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
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 to#removeEntries(List
.) - 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:
#removeEntries(java.util.Collection
)
-
maxEntries
ModifyManagedPrefixListRequest.Builder maxEntries(Integer 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
ModifyManagedPrefixListRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-