@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()
For responses, this returns true if the service returned a value for the RouteTableIds property.
|
boolean |
hasSecurityGroupIds()
For responses, this returns true if the service returned a value for the SecurityGroupIds property.
|
boolean |
hasSubnetIds()
For responses, this returns true if the service returned a value for the SubnetIds property.
|
boolean |
hasTagSpecifications()
For responses, this returns true if the service returned a value for the TagSpecifications property.
|
String |
policyDocument()
(Interface and gateway endpoints) 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 and Gateway Load Balancer endpoints) The ID of one or more subnets in which to create an endpoint
network interface.
|
List<TagSpecification> |
tagSpecifications()
The tags to associate with the endpoint.
|
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.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final 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
VpcEndpointType
public final 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
VpcEndpointType
public final String vpcId()
The ID of the VPC in which the endpoint will be used.
public final 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 final String policyDocument()
(Interface and gateway endpoints) 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 final boolean hasRouteTableIds()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRouteTableIds()
method.
public final boolean hasSubnetIds()
isEmpty()
method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> subnetIds()
(Interface and Gateway Load Balancer endpoints) The ID of one or more subnets in which to create an endpoint network interface. For a Gateway Load Balancer endpoint, you can specify one subnet only.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSubnetIds()
method.
public final boolean hasSecurityGroupIds()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSecurityGroupIds()
method.
public final 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 final 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 final boolean hasTagSpecifications()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<TagSpecification> tagSpecifications()
The tags to associate with the endpoint.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTagSpecifications()
method.
public CreateVpcEndpointRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CreateVpcEndpointRequest.Builder,CreateVpcEndpointRequest>
toBuilder
in class Ec2Request
public static CreateVpcEndpointRequest.Builder builder()
public static Class<? extends CreateVpcEndpointRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2022. All rights reserved.