public class CreateVpcEndpointRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateVpcEndpointRequest>
CreateVpcEndpoint operation
.
Creates a VPC endpoint for a specified AWS service. An endpoint enables you to create a private connection between your VPC and another AWS service in your account. You can specify an endpoint policy to attach to the endpoint that will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.
Currently, only endpoints to Amazon S3 are supported.
NOOP
Constructor and Description |
---|
CreateVpcEndpointRequest() |
Modifier and Type | Method and Description |
---|---|
CreateVpcEndpointRequest |
clone() |
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 form com.amazonaws.
|
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 form com.amazonaws.
|
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(Collection<String> routeTableIds)
One or more route table IDs.
|
CreateVpcEndpointRequest |
withRouteTableIds(String... routeTableIds)
One or more route table IDs.
|
CreateVpcEndpointRequest |
withServiceName(String serviceName)
The AWS service name, in the form com.amazonaws.
|
CreateVpcEndpointRequest |
withVpcId(String vpcId)
The ID of the VPC in which the endpoint will be used.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC in which the endpoint will be used.public CreateVpcEndpointRequest withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC in which the endpoint will be used.public String getServiceName()
public void setServiceName(String serviceName)
serviceName
- The AWS service name, in the form com.amazonaws.public CreateVpcEndpointRequest withServiceName(String serviceName)
Returns a reference to this object so that method calls can be chained together.
serviceName
- The AWS service name, in the form com.amazonaws.public String getPolicyDocument()
public void setPolicyDocument(String policyDocument)
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.public CreateVpcEndpointRequest withPolicyDocument(String policyDocument)
Returns a reference to this object so that method calls can be chained together.
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.public List<String> getRouteTableIds()
public void setRouteTableIds(Collection<String> routeTableIds)
routeTableIds
- One or more route table IDs.public CreateVpcEndpointRequest withRouteTableIds(String... routeTableIds)
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.
Returns a reference to this object so that method calls can be chained together.
routeTableIds
- One or more route table IDs.public CreateVpcEndpointRequest withRouteTableIds(Collection<String> routeTableIds)
Returns a reference to this object so that method calls can be chained together.
routeTableIds
- One or more route table IDs.public String getClientToken()
public void setClientToken(String clientToken)
clientToken
- Unique, case-sensitive identifier you provide to ensure the
idempotency of the request. For more information, see How
to Ensure Idempotency.public CreateVpcEndpointRequest withClientToken(String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- Unique, case-sensitive identifier you provide to ensure the
idempotency of the request. For more information, see How
to Ensure Idempotency.public Request<CreateVpcEndpointRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateVpcEndpointRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateVpcEndpointRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.