Interface InstanceSecondaryInterfaceSpecificationRequest.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceSecondaryInterfaceSpecificationRequest.Builder,InstanceSecondaryInterfaceSpecificationRequest>,SdkBuilder<InstanceSecondaryInterfaceSpecificationRequest.Builder,InstanceSecondaryInterfaceSpecificationRequest>,SdkPojo
- Enclosing class:
- InstanceSecondaryInterfaceSpecificationRequest
@Mutable @NotThreadSafe public static interface InstanceSecondaryInterfaceSpecificationRequest.Builder extends SdkPojo, CopyableBuilder<InstanceSecondaryInterfaceSpecificationRequest.Builder,InstanceSecondaryInterfaceSpecificationRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
deleteOnTermination
InstanceSecondaryInterfaceSpecificationRequest.Builder deleteOnTermination(Boolean deleteOnTermination)
Indicates whether the secondary interface is deleted when the instance is terminated.
The only supported value for this field is
true.- Parameters:
deleteOnTermination- Indicates whether the secondary interface is deleted when the instance is terminated.The only supported value for this field is
true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceIndex
InstanceSecondaryInterfaceSpecificationRequest.Builder deviceIndex(Integer deviceIndex)
The device index for the secondary interface attachment.
- Parameters:
deviceIndex- The device index for the secondary interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceSecondaryInterfaceSpecificationRequest.Builder privateIpAddresses(Collection<InstanceSecondaryInterfacePrivateIpAddressRequest> privateIpAddresses)
The private IPv4 addresses to assign to the secondary interface.
- Parameters:
privateIpAddresses- The private IPv4 addresses to assign to the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceSecondaryInterfaceSpecificationRequest.Builder privateIpAddresses(InstanceSecondaryInterfacePrivateIpAddressRequest... privateIpAddresses)
The private IPv4 addresses to assign to the secondary interface.
- Parameters:
privateIpAddresses- The private IPv4 addresses to assign to the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceSecondaryInterfaceSpecificationRequest.Builder privateIpAddresses(Consumer<InstanceSecondaryInterfacePrivateIpAddressRequest.Builder>... privateIpAddresses)
The private IPv4 addresses to assign to the secondary interface.
This is a convenience method that creates an instance of theInstanceSecondaryInterfacePrivateIpAddressRequest.Builderavoiding the need to create one manually viaInstanceSecondaryInterfacePrivateIpAddressRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#privateIpAddresses(List.) - Parameters:
privateIpAddresses- a consumer that will call methods onInstanceSecondaryInterfacePrivateIpAddressRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#privateIpAddresses(java.util.Collection)
-
privateIpAddressCount
InstanceSecondaryInterfaceSpecificationRequest.Builder privateIpAddressCount(Integer privateIpAddressCount)
The number of private IPv4 addresses to assign to the secondary interface.
- Parameters:
privateIpAddressCount- The number of private IPv4 addresses to assign to the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySubnetId
InstanceSecondaryInterfaceSpecificationRequest.Builder secondarySubnetId(String secondarySubnetId)
The ID of the secondary subnet.
- Parameters:
secondarySubnetId- The ID of the secondary subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interfaceType
InstanceSecondaryInterfaceSpecificationRequest.Builder interfaceType(String interfaceType)
The type of secondary interface.
- Parameters:
interfaceType- The type of secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SecondaryInterfaceType,SecondaryInterfaceType
-
interfaceType
InstanceSecondaryInterfaceSpecificationRequest.Builder interfaceType(SecondaryInterfaceType interfaceType)
The type of secondary interface.
- Parameters:
interfaceType- The type of secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SecondaryInterfaceType,SecondaryInterfaceType
-
networkCardIndex
InstanceSecondaryInterfaceSpecificationRequest.Builder networkCardIndex(Integer networkCardIndex)
The index of the network card. The network card must support secondary interfaces.
- Parameters:
networkCardIndex- The index of the network card. The network card must support secondary interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-