Class RegisteredDomainDelegationInfo

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

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

Describes the delegation state of an Amazon Route 53 registered domain to Amazon Lightsail.

When you delegate an Amazon Route 53 registered domain to Lightsail, you can manage the DNS of the domain using a Lightsail DNS zone. You no longer use the Route 53 hosted zone to manage the DNS of the domain. To delegate the domain, Lightsail automatically updates the domain's name servers in Route 53 to the name servers of the Lightsail DNS zone. Then, Lightsail automatically deletes the Route 53 hosted zone for the domain.

All of the following conditions must be true for automatic domain delegation to be successful:

  • The registered domain must be in the same Amazon Web Services account as the Lightsail account making the request.

  • The user or entity making the request must have permission to manage domains in Route 53.

  • The Route 53 hosted zone for the domain must be empty. It cannot contain DNS records other than start of authority (SOA) and name server records.

If automatic domain delegation fails, or if you manage the DNS of your domain using a service other than Route 53, then you must manually add the Lightsail DNS zone name servers to your domain in order to delegate management of its DNS to Lightsail. For more information, see Creating a DNS zone to manage your domain’s records in Amazon Lightsail in the Amazon Lightsail Developer Guide.

See Also:
  • Method Details

    • nameServersUpdateState

      public final NameServersUpdateState nameServersUpdateState()

      An object that describes the state of the name server records that are automatically added to the Route 53 domain by Lightsail.

      Returns:
      An object that describes the state of the name server records that are automatically added to the Route 53 domain by Lightsail.
    • r53HostedZoneDeletionState

      public final R53HostedZoneDeletionState r53HostedZoneDeletionState()

      Describes the deletion state of an Amazon Route 53 hosted zone for a domain that is being automatically delegated to an Amazon Lightsail DNS zone.

      Returns:
      Describes the deletion state of an Amazon Route 53 hosted zone for a domain that is being automatically delegated to an Amazon Lightsail DNS zone.
    • 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<RegisteredDomainDelegationInfo.Builder,RegisteredDomainDelegationInfo>
      Returns:
      a builder for type T
    • builder

      public static RegisteredDomainDelegationInfo.Builder builder()
    • serializableBuilderClass

      public static Class<? extends RegisteredDomainDelegationInfo.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.