Class CreateVpcEndpointRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateVpcEndpointRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<CreateVpcEndpointRequest>, Serializable, Cloneable

public class CreateVpcEndpointRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateVpcEndpointRequest>

Contains the parameters for CreateVpcEndpoint.

See Also:
  • Constructor Details

    • CreateVpcEndpointRequest

      public CreateVpcEndpointRequest()
  • Method Details

    • setVpcId

      public void setVpcId(String vpcId)

      The ID of the VPC in which the endpoint will be used.

      Parameters:
      vpcId - The ID of the VPC in which the endpoint will be used.
    • getVpcId

      public String getVpcId()

      The ID of the VPC in which the endpoint will be used.

      Returns:
      The ID of the VPC in which the endpoint will be used.
    • withVpcId

      public CreateVpcEndpointRequest withVpcId(String vpcId)

      The ID of the VPC in which the endpoint will be used.

      Parameters:
      vpcId - The ID of the VPC in which the endpoint will be used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setServiceName

      public void setServiceName(String serviceName)

      The AWS service name, in the form com.amazonaws.region.service. To get a list of available services, use the DescribeVpcEndpointServices request.

      Parameters:
      serviceName - The AWS service name, in the form com.amazonaws.region.service. To get a list of available services, use the DescribeVpcEndpointServices request.
    • getServiceName

      public String getServiceName()

      The AWS service name, in the form com.amazonaws.region.service. To get a list of available services, use the DescribeVpcEndpointServices request.

      Returns:
      The AWS service name, in the form com.amazonaws.region.service. To get a list of available services, use the DescribeVpcEndpointServices request.
    • withServiceName

      public CreateVpcEndpointRequest withServiceName(String serviceName)

      The AWS service name, in the form com.amazonaws.region.service. To get a list of available services, use the DescribeVpcEndpointServices request.

      Parameters:
      serviceName - The AWS service name, in the form com.amazonaws.region.service. To get a list of available services, use the DescribeVpcEndpointServices request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPolicyDocument

      public void setPolicyDocument(String policyDocument)

      A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

      Parameters:
      policyDocument - A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.
    • getPolicyDocument

      public String getPolicyDocument()

      A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

      Returns:
      A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.
    • withPolicyDocument

      public CreateVpcEndpointRequest withPolicyDocument(String policyDocument)

      A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

      Parameters:
      policyDocument - A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getRouteTableIds

      public List<String> getRouteTableIds()

      One or more route table IDs.

      Returns:
      One or more route table IDs.
    • setRouteTableIds

      public void setRouteTableIds(Collection<String> routeTableIds)

      One or more route table IDs.

      Parameters:
      routeTableIds - One or more route table IDs.
    • withRouteTableIds

      public CreateVpcEndpointRequest withRouteTableIds(String... routeTableIds)

      One or more route table IDs.

      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 table IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRouteTableIds

      public CreateVpcEndpointRequest withRouteTableIds(Collection<String> routeTableIds)

      One or more route table IDs.

      Parameters:
      routeTableIds - One or more route table IDs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setClientToken

      public void setClientToken(String clientToken)

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Parameters:
      clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
    • getClientToken

      public String getClientToken()

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Returns:
      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
    • withClientToken

      public CreateVpcEndpointRequest withClientToken(String clientToken)

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Parameters:
      clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDryRunRequest

      public Request<CreateVpcEndpointRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<CreateVpcEndpointRequest>
    • 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 CreateVpcEndpointRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: