Class ResolverEndpoint
- java.lang.Object
-
- software.amazon.awssdk.services.route53resolver.model.ResolverEndpoint
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResolverEndpoint.Builder,ResolverEndpoint>
@Generated("software.amazon.awssdk:codegen") public final class ResolverEndpoint extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResolverEndpoint.Builder,ResolverEndpoint>
In the response to a CreateResolverEndpoint, DeleteResolverEndpoint, GetResolverEndpoint, Updates the name, or ResolverEndpointType for an endpoint, or UpdateResolverEndpoint request, a complex type that contains settings for an existing inbound or outbound Resolver endpoint.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResolverEndpoint.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The ARN (Amazon Resource Name) for the Resolver endpoint.static ResolverEndpoint.Builderbuilder()StringcreationTime()The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).StringcreatorRequestId()A unique string that identifies the request that created the Resolver endpoint.ResolverEndpointDirectiondirection()Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:StringdirectionAsString()Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasProtocols()For responses, this returns true if the service returned a value for the Protocols property.booleanhasSecurityGroupIds()For responses, this returns true if the service returned a value for the SecurityGroupIds property.StringhostVPCId()The ID of the VPC that you want to create the Resolver endpoint in.Stringid()The ID of the Resolver endpoint.IntegeripAddressCount()The number of IP addresses that the Resolver endpoint can use for DNS queries.StringmodificationTime()The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).Stringname()The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.StringoutpostArn()The ARN (Amazon Resource Name) for the Outpost.StringpreferredInstanceType()The Amazon EC2 instance type.List<Protocol>protocols()Protocols used for the endpoint.List<String>protocolsAsStrings()Protocols used for the endpoint.ResolverEndpointTyperesolverEndpointType()The Resolver endpoint IP address type.StringresolverEndpointTypeAsString()The Resolver endpoint IP address type.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()List<String>securityGroupIds()The ID of one or more security groups that control access to this VPC.static Class<? extends ResolverEndpoint.Builder>serializableBuilderClass()ResolverEndpointStatusstatus()A code that specifies the current status of the Resolver endpoint.StringstatusAsString()A code that specifies the current status of the Resolver endpoint.StringstatusMessage()A detailed description of the status of the Resolver endpoint.ResolverEndpoint.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The ID of the Resolver endpoint.
- Returns:
- The ID of the Resolver endpoint.
-
creatorRequestId
public final String creatorRequestId()
A unique string that identifies the request that created the Resolver endpoint. The
CreatorRequestIdallows failed requests to be retried without the risk of running the operation twice.- Returns:
- A unique string that identifies the request that created the Resolver endpoint. The
CreatorRequestIdallows failed requests to be retried without the risk of running the operation twice.
-
arn
public final String arn()
The ARN (Amazon Resource Name) for the Resolver endpoint.
- Returns:
- The ARN (Amazon Resource Name) for the Resolver endpoint.
-
name
public final String name()
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
- Returns:
- The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
-
hasSecurityGroupIds
public final boolean hasSecurityGroupIds()
For responses, this returns true if the service returned a value for the SecurityGroupIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
securityGroupIds
public final List<String> securityGroupIds()
The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
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.- Returns:
- The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
-
direction
public final ResolverEndpointDirection direction()
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
-
INBOUND: allows DNS queries to your VPC from your network -
OUTBOUND: allows DNS queries from your VPC to your network
If the service returns an enum value that is not available in the current SDK version,
directionwill returnResolverEndpointDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdirectionAsString().- Returns:
- Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
-
INBOUND: allows DNS queries to your VPC from your network -
OUTBOUND: allows DNS queries from your VPC to your network
-
- See Also:
ResolverEndpointDirection
-
-
directionAsString
public final String directionAsString()
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
-
INBOUND: allows DNS queries to your VPC from your network -
OUTBOUND: allows DNS queries from your VPC to your network
If the service returns an enum value that is not available in the current SDK version,
directionwill returnResolverEndpointDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdirectionAsString().- Returns:
- Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
-
INBOUND: allows DNS queries to your VPC from your network -
OUTBOUND: allows DNS queries from your VPC to your network
-
- See Also:
ResolverEndpointDirection
-
-
ipAddressCount
public final Integer ipAddressCount()
The number of IP addresses that the Resolver endpoint can use for DNS queries.
- Returns:
- The number of IP addresses that the Resolver endpoint can use for DNS queries.
-
hostVPCId
public final String hostVPCId()
The ID of the VPC that you want to create the Resolver endpoint in.
- Returns:
- The ID of the VPC that you want to create the Resolver endpoint in.
-
status
public final ResolverEndpointStatus status()
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
-
CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint. -
OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver. -
UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint. -
AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver. -
ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status ofACTION_NEEDEDcan have a variety of causes. Here are two common causes:-
One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
-
The network interface couldn't be created for some reason that's outside the control of Resolver.
-
-
DELETING: Resolver is deleting this endpoint and the associated network interfaces.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnResolverEndpointStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- A code that specifies the current status of the Resolver endpoint. Valid values include the
following:
-
CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint. -
OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver. -
UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint. -
AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver. -
ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status ofACTION_NEEDEDcan have a variety of causes. Here are two common causes:-
One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
-
The network interface couldn't be created for some reason that's outside the control of Resolver.
-
-
DELETING: Resolver is deleting this endpoint and the associated network interfaces.
-
- See Also:
ResolverEndpointStatus
-
-
statusAsString
public final String statusAsString()
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
-
CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint. -
OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver. -
UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint. -
AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver. -
ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status ofACTION_NEEDEDcan have a variety of causes. Here are two common causes:-
One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
-
The network interface couldn't be created for some reason that's outside the control of Resolver.
-
-
DELETING: Resolver is deleting this endpoint and the associated network interfaces.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnResolverEndpointStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- A code that specifies the current status of the Resolver endpoint. Valid values include the
following:
-
CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint. -
OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver. -
UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint. -
AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver. -
ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status ofACTION_NEEDEDcan have a variety of causes. Here are two common causes:-
One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
-
The network interface couldn't be created for some reason that's outside the control of Resolver.
-
-
DELETING: Resolver is deleting this endpoint and the associated network interfaces.
-
- See Also:
ResolverEndpointStatus
-
-
statusMessage
public final String statusMessage()
A detailed description of the status of the Resolver endpoint.
- Returns:
- A detailed description of the status of the Resolver endpoint.
-
creationTime
public final String creationTime()
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
- Returns:
- The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
-
modificationTime
public final String modificationTime()
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
- Returns:
- The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
-
outpostArn
public final String outpostArn()
The ARN (Amazon Resource Name) for the Outpost.
- Returns:
- The ARN (Amazon Resource Name) for the Outpost.
-
preferredInstanceType
public final String preferredInstanceType()
The Amazon EC2 instance type.
- Returns:
- The Amazon EC2 instance type.
-
resolverEndpointType
public final ResolverEndpointType resolverEndpointType()
The Resolver endpoint IP address type.
If the service returns an enum value that is not available in the current SDK version,
resolverEndpointTypewill returnResolverEndpointType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresolverEndpointTypeAsString().- Returns:
- The Resolver endpoint IP address type.
- See Also:
ResolverEndpointType
-
resolverEndpointTypeAsString
public final String resolverEndpointTypeAsString()
The Resolver endpoint IP address type.
If the service returns an enum value that is not available in the current SDK version,
resolverEndpointTypewill returnResolverEndpointType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresolverEndpointTypeAsString().- Returns:
- The Resolver endpoint IP address type.
- See Also:
ResolverEndpointType
-
protocols
public final List<Protocol> protocols()
Protocols used for the endpoint. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
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
hasProtocols()method.- Returns:
- Protocols used for the endpoint. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
-
-
-
hasProtocols
public final boolean hasProtocols()
For responses, this returns true if the service returned a value for the Protocols property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
protocolsAsStrings
public final List<String> protocolsAsStrings()
Protocols used for the endpoint. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
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
hasProtocols()method.- Returns:
- Protocols used for the endpoint. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
-
-
-
toBuilder
public ResolverEndpoint.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResolverEndpoint.Builder,ResolverEndpoint>
-
builder
public static ResolverEndpoint.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResolverEndpoint.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-