Class TrafficPolicyInstance

    • Method Detail

      • 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:
        RRType
      • 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:
        RRType
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)