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:
  • Constructor Details

    • VpcEndpoint

      public VpcEndpoint()
  • Method Details

    • 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:
    • getState

      public String getState()

      The state of the VPC endpoint.

      Returns:
      The state of the VPC endpoint.
      See Also:
    • 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:
    • setState

      public void setState(State state)

      The state of the VPC endpoint.

      Parameters:
      state - The state of the VPC endpoint.
      See Also:
    • 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:
    • 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) or withRouteTableIds(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public VpcEndpoint clone()
      Overrides:
      clone in class Object