Interface TargetNetwork.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TargetNetwork.Builder,TargetNetwork>
,SdkBuilder<TargetNetwork.Builder,TargetNetwork>
,SdkPojo
- Enclosing class:
- TargetNetwork
public static interface TargetNetwork.Builder extends SdkPojo, CopyableBuilder<TargetNetwork.Builder,TargetNetwork>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TargetNetwork.Builder
associationId(String associationId)
The ID of the association.TargetNetwork.Builder
clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the target network is associated.TargetNetwork.Builder
securityGroups(String... securityGroups)
The IDs of the security groups applied to the target network association.TargetNetwork.Builder
securityGroups(Collection<String> securityGroups)
The IDs of the security groups applied to the target network association.default TargetNetwork.Builder
status(Consumer<AssociationStatus.Builder> status)
The current state of the target network association.TargetNetwork.Builder
status(AssociationStatus status)
The current state of the target network association.TargetNetwork.Builder
targetNetworkId(String targetNetworkId)
The ID of the subnet specified as the target network.TargetNetwork.Builder
vpcId(String vpcId)
The ID of the VPC in which the target network (subnet) is located.-
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, sdkFields
-
-
-
-
Method Detail
-
associationId
TargetNetwork.Builder associationId(String associationId)
The ID of the association.
- Parameters:
associationId
- The ID of the association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
TargetNetwork.Builder vpcId(String vpcId)
The ID of the VPC in which the target network (subnet) is located.
- Parameters:
vpcId
- The ID of the VPC in which the target network (subnet) is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetNetworkId
TargetNetwork.Builder targetNetworkId(String targetNetworkId)
The ID of the subnet specified as the target network.
- Parameters:
targetNetworkId
- The ID of the subnet specified as the target network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientVpnEndpointId
TargetNetwork.Builder clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the target network is associated.
- Parameters:
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the target network is associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
TargetNetwork.Builder status(AssociationStatus status)
The current state of the target network association.
- Parameters:
status
- The current state of the target network association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default TargetNetwork.Builder status(Consumer<AssociationStatus.Builder> status)
The current state of the target network association.
This is a convenience method that creates an instance of theAssociationStatus.Builder
avoiding the need to create one manually viaAssociationStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(AssociationStatus)
.- Parameters:
status
- a consumer that will call methods onAssociationStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(AssociationStatus)
-
securityGroups
TargetNetwork.Builder securityGroups(Collection<String> securityGroups)
The IDs of the security groups applied to the target network association.
- Parameters:
securityGroups
- The IDs of the security groups applied to the target network association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
TargetNetwork.Builder securityGroups(String... securityGroups)
The IDs of the security groups applied to the target network association.
- Parameters:
securityGroups
- The IDs of the security groups applied to the target network association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-