Interface CreateManagedPrefixListRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateManagedPrefixListRequest.Builder,
,CreateManagedPrefixListRequest> Ec2Request.Builder
,SdkBuilder<CreateManagedPrefixListRequest.Builder,
,CreateManagedPrefixListRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateManagedPrefixListRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddressFamily
(String addressFamily) The IP address type.clientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure the idempotency of the request.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.entries
(Collection<AddPrefixListEntry> entries) One or more entries for the prefix list.entries
(Consumer<AddPrefixListEntry.Builder>... entries) One or more entries for the prefix list.entries
(AddPrefixListEntry... entries) One or more entries for the prefix list.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.prefixListName
(String prefixListName) A name for the prefix list.tagSpecifications
(Collection<TagSpecification> tagSpecifications) The tags to apply to the prefix list during creation.tagSpecifications
(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the prefix list during creation.tagSpecifications
(TagSpecification... tagSpecifications) The tags to apply to the prefix list during creation.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.
-
prefixListName
A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with
com.amazonaws
.- Parameters:
prefixListName
- A name for the prefix list.Constraints: Up to 255 characters in length. The name cannot start with
com.amazonaws
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
One or more entries for the prefix list.
- Parameters:
entries
- One or more entries for the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
One or more entries for the prefix list.
- Parameters:
entries
- One or more entries for the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entries
One or more entries for 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 toentries(List<AddPrefixListEntry>)
.- Parameters:
entries
- 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:
-
maxEntries
The maximum number of entries for the prefix list.
- Parameters:
maxEntries
- The maximum number of entries for the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateManagedPrefixListRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the prefix list during creation.
- Parameters:
tagSpecifications
- The tags to apply to the prefix list during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
The tags to apply to the prefix list during creation.
- Parameters:
tagSpecifications
- The tags to apply to the prefix list during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateManagedPrefixListRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the prefix list during creation.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<TagSpecification>)
.- Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
addressFamily
The IP address type.
Valid Values:
IPv4
|IPv6
- Parameters:
addressFamily
- The IP address type.Valid Values:
IPv4
|IPv6
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Constraints: Up to 255 UTF-8 characters in length.
- Parameters:
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.Constraints: Up to 255 UTF-8 characters in length.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateManagedPrefixListRequest.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
CreateManagedPrefixListRequest.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.
-