Class AZAffinity
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AZAffinity.Builder,AZAffinity>
Specifies the location that an AZ-affinity resource record set answers DNS queries from. For the location types, from
most to least specific, see LocationType. A query matches a location when Route 53 VPC Resolver reports
that the query came from an Availability Zone (AZ) in that location. If Route 53 doesn't know which AZ a query came
from, the query matches only the record for the Global location type. AZ-affinity routing chooses which
record to return. It doesn't restrict which clients can get a record. You must specify both LocationType
and LocationId.
To have Route 53 fall back to a less specific location when a resource is unhealthy, associate a health check with
each record, or set EvaluateTargetHealth to true for alias records. If every record that
matches a query is unhealthy, Route 53 responds with the most specific one.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AZAffinity.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe ID of the location.final AZAffinityLocationTypeThe level of the location thatLocationIdidentifies.final StringThe level of the location thatLocationIdidentifies.static Class<? extends AZAffinity.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
locationType
The level of the location that
LocationIdidentifies. Valid values, from most to least specific:-
AvailabilityZone: A single Availability Zone. -
AvailabilityZoneGroup: A Zone Group, which is a group of Availability Zones in an Amazon Web Services Region. -
Region: An entire Amazon Web Services Region. -
Partition: An entire Amazon Web Services partition. -
Global: All locations.
We recommend that you create a record for the
Globallocation type so that every query gets an answer. Route 53 responds with it when a query matches no more specific record, or when it's the only healthy record that matches. Without aGlobalrecord, Route 53 returns a "no answer" response to queries that don't match any other record.If the service returns an enum value that is not available in the current SDK version,
locationTypewill returnAZAffinityLocationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlocationTypeAsString().- Returns:
- The level of the location that
LocationIdidentifies. Valid values, from most to least specific:-
AvailabilityZone: A single Availability Zone. -
AvailabilityZoneGroup: A Zone Group, which is a group of Availability Zones in an Amazon Web Services Region. -
Region: An entire Amazon Web Services Region. -
Partition: An entire Amazon Web Services partition. -
Global: All locations.
We recommend that you create a record for the
Globallocation type so that every query gets an answer. Route 53 responds with it when a query matches no more specific record, or when it's the only healthy record that matches. Without aGlobalrecord, Route 53 returns a "no answer" response to queries that don't match any other record. -
- See Also:
-
-
locationTypeAsString
The level of the location that
LocationIdidentifies. Valid values, from most to least specific:-
AvailabilityZone: A single Availability Zone. -
AvailabilityZoneGroup: A Zone Group, which is a group of Availability Zones in an Amazon Web Services Region. -
Region: An entire Amazon Web Services Region. -
Partition: An entire Amazon Web Services partition. -
Global: All locations.
We recommend that you create a record for the
Globallocation type so that every query gets an answer. Route 53 responds with it when a query matches no more specific record, or when it's the only healthy record that matches. Without aGlobalrecord, Route 53 returns a "no answer" response to queries that don't match any other record.If the service returns an enum value that is not available in the current SDK version,
locationTypewill returnAZAffinityLocationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlocationTypeAsString().- Returns:
- The level of the location that
LocationIdidentifies. Valid values, from most to least specific:-
AvailabilityZone: A single Availability Zone. -
AvailabilityZoneGroup: A Zone Group, which is a group of Availability Zones in an Amazon Web Services Region. -
Region: An entire Amazon Web Services Region. -
Partition: An entire Amazon Web Services partition. -
Global: All locations.
We recommend that you create a record for the
Globallocation type so that every query gets an answer. Route 53 responds with it when a query matches no more specific record, or when it's the only healthy record that matches. Without aGlobalrecord, Route 53 returns a "no answer" response to queries that don't match any other record. -
- See Also:
-
-
locationId
The ID of the location. You can specify only generally available Availability Zones and Zone Groups. Zone Group, Region, and partition IDs must belong to a partition that you can use. Specify the ID in lowercase, in the format that corresponds to
LocationType:-
For
AvailabilityZone, the Availability Zone ID (not the Availability Zone name or a Local Zone ID), such asuse1-az1. -
For
AvailabilityZoneGroup, the Zone Group that an Availability Zone belongs to (not a Local Zone group), such asus-east-1-zg-1. -
For
Region, the Region code, such asus-east-1. -
For
Partition, the partition name, such asaws. -
For
Global, the valueglobal.
- Returns:
- The ID of the location. You can specify only generally available Availability Zones and Zone Groups. Zone
Group, Region, and partition IDs must belong to a partition that you can use. Specify the ID in
lowercase, in the format that corresponds to
LocationType:-
For
AvailabilityZone, the Availability Zone ID (not the Availability Zone name or a Local Zone ID), such asuse1-az1. -
For
AvailabilityZoneGroup, the Zone Group that an Availability Zone belongs to (not a Local Zone group), such asus-east-1-zg-1. -
For
Region, the Region code, such asus-east-1. -
For
Partition, the partition name, such asaws. -
For
Global, the valueglobal.
-
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AZAffinity.Builder,AZAffinity> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-