Class TargetAddress
- java.lang.Object
-
- software.amazon.awssdk.services.route53resolver.model.TargetAddress
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetAddress.Builder,TargetAddress>
@Generated("software.amazon.awssdk:codegen") public final class TargetAddress extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetAddress.Builder,TargetAddress>
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetAddress.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetAddress.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringip()One IPv4 address that you want to forward DNS queries to.Stringipv6()One IPv6 address that you want to forward DNS queries to.Integerport()The port atIpthat you want to forward DNS queries to.Protocolprotocol()The protocols for the target address.StringprotocolAsString()The protocols for the target address.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TargetAddress.Builder>serializableBuilderClass()StringserverNameIndication()The Server Name Indication of the DoH server that you want to forward queries to.TargetAddress.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
-
ip
public final String ip()
One IPv4 address that you want to forward DNS queries to.
- Returns:
- One IPv4 address that you want to forward DNS queries to.
-
port
public final Integer port()
The port at
Ipthat you want to forward DNS queries to.- Returns:
- The port at
Ipthat you want to forward DNS queries to.
-
ipv6
public final String ipv6()
One IPv6 address that you want to forward DNS queries to.
- Returns:
- One IPv6 address that you want to forward DNS queries to.
-
protocol
public final Protocol protocol()
The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.
If the service returns an enum value that is not available in the current SDK version,
protocolwill returnProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.
- See Also:
Protocol
-
protocolAsString
public final String protocolAsString()
The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.
If the service returns an enum value that is not available in the current SDK version,
protocolwill returnProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.
- See Also:
Protocol
-
serverNameIndication
public final String serverNameIndication()
The Server Name Indication of the DoH server that you want to forward queries to. This is only used if the Protocol of the
TargetAddressisDoH.- Returns:
- The Server Name Indication of the DoH server that you want to forward queries to. This is only used if
the Protocol of the
TargetAddressisDoH.
-
toBuilder
public TargetAddress.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetAddress.Builder,TargetAddress>
-
builder
public static TargetAddress.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetAddress.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
-
-