@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetNetwork extends Object implements Serializable, Cloneable
Describes a target network associated with a Client VPN endpoint.
Constructor and Description |
---|
TargetNetwork() |
Modifier and Type | Method and Description |
---|---|
TargetNetwork |
clone() |
boolean |
equals(Object obj) |
String |
getAssociationId()
The ID of the association.
|
String |
getClientVpnEndpointId()
The ID of the Client VPN endpoint with which the target network is associated.
|
List<String> |
getSecurityGroups()
The IDs of the security groups applied to the target network association.
|
AssociationStatus |
getStatus()
The current state of the target network association.
|
String |
getTargetNetworkId()
The ID of the subnet specified as the target network.
|
String |
getVpcId()
The ID of the VPC in which the target network (subnet) is located.
|
int |
hashCode() |
void |
setAssociationId(String associationId)
The ID of the association.
|
void |
setClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the target network is associated.
|
void |
setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups applied to the target network association.
|
void |
setStatus(AssociationStatus status)
The current state of the target network association.
|
void |
setTargetNetworkId(String targetNetworkId)
The ID of the subnet specified as the target network.
|
void |
setVpcId(String vpcId)
The ID of the VPC in which the target network (subnet) is located.
|
String |
toString()
Returns a string representation of this object.
|
TargetNetwork |
withAssociationId(String associationId)
The ID of the association.
|
TargetNetwork |
withClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the target network is associated.
|
TargetNetwork |
withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups applied to the target network association.
|
TargetNetwork |
withSecurityGroups(String... securityGroups)
The IDs of the security groups applied to the target network association.
|
TargetNetwork |
withStatus(AssociationStatus status)
The current state of the target network association.
|
TargetNetwork |
withTargetNetworkId(String targetNetworkId)
The ID of the subnet specified as the target network.
|
TargetNetwork |
withVpcId(String vpcId)
The ID of the VPC in which the target network (subnet) is located.
|
public void setAssociationId(String associationId)
The ID of the association.
associationId
- The ID of the association.public String getAssociationId()
The ID of the association.
public TargetNetwork withAssociationId(String associationId)
The ID of the association.
associationId
- The ID of the association.public void setVpcId(String vpcId)
The ID of the VPC in which the target network (subnet) is located.
vpcId
- The ID of the VPC in which the target network (subnet) is located.public String getVpcId()
The ID of the VPC in which the target network (subnet) is located.
public TargetNetwork withVpcId(String vpcId)
The ID of the VPC in which the target network (subnet) is located.
vpcId
- The ID of the VPC in which the target network (subnet) is located.public void setTargetNetworkId(String targetNetworkId)
The ID of the subnet specified as the target network.
targetNetworkId
- The ID of the subnet specified as the target network.public String getTargetNetworkId()
The ID of the subnet specified as the target network.
public TargetNetwork withTargetNetworkId(String targetNetworkId)
The ID of the subnet specified as the target network.
targetNetworkId
- The ID of the subnet specified as the target network.public void setClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the target network is associated.
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the target network is associated.public String getClientVpnEndpointId()
The ID of the Client VPN endpoint with which the target network is associated.
public TargetNetwork withClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the target network is associated.
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the target network is associated.public void setStatus(AssociationStatus status)
The current state of the target network association.
status
- The current state of the target network association.public AssociationStatus getStatus()
The current state of the target network association.
public TargetNetwork withStatus(AssociationStatus status)
The current state of the target network association.
status
- The current state of the target network association.public List<String> getSecurityGroups()
The IDs of the security groups applied to the target network association.
public void setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups applied to the target network association.
securityGroups
- The IDs of the security groups applied to the target network association.public TargetNetwork withSecurityGroups(String... securityGroups)
The IDs of the security groups applied to the target network association.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- The IDs of the security groups applied to the target network association.public TargetNetwork withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups applied to the target network association.
securityGroups
- The IDs of the security groups applied to the target network association.public String toString()
toString
in class Object
Object.toString()
public TargetNetwork clone()