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
Modifier and TypeMethodDescriptionassociationId
(String associationId) The ID of the association.clientVpnEndpointId
(String clientVpnEndpointId) The ID of the Client VPN endpoint with which the target network is associated.securityGroups
(String... securityGroups) The IDs of the security groups applied to the target network association.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.status
(AssociationStatus status) The current state of the target network association.targetNetworkId
(String targetNetworkId) The ID of the subnet specified as the target network.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 Details
-
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
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
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
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
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
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:
-
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
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.
-