Class ModifyVpcEndpointRequest

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

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

Contains the parameters for ModifyVpcEndpoint.

See Also:
  • Constructor Details

    • ModifyVpcEndpointRequest

      public ModifyVpcEndpointRequest()
  • Method Details

    • setVpcEndpointId

      public void setVpcEndpointId(String vpcEndpointId)

      The ID of the endpoint.

      Parameters:
      vpcEndpointId - The ID of the endpoint.
    • getVpcEndpointId

      public String getVpcEndpointId()

      The ID of the endpoint.

      Returns:
      The ID of the endpoint.
    • withVpcEndpointId

      public ModifyVpcEndpointRequest withVpcEndpointId(String vpcEndpointId)

      The ID of the endpoint.

      Parameters:
      vpcEndpointId - The ID of the endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setResetPolicy

      public void setResetPolicy(Boolean resetPolicy)

      Specify true to reset the policy document to the default policy. The default policy allows access to the service.

      Parameters:
      resetPolicy - Specify true to reset the policy document to the default policy. The default policy allows access to the service.
    • getResetPolicy

      public Boolean getResetPolicy()

      Specify true to reset the policy document to the default policy. The default policy allows access to the service.

      Returns:
      Specify true to reset the policy document to the default policy. The default policy allows access to the service.
    • withResetPolicy

      public ModifyVpcEndpointRequest withResetPolicy(Boolean resetPolicy)

      Specify true to reset the policy document to the default policy. The default policy allows access to the service.

      Parameters:
      resetPolicy - Specify true to reset the policy document to the default policy. The default policy allows access to the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isResetPolicy

      public Boolean isResetPolicy()

      Specify true to reset the policy document to the default policy. The default policy allows access to the service.

      Returns:
      Specify true to reset the policy document to the default policy. The default policy allows access to the service.
    • setPolicyDocument

      public void setPolicyDocument(String policyDocument)

      A policy document to attach to the endpoint. The policy must be in valid JSON format.

      Parameters:
      policyDocument - A policy document to attach to the endpoint. The policy must be in valid JSON format.
    • getPolicyDocument

      public String getPolicyDocument()

      A policy document to attach to the endpoint. The policy must be in valid JSON format.

      Returns:
      A policy document to attach to the endpoint. The policy must be in valid JSON format.
    • withPolicyDocument

      public ModifyVpcEndpointRequest withPolicyDocument(String policyDocument)

      A policy document to attach to the endpoint. The policy must be in valid JSON format.

      Parameters:
      policyDocument - A policy document to attach to the endpoint. The policy must be in valid JSON format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAddRouteTableIds

      public List<String> getAddRouteTableIds()

      One or more route tables IDs to associate with the endpoint.

      Returns:
      One or more route tables IDs to associate with the endpoint.
    • setAddRouteTableIds

      public void setAddRouteTableIds(Collection<String> addRouteTableIds)

      One or more route tables IDs to associate with the endpoint.

      Parameters:
      addRouteTableIds - One or more route tables IDs to associate with the endpoint.
    • withAddRouteTableIds

      public ModifyVpcEndpointRequest withAddRouteTableIds(String... addRouteTableIds)

      One or more route tables IDs to associate with the endpoint.

      NOTE: This method appends the values to the existing list (if any). Use setAddRouteTableIds(java.util.Collection) or withAddRouteTableIds(java.util.Collection) if you want to override the existing values.

      Parameters:
      addRouteTableIds - One or more route tables IDs to associate with the endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAddRouteTableIds

      public ModifyVpcEndpointRequest withAddRouteTableIds(Collection<String> addRouteTableIds)

      One or more route tables IDs to associate with the endpoint.

      Parameters:
      addRouteTableIds - One or more route tables IDs to associate with the endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getRemoveRouteTableIds

      public List<String> getRemoveRouteTableIds()

      One or more route table IDs to disassociate from the endpoint.

      Returns:
      One or more route table IDs to disassociate from the endpoint.
    • setRemoveRouteTableIds

      public void setRemoveRouteTableIds(Collection<String> removeRouteTableIds)

      One or more route table IDs to disassociate from the endpoint.

      Parameters:
      removeRouteTableIds - One or more route table IDs to disassociate from the endpoint.
    • withRemoveRouteTableIds

      public ModifyVpcEndpointRequest withRemoveRouteTableIds(String... removeRouteTableIds)

      One or more route table IDs to disassociate from the endpoint.

      NOTE: This method appends the values to the existing list (if any). Use setRemoveRouteTableIds(java.util.Collection) or withRemoveRouteTableIds(java.util.Collection) if you want to override the existing values.

      Parameters:
      removeRouteTableIds - One or more route table IDs to disassociate from the endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRemoveRouteTableIds

      public ModifyVpcEndpointRequest withRemoveRouteTableIds(Collection<String> removeRouteTableIds)

      One or more route table IDs to disassociate from the endpoint.

      Parameters:
      removeRouteTableIds - One or more route table IDs to disassociate from the endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDryRunRequest

      public Request<ModifyVpcEndpointRequest> 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<ModifyVpcEndpointRequest>
    • 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 ModifyVpcEndpointRequest 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: