Class TrafficPolicyInstance

java.lang.Object
software.amazon.awssdk.services.route53.model.TrafficPolicyInstance
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance>

@Generated("software.amazon.awssdk:codegen") public final class TrafficPolicyInstance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance>

A complex type that contains settings for the new traffic policy instance.

See Also:
  • Method Details

    • id

      public final String id()

      The ID that Amazon Route 53 assigned to the new traffic policy instance.

      Returns:
      The ID that Amazon Route 53 assigned to the new traffic policy instance.
    • hostedZoneId

      public final String hostedZoneId()

      The ID of the hosted zone that Amazon Route 53 created resource record sets in.

      Returns:
      The ID of the hosted zone that Amazon Route 53 created resource record sets in.
    • name

      public final String name()

      The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.

      Returns:
      The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.
    • ttl

      public final Long ttl()

      The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.

      Returns:
      The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
    • state

      public final String state()

      The value of State is one of the following values:

      Applied

      Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Route 53 edge locations.

      Creating

      Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance to confirm that the CreateTrafficPolicyInstance request completed successfully.

      Failed

      Route 53 wasn't able to create or update the resource record sets. When the value of State is Failed, see Message for an explanation of what caused the request to fail.

      Returns:
      The value of State is one of the following values:

      Applied

      Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Route 53 edge locations.

      Creating

      Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance to confirm that the CreateTrafficPolicyInstance request completed successfully.

      Failed

      Route 53 wasn't able to create or update the resource record sets. When the value of State is Failed, see Message for an explanation of what caused the request to fail.

    • message

      public final String message()

      If State is Failed, an explanation of the reason for the failure. If State is another value, Message is empty.

      Returns:
      If State is Failed, an explanation of the reason for the failure. If State is another value, Message is empty.
    • trafficPolicyId

      public final String trafficPolicyId()

      The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.

      Returns:
      The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
    • trafficPolicyVersion

      public final Integer trafficPolicyVersion()

      The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.

      Returns:
      The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
    • trafficPolicyType

      public final RRType trafficPolicyType()

      The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.

      If the service returns an enum value that is not available in the current SDK version, trafficPolicyType will return RRType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from trafficPolicyTypeAsString().

      Returns:
      The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
      See Also:
    • trafficPolicyTypeAsString

      public final String trafficPolicyTypeAsString()

      The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.

      If the service returns an enum value that is not available in the current SDK version, trafficPolicyType will return RRType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from trafficPolicyTypeAsString().

      Returns:
      The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
      See Also:
    • toBuilder

      public TrafficPolicyInstance.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance>
      Returns:
      a builder for type T
    • builder

      public static TrafficPolicyInstance.Builder builder()
    • serializableBuilderClass

      public static Class<? extends TrafficPolicyInstance.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.