Interface InstanceSecondaryInterface.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceSecondaryInterface.Builder,,InstanceSecondaryInterface> SdkBuilder<InstanceSecondaryInterface.Builder,,InstanceSecondaryInterface> SdkPojo
- Enclosing class:
InstanceSecondaryInterface
-
Method Summary
Modifier and TypeMethodDescriptionThe attachment information for the secondary interface.attachment(InstanceSecondaryInterfaceAttachment attachment) The attachment information for the secondary interface.interfaceType(String interfaceType) The type of secondary interface.interfaceType(SecondaryInterfaceType interfaceType) The type of secondary interface.macAddress(String macAddress) The MAC address of the secondary interface.The Amazon Web Services account ID of the owner of the secondary interface.privateIpAddresses(Collection<InstanceSecondaryInterfacePrivateIpAddress> privateIpAddresses) The private IPv4 addresses associated with the secondary interface.privateIpAddresses(Consumer<InstanceSecondaryInterfacePrivateIpAddress.Builder>... privateIpAddresses) The private IPv4 addresses associated with the secondary interface.privateIpAddresses(InstanceSecondaryInterfacePrivateIpAddress... privateIpAddresses) The private IPv4 addresses associated with the secondary interface.secondaryInterfaceId(String secondaryInterfaceId) The ID of the secondary interface.secondaryNetworkId(String secondaryNetworkId) The ID of the secondary network.secondarySubnetId(String secondarySubnetId) The ID of the secondary subnet.sourceDestCheck(Boolean sourceDestCheck) Indicates whether source/destination checking is enabled.The status of the secondary interface.status(SecondaryInterfaceStatus status) The status of the secondary interface.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
-
attachment
The attachment information for the secondary interface.
- Parameters:
attachment- The attachment information for the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachment
default InstanceSecondaryInterface.Builder attachment(Consumer<InstanceSecondaryInterfaceAttachment.Builder> attachment) The attachment information for the secondary interface.
This is a convenience method that creates an instance of theInstanceSecondaryInterfaceAttachment.Builderavoiding the need to create one manually viaInstanceSecondaryInterfaceAttachment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattachment(InstanceSecondaryInterfaceAttachment).- Parameters:
attachment- a consumer that will call methods onInstanceSecondaryInterfaceAttachment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
macAddress
The MAC address of the secondary interface.
- Parameters:
macAddress- The MAC address of the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryInterfaceId
The ID of the secondary interface.
- Parameters:
secondaryInterfaceId- The ID of the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
The Amazon Web Services account ID of the owner of the secondary interface.
- Parameters:
ownerId- The Amazon Web Services account ID of the owner of the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceSecondaryInterface.Builder privateIpAddresses(Collection<InstanceSecondaryInterfacePrivateIpAddress> privateIpAddresses) The private IPv4 addresses associated with the secondary interface.
- Parameters:
privateIpAddresses- The private IPv4 addresses associated with the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceSecondaryInterface.Builder privateIpAddresses(InstanceSecondaryInterfacePrivateIpAddress... privateIpAddresses) The private IPv4 addresses associated with the secondary interface.
- Parameters:
privateIpAddresses- The private IPv4 addresses associated with the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceSecondaryInterface.Builder privateIpAddresses(Consumer<InstanceSecondaryInterfacePrivateIpAddress.Builder>... privateIpAddresses) The private IPv4 addresses associated with the secondary interface.
This is a convenience method that creates an instance of theInstanceSecondaryInterfacePrivateIpAddress.Builderavoiding the need to create one manually viaInstanceSecondaryInterfacePrivateIpAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateIpAddresses(List<InstanceSecondaryInterfacePrivateIpAddress>).- Parameters:
privateIpAddresses- a consumer that will call methods onInstanceSecondaryInterfacePrivateIpAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceDestCheck
Indicates whether source/destination checking is enabled.
- Parameters:
sourceDestCheck- Indicates whether source/destination checking is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the secondary interface.
- Parameters:
status- The status of the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the secondary interface.
- Parameters:
status- The status of the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
secondaryNetworkId
The ID of the secondary network.
- Parameters:
secondaryNetworkId- The ID of the secondary network.- 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
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:
-