Interface InstanceSecondaryInterfaceSpecificationRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceSecondaryInterfaceSpecificationRequest.Builder,,InstanceSecondaryInterfaceSpecificationRequest> SdkBuilder<InstanceSecondaryInterfaceSpecificationRequest.Builder,,InstanceSecondaryInterfaceSpecificationRequest> SdkPojo
- Enclosing class:
InstanceSecondaryInterfaceSpecificationRequest
-
Method Summary
Modifier and TypeMethodDescriptiondeleteOnTermination(Boolean deleteOnTermination) Indicates whether the secondary interface is deleted when the instance is terminated.deviceIndex(Integer deviceIndex) The device index for the secondary interface attachment.interfaceType(String interfaceType) The type of secondary interface.interfaceType(SecondaryInterfaceType interfaceType) The type of secondary interface.networkCardIndex(Integer networkCardIndex) The index of the network card.privateIpAddressCount(Integer privateIpAddressCount) The number of private IPv4 addresses to assign to the secondary interface.privateIpAddresses(Collection<InstanceSecondaryInterfacePrivateIpAddressRequest> privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.privateIpAddresses(Consumer<InstanceSecondaryInterfacePrivateIpAddressRequest.Builder>... privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.privateIpAddresses(InstanceSecondaryInterfacePrivateIpAddressRequest... privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.secondarySubnetId(String secondarySubnetId) The ID of the secondary subnet.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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 toprivateIpAddresses(List<InstanceSecondaryInterfacePrivateIpAddressRequest>).- 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:
-
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
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
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:
-
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:
-
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.
-