Class CreateHostedZoneRequest

    • Constructor Detail

      • CreateHostedZoneRequest

        public CreateHostedZoneRequest()
        Default constructor for CreateHostedZoneRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • CreateHostedZoneRequest

        public CreateHostedZoneRequest​(String name,
                                       String callerReference)
        Constructs a new CreateHostedZoneRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        name - The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

        This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

        callerReference - A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

        Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

    • Method Detail

      • setName

        public void setName​(String name)

        The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

        This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

        Parameters:
        name - The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

        This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

      • getName

        public String getName()

        The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

        This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

        Returns:
        The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

        This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

      • withName

        public CreateHostedZoneRequest withName​(String name)

        The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

        This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

        Parameters:
        name - The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

        This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVPC

        public void setVPC​(VPC vPC)

        The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.

        Parameters:
        vPC - The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.
      • getVPC

        public VPC getVPC()

        The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.

        Returns:
        The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.
      • withVPC

        public CreateHostedZoneRequest withVPC​(VPC vPC)

        The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.

        Parameters:
        vPC - The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCallerReference

        public void setCallerReference​(String callerReference)

        A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

        Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

        Parameters:
        callerReference - A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

        Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

      • getCallerReference

        public String getCallerReference()

        A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

        Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

        Returns:
        A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

        Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

      • withCallerReference

        public CreateHostedZoneRequest withCallerReference​(String callerReference)

        A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

        Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

        Parameters:
        callerReference - A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

        Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setHostedZoneConfig

        public void setHostedZoneConfig​(HostedZoneConfig hostedZoneConfig)

        A complex type that contains an optional comment about your hosted zone.

        Parameters:
        hostedZoneConfig - A complex type that contains an optional comment about your hosted zone.
      • getHostedZoneConfig

        public HostedZoneConfig getHostedZoneConfig()

        A complex type that contains an optional comment about your hosted zone.

        Returns:
        A complex type that contains an optional comment about your hosted zone.
      • withHostedZoneConfig

        public CreateHostedZoneRequest withHostedZoneConfig​(HostedZoneConfig hostedZoneConfig)

        A complex type that contains an optional comment about your hosted zone.

        Parameters:
        hostedZoneConfig - A complex type that contains an optional comment about your hosted zone.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDelegationSetId

        public void setDelegationSetId​(String delegationSetId)

        The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.

        Parameters:
        delegationSetId - The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.
      • getDelegationSetId

        public String getDelegationSetId()

        The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.

        Returns:
        The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.
      • withDelegationSetId

        public CreateHostedZoneRequest withDelegationSetId​(String delegationSetId)

        The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.

        Parameters:
        delegationSetId - The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object