public class CreateVpcEndpointRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateVpcEndpointRequest>
Contains the parameters for CreateVpcEndpoint.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
clientToken
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
private java.lang.String |
policyDocument
A policy to attach to the endpoint that controls access to the service.
|
private SdkInternalList<java.lang.String> |
routeTableIds
One or more route table IDs.
|
private java.lang.String |
serviceName
The AWS service name, in the form
com.amazonaws.region.service . |
private java.lang.String |
vpcId
The ID of the VPC in which the endpoint will be used.
|
NOOP
Constructor and Description |
---|
CreateVpcEndpointRequest() |
Modifier and Type | Method and Description |
---|---|
CreateVpcEndpointRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
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
private java.lang.String vpcId
The ID of the VPC in which the endpoint will be used.
private java.lang.String serviceName
The AWS service name, in the form
com.amazonaws.region.service
. To get a list of
available services, use the DescribeVpcEndpointServices request.
private java.lang.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.
private SdkInternalList<java.lang.String> routeTableIds
One or more route table IDs.
private java.lang.String clientToken
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
public void setVpcId(java.lang.String vpcId)
The ID of the VPC in which the endpoint will be used.
vpcId
- The ID of the VPC in which the endpoint will be used.public java.lang.String getVpcId()
The ID of the VPC in which the endpoint will be used.
public CreateVpcEndpointRequest withVpcId(java.lang.String vpcId)
The ID of the VPC in which the endpoint will be used.
vpcId
- The ID of the VPC in which the endpoint will be used.public void setServiceName(java.lang.String serviceName)
The AWS service name, in the form
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 java.lang.String getServiceName()
The AWS service name, in the form
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 CreateVpcEndpointRequest withServiceName(java.lang.String serviceName)
The AWS service name, in the form
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 void setPolicyDocument(java.lang.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.
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.lang.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.
public CreateVpcEndpointRequest withPolicyDocument(java.lang.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.
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()
One or more route table IDs.
public void setRouteTableIds(java.util.Collection<java.lang.String> routeTableIds)
One or more route table IDs.
routeTableIds
- One or more route table IDs.public CreateVpcEndpointRequest withRouteTableIds(java.lang.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.
routeTableIds
- One or more route table IDs.public CreateVpcEndpointRequest withRouteTableIds(java.util.Collection<java.lang.String> routeTableIds)
One or more route table IDs.
routeTableIds
- One or more route table IDs.public void setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
clientToken
- Unique, case-sensitive identifier you provide to ensure the
idempotency of the request. For more information, see How to Ensure Idempotency.public java.lang.String getClientToken()
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)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateVpcEndpointRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()