Interface AssignPrivateIpAddressesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AssignPrivateIpAddressesRequest.Builder,AssignPrivateIpAddressesRequest>
,Ec2Request.Builder
,SdkBuilder<AssignPrivateIpAddressesRequest.Builder,AssignPrivateIpAddressesRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- AssignPrivateIpAddressesRequest
public static interface AssignPrivateIpAddressesRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<AssignPrivateIpAddressesRequest.Builder,AssignPrivateIpAddressesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssignPrivateIpAddressesRequest.Builder
allowReassignment(Boolean allowReassignment)
Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.AssignPrivateIpAddressesRequest.Builder
ipv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.AssignPrivateIpAddressesRequest.Builder
ipv4Prefixes(String... ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface.AssignPrivateIpAddressesRequest.Builder
ipv4Prefixes(Collection<String> ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface.AssignPrivateIpAddressesRequest.Builder
networkInterfaceId(String networkInterfaceId)
The ID of the network interface.AssignPrivateIpAddressesRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AssignPrivateIpAddressesRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AssignPrivateIpAddressesRequest.Builder
privateIpAddresses(String... privateIpAddresses)
The IP addresses to be assigned as a secondary private IP address to the network interface.AssignPrivateIpAddressesRequest.Builder
privateIpAddresses(Collection<String> privateIpAddresses)
The IP addresses to be assigned as a secondary private IP address to the network interface.AssignPrivateIpAddressesRequest.Builder
secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary IP addresses to assign to the network interface.-
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
-
allowReassignment
AssignPrivateIpAddressesRequest.Builder allowReassignment(Boolean allowReassignment)
Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.
- Parameters:
allowReassignment
- Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceId
AssignPrivateIpAddressesRequest.Builder networkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
AssignPrivateIpAddressesRequest.Builder privateIpAddresses(Collection<String> privateIpAddresses)
The IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.
If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
- Parameters:
privateIpAddresses
- The IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
AssignPrivateIpAddressesRequest.Builder privateIpAddresses(String... privateIpAddresses)
The IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.
If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
- Parameters:
privateIpAddresses
- The IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryPrivateIpAddressCount
AssignPrivateIpAddressesRequest.Builder secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.
- Parameters:
secondaryPrivateIpAddressCount
- The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
AssignPrivateIpAddressesRequest.Builder ipv4Prefixes(Collection<String> ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.- Parameters:
ipv4Prefixes
- One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use theIpv4PrefixCount
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
AssignPrivateIpAddressesRequest.Builder ipv4Prefixes(String... ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.- Parameters:
ipv4Prefixes
- One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use theIpv4PrefixCount
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4PrefixCount
AssignPrivateIpAddressesRequest.Builder ipv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the
Ipv4 Prefixes
option.- Parameters:
ipv4PrefixCount
- The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use theIpv4 Prefixes
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AssignPrivateIpAddressesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
AssignPrivateIpAddressesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-