public class CreateVpcEndpointRequest extends AmazonWebServiceRequest implements java.io.Serializable, 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.
Constructor and Description |
---|
CreateVpcEndpointRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getPolicyDocument()
A policy to attach to the endpoint that controls access to the
service.
|
java.util.List<java.lang.String> |
getRouteTableIds()
One or more route table IDs.
|
java.lang.String |
getServiceName()
The AWS service name, in the form
com.amazonaws.region.service . |
java.lang.String |
getVpcId()
The ID of the VPC in which the endpoint will be used.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the
idempotency of the request.
|
void |
setPolicyDocument(java.lang.String policyDocument)
A policy to attach to the endpoint that controls access to the
service.
|
void |
setRouteTableIds(java.util.Collection<java.lang.String> routeTableIds)
One or more route table IDs.
|
void |
setServiceName(java.lang.String serviceName)
The AWS service name, in the form
com.amazonaws.region.service . |
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC in which the endpoint will be used.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateVpcEndpointRequest |
withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the
idempotency of the request.
|
CreateVpcEndpointRequest |
withPolicyDocument(java.lang.String policyDocument)
A policy to attach to the endpoint that controls access to the
service.
|
CreateVpcEndpointRequest |
withRouteTableIds(java.util.Collection<java.lang.String> routeTableIds)
One or more route table IDs.
|
CreateVpcEndpointRequest |
withRouteTableIds(java.lang.String... routeTableIds)
One or more route table IDs.
|
CreateVpcEndpointRequest |
withServiceName(java.lang.String serviceName)
The AWS service name, in the form
com.amazonaws.region.service . |
CreateVpcEndpointRequest |
withVpcId(java.lang.String vpcId)
The ID of the VPC in which the endpoint will be used.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The ID of the VPC in which the endpoint will be used.public CreateVpcEndpointRequest withVpcId(java.lang.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 java.lang.String getServiceName()
com.amazonaws.region.service
. To get a list
of available services, use the DescribeVpcEndpointServices
request.com.amazonaws.region.service
. To get a list
of available services, use the DescribeVpcEndpointServices
request.public void setServiceName(java.lang.String serviceName)
com.amazonaws.region.service
. To get a list
of available services, use the DescribeVpcEndpointServices
request.serviceName
- The AWS service name, in the form
com.amazonaws.region.service
. To get a list
of available services, use the DescribeVpcEndpointServices
request.public CreateVpcEndpointRequest withServiceName(java.lang.String serviceName)
com.amazonaws.region.service
. To get a list
of available services, use the DescribeVpcEndpointServices
request.
Returns a reference to this object so that method calls can be chained together.
serviceName
- The AWS service name, in the form
com.amazonaws.region.service
. To get a list
of available services, use the DescribeVpcEndpointServices
request.public java.lang.String getPolicyDocument()
public void setPolicyDocument(java.lang.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(java.lang.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 java.util.List<java.lang.String> getRouteTableIds()
public void setRouteTableIds(java.util.Collection<java.lang.String> routeTableIds)
routeTableIds
- One or more route table IDs.public CreateVpcEndpointRequest withRouteTableIds(java.lang.String... routeTableIds)
Returns a reference to this object so that method calls can be chained together.
routeTableIds
- One or more route table IDs.public CreateVpcEndpointRequest withRouteTableIds(java.util.Collection<java.lang.String> routeTableIds)
Returns a reference to this object so that method calls can be chained together.
routeTableIds
- One or more route table IDs.public java.lang.String getClientToken()
public void setClientToken(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.