@Generated(value="software.amazon.awssdk:codegen") public final class CreateVpcEndpointRequest extends Ec2Request implements ToCopyableBuilder<CreateVpcEndpointRequest.Builder,CreateVpcEndpointRequest>
Contains the parameters for CreateVpcEndpoint.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateVpcEndpointRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateVpcEndpointRequest.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRouteTableIds()
Returns true if the RouteTableIds property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasSecurityGroupIds()
Returns true if the SecurityGroupIds property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasSubnetIds()
Returns true if the SubnetIds property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
String |
policyDocument()
A policy to attach to the endpoint that controls access to the service.
|
Boolean |
privateDnsEnabled()
(Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC.
|
List<String> |
routeTableIds()
(Gateway endpoint) One or more route table IDs.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroupIds()
(Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.
|
static Class<? extends CreateVpcEndpointRequest.Builder> |
serializableBuilderClass() |
String |
serviceName()
The service name.
|
List<String> |
subnetIds()
(Interface endpoint) The ID of one or more subnets in which to create an endpoint network interface.
|
CreateVpcEndpointRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VpcEndpointType |
vpcEndpointType()
The type of endpoint.
|
String |
vpcEndpointTypeAsString()
The type of endpoint.
|
String |
vpcId()
The ID of the VPC in which the endpoint will be used.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic VpcEndpointType vpcEndpointType()
The type of endpoint.
Default: Gateway
If the service returns an enum value that is not available in the current SDK version, vpcEndpointType
will return VpcEndpointType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from vpcEndpointTypeAsString().
Default: Gateway
VpcEndpointTypepublic String vpcEndpointTypeAsString()
The type of endpoint.
Default: Gateway
If the service returns an enum value that is not available in the current SDK version, vpcEndpointType
will return VpcEndpointType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from vpcEndpointTypeAsString().
Default: Gateway
VpcEndpointTypepublic String vpcId()
The ID of the VPC in which the endpoint will be used.
public String serviceName()
The service name. To get a list of available services, use the DescribeVpcEndpointServices request, or get the name from the service provider.
public 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.
public boolean hasRouteTableIds()
public List<String> routeTableIds()
(Gateway endpoint) One or more route table IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRouteTableIds() to see if a value was sent in this field.
public boolean hasSubnetIds()
public List<String> subnetIds()
(Interface endpoint) The ID of one or more subnets in which to create an endpoint network interface.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSubnetIds() to see if a value was sent in this field.
public boolean hasSecurityGroupIds()
public List<String> securityGroupIds()
(Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSecurityGroupIds() to see if a value was sent in this field.
public String clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
public Boolean privateDnsEnabled()
(Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC. The private
hosted zone contains a record set for the default public DNS name for the service for the Region (for example,
kinesis.us-east-1.amazonaws.com), which resolves to the private IP addresses of the endpoint network
interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead
of the public DNS names that are automatically generated by the VPC endpoint service.
To use a private hosted zone, you must set the following VPC attributes to true:
enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to set the VPC
attributes.
Default: true
kinesis.us-east-1.amazonaws.com), which resolves to the private IP addresses
of the endpoint network interfaces in the VPC. This enables you to make requests to the default public
DNS name for the service instead of the public DNS names that are automatically generated by the VPC
endpoint service.
To use a private hosted zone, you must set the following VPC attributes to true:
enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to set
the VPC attributes.
Default: true
public CreateVpcEndpointRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateVpcEndpointRequest.Builder,CreateVpcEndpointRequest>toBuilder in class Ec2Requestpublic static CreateVpcEndpointRequest.Builder builder()
public static Class<? extends CreateVpcEndpointRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.