Interface InstanceSecondaryInterface.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceSecondaryInterface.Builder,InstanceSecondaryInterface>,SdkBuilder<InstanceSecondaryInterface.Builder,InstanceSecondaryInterface>,SdkPojo
- Enclosing class:
- InstanceSecondaryInterface
@Mutable @NotThreadSafe public static interface InstanceSecondaryInterface.Builder extends SdkPojo, CopyableBuilder<InstanceSecondaryInterface.Builder,InstanceSecondaryInterface>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InstanceSecondaryInterface.Builderattachment(Consumer<InstanceSecondaryInterfaceAttachment.Builder> attachment)The attachment information for the secondary interface.InstanceSecondaryInterface.Builderattachment(InstanceSecondaryInterfaceAttachment attachment)The attachment information for the secondary interface.InstanceSecondaryInterface.BuilderinterfaceType(String interfaceType)The type of secondary interface.InstanceSecondaryInterface.BuilderinterfaceType(SecondaryInterfaceType interfaceType)The type of secondary interface.InstanceSecondaryInterface.BuildermacAddress(String macAddress)The MAC address of the secondary interface.InstanceSecondaryInterface.BuilderownerId(String ownerId)The Amazon Web Services account ID of the owner of the secondary interface.InstanceSecondaryInterface.BuilderprivateIpAddresses(Collection<InstanceSecondaryInterfacePrivateIpAddress> privateIpAddresses)The private IPv4 addresses associated with the secondary interface.InstanceSecondaryInterface.BuilderprivateIpAddresses(Consumer<InstanceSecondaryInterfacePrivateIpAddress.Builder>... privateIpAddresses)The private IPv4 addresses associated with the secondary interface.InstanceSecondaryInterface.BuilderprivateIpAddresses(InstanceSecondaryInterfacePrivateIpAddress... privateIpAddresses)The private IPv4 addresses associated with the secondary interface.InstanceSecondaryInterface.BuildersecondaryInterfaceId(String secondaryInterfaceId)The ID of the secondary interface.InstanceSecondaryInterface.BuildersecondaryNetworkId(String secondaryNetworkId)The ID of the secondary network.InstanceSecondaryInterface.BuildersecondarySubnetId(String secondarySubnetId)The ID of the secondary subnet.InstanceSecondaryInterface.BuildersourceDestCheck(Boolean sourceDestCheck)Indicates whether source/destination checking is enabled.InstanceSecondaryInterface.Builderstatus(String status)The status of the secondary interface.InstanceSecondaryInterface.Builderstatus(SecondaryInterfaceStatus status)The status of the secondary interface.-
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
-
attachment
InstanceSecondaryInterface.Builder attachment(InstanceSecondaryInterfaceAttachment 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:
attachment(InstanceSecondaryInterfaceAttachment)
-
macAddress
InstanceSecondaryInterface.Builder macAddress(String 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
InstanceSecondaryInterface.Builder secondaryInterfaceId(String 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
InstanceSecondaryInterface.Builder ownerId(String 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 to#privateIpAddresses(List.) - 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:
#privateIpAddresses(java.util.Collection)
-
sourceDestCheck
InstanceSecondaryInterface.Builder sourceDestCheck(Boolean 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
InstanceSecondaryInterface.Builder status(String 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:
SecondaryInterfaceStatus,SecondaryInterfaceStatus
-
status
InstanceSecondaryInterface.Builder status(SecondaryInterfaceStatus 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:
SecondaryInterfaceStatus,SecondaryInterfaceStatus
-
secondarySubnetId
InstanceSecondaryInterface.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.
-
secondaryNetworkId
InstanceSecondaryInterface.Builder secondaryNetworkId(String 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
InstanceSecondaryInterface.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
InstanceSecondaryInterface.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
-
-