Class VpcEndpoint
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VpcEndpoint
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VpcEndpoint extends Object implements Serializable, Cloneable
Describes a VPC endpoint.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VpcEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcEndpoint
clone()
boolean
equals(Object obj)
Date
getCreationTimestamp()
The date and time the VPC endpoint was created.String
getPolicyDocument()
The policy document associated with the endpoint.List<String>
getRouteTableIds()
One or more route tables associated with the endpoint.String
getServiceName()
The name of the AWS service to which the endpoint is associated.String
getState()
The state of the VPC endpoint.String
getVpcEndpointId()
The ID of the VPC endpoint.String
getVpcId()
The ID of the VPC to which the endpoint is associated.int
hashCode()
void
setCreationTimestamp(Date creationTimestamp)
The date and time the VPC endpoint was created.void
setPolicyDocument(String policyDocument)
The policy document associated with the endpoint.void
setRouteTableIds(Collection<String> routeTableIds)
One or more route tables associated with the endpoint.void
setServiceName(String serviceName)
The name of the AWS service to which the endpoint is associated.void
setState(State state)
The state of the VPC endpoint.void
setState(String state)
The state of the VPC endpoint.void
setVpcEndpointId(String vpcEndpointId)
The ID of the VPC endpoint.void
setVpcId(String vpcId)
The ID of the VPC to which the endpoint is associated.String
toString()
Returns a string representation of this object; useful for testing and debugging.VpcEndpoint
withCreationTimestamp(Date creationTimestamp)
The date and time the VPC endpoint was created.VpcEndpoint
withPolicyDocument(String policyDocument)
The policy document associated with the endpoint.VpcEndpoint
withRouteTableIds(String... routeTableIds)
One or more route tables associated with the endpoint.VpcEndpoint
withRouteTableIds(Collection<String> routeTableIds)
One or more route tables associated with the endpoint.VpcEndpoint
withServiceName(String serviceName)
The name of the AWS service to which the endpoint is associated.VpcEndpoint
withState(State state)
The state of the VPC endpoint.VpcEndpoint
withState(String state)
The state of the VPC endpoint.VpcEndpoint
withVpcEndpointId(String vpcEndpointId)
The ID of the VPC endpoint.VpcEndpoint
withVpcId(String vpcId)
The ID of the VPC to which the endpoint is associated.
-
-
-
Method Detail
-
setVpcEndpointId
public void setVpcEndpointId(String vpcEndpointId)
The ID of the VPC endpoint.
- Parameters:
vpcEndpointId
- The ID of the VPC endpoint.
-
getVpcEndpointId
public String getVpcEndpointId()
The ID of the VPC endpoint.
- Returns:
- The ID of the VPC endpoint.
-
withVpcEndpointId
public VpcEndpoint withVpcEndpointId(String vpcEndpointId)
The ID of the VPC endpoint.
- Parameters:
vpcEndpointId
- The ID of the VPC endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
public void setVpcId(String vpcId)
The ID of the VPC to which the endpoint is associated.
- Parameters:
vpcId
- The ID of the VPC to which the endpoint is associated.
-
getVpcId
public String getVpcId()
The ID of the VPC to which the endpoint is associated.
- Returns:
- The ID of the VPC to which the endpoint is associated.
-
withVpcId
public VpcEndpoint withVpcId(String vpcId)
The ID of the VPC to which the endpoint is associated.
- Parameters:
vpcId
- The ID of the VPC to which the endpoint is associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceName
public void setServiceName(String serviceName)
The name of the AWS service to which the endpoint is associated.
- Parameters:
serviceName
- The name of the AWS service to which the endpoint is associated.
-
getServiceName
public String getServiceName()
The name of the AWS service to which the endpoint is associated.
- Returns:
- The name of the AWS service to which the endpoint is associated.
-
withServiceName
public VpcEndpoint withServiceName(String serviceName)
The name of the AWS service to which the endpoint is associated.
- Parameters:
serviceName
- The name of the AWS service to which the endpoint is associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The state of the VPC endpoint.
- Parameters:
state
- The state of the VPC endpoint.- See Also:
State
-
getState
public String getState()
The state of the VPC endpoint.
- Returns:
- The state of the VPC endpoint.
- See Also:
State
-
withState
public VpcEndpoint withState(String state)
The state of the VPC endpoint.
- Parameters:
state
- The state of the VPC endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
State
-
setState
public void setState(State state)
The state of the VPC endpoint.
- Parameters:
state
- The state of the VPC endpoint.- See Also:
State
-
withState
public VpcEndpoint withState(State state)
The state of the VPC endpoint.
- Parameters:
state
- The state of the VPC endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
State
-
setPolicyDocument
public void setPolicyDocument(String policyDocument)
The policy document associated with the endpoint.
- Parameters:
policyDocument
- The policy document associated with the endpoint.
-
getPolicyDocument
public String getPolicyDocument()
The policy document associated with the endpoint.
- Returns:
- The policy document associated with the endpoint.
-
withPolicyDocument
public VpcEndpoint withPolicyDocument(String policyDocument)
The policy document associated with the endpoint.
- Parameters:
policyDocument
- The policy document associated with the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRouteTableIds
public List<String> getRouteTableIds()
One or more route tables associated with the endpoint.
- Returns:
- One or more route tables associated with the endpoint.
-
setRouteTableIds
public void setRouteTableIds(Collection<String> routeTableIds)
One or more route tables associated with the endpoint.
- Parameters:
routeTableIds
- One or more route tables associated with the endpoint.
-
withRouteTableIds
public VpcEndpoint withRouteTableIds(String... routeTableIds)
One or more route tables associated with the endpoint.
NOTE: This method appends the values to the existing list (if any). Use
setRouteTableIds(java.util.Collection)
orwithRouteTableIds(java.util.Collection)
if you want to override the existing values.- Parameters:
routeTableIds
- One or more route tables associated with the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRouteTableIds
public VpcEndpoint withRouteTableIds(Collection<String> routeTableIds)
One or more route tables associated with the endpoint.
- Parameters:
routeTableIds
- One or more route tables associated with the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationTimestamp
public void setCreationTimestamp(Date creationTimestamp)
The date and time the VPC endpoint was created.
- Parameters:
creationTimestamp
- The date and time the VPC endpoint was created.
-
getCreationTimestamp
public Date getCreationTimestamp()
The date and time the VPC endpoint was created.
- Returns:
- The date and time the VPC endpoint was created.
-
withCreationTimestamp
public VpcEndpoint withCreationTimestamp(Date creationTimestamp)
The date and time the VPC endpoint was created.
- Parameters:
creationTimestamp
- The date and time the VPC endpoint was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpcEndpoint clone()
-
-