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

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

Specifies failover configuration for multi-region user pool domains. Contains settings for the secondary region and health check configuration.

See Also:
  • Method Details

    • secondaryRegion

      public final String secondaryRegion()

      The secondary Amazon Web Services Region to use for failover when the primary region becomes unavailable.

      Returns:
      The secondary Amazon Web Services Region to use for failover when the primary region becomes unavailable.
    • primaryRoute53HealthCheckId

      public final String primaryRoute53HealthCheckId()

      The ID of the Amazon Web Services Route53 healthcheck that controls routing. If the healthcheck is healthy, traffic will be routed to the primary replica, and if the healthcheck is unhealthy, traffic will be routed to the secondary region.

      Returns:
      The ID of the Amazon Web Services Route53 healthcheck that controls routing. If the healthcheck is healthy, traffic will be routed to the primary replica, and if the healthcheck is unhealthy, traffic will be routed to the secondary region.
    • toBuilder

      public FailoverType.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<FailoverType.Builder,FailoverType>
    • builder

      public static FailoverType.Builder builder()
    • serializableBuilderClass

      public static Class<? extends FailoverType.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)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo