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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateVpcEndpointRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVpcEndpointRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.Request<CreateVpcEndpointRequest>
getDryRunRequest()
This method is intended for internal use only.String
getPolicyDocument()
A policy to attach to the endpoint that controls access to the service.List<String>
getRouteTableIds()
One or more route table IDs.String
getServiceName()
The AWS service name, in the formcom.amazonaws.region.service
.String
getVpcId()
The ID of the VPC in which the endpoint will be used.int
hashCode()
void
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.void
setPolicyDocument(String policyDocument)
A policy to attach to the endpoint that controls access to the service.void
setRouteTableIds(Collection<String> routeTableIds)
One or more route table IDs.void
setServiceName(String serviceName)
The AWS service name, in the formcom.amazonaws.region.service
.void
setVpcId(String vpcId)
The ID of the VPC in which the endpoint will be used.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateVpcEndpointRequest
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.CreateVpcEndpointRequest
withPolicyDocument(String policyDocument)
A policy to attach to the endpoint that controls access to the service.CreateVpcEndpointRequest
withRouteTableIds(String... routeTableIds)
One or more route table IDs.CreateVpcEndpointRequest
withRouteTableIds(Collection<String> routeTableIds)
One or more route table IDs.CreateVpcEndpointRequest
withServiceName(String serviceName)
The AWS service name, in the formcom.amazonaws.region.service
.CreateVpcEndpointRequest
withVpcId(String vpcId)
The ID of the VPC in which the endpoint will be used.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
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 formcom.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 formcom.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)
orwithRouteTableIds(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 interfaceDryRunSupportedRequest<CreateVpcEndpointRequest>
-
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 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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-