Class HostedZone
- java.lang.Object
-
- com.amazonaws.services.route53.model.HostedZone
-
- All Implemented Interfaces:
Serializable,Cloneable
public class HostedZone extends Object implements Serializable, Cloneable
A complex type that contain information about the specified hosted zone.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostedZone()Default constructor for HostedZone object.HostedZone(String id, String name, String callerReference)Constructs a new HostedZone object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostedZoneclone()booleanequals(Object obj)StringgetCallerReference()A unique string that identifies the request to create the hosted zone.HostedZoneConfiggetConfig()A complex type that contains theCommentelement.StringgetId()The ID of the specified hosted zone.StringgetName()The name of the domain.LonggetResourceRecordSetCount()Total number of resource record sets in the hosted zone.inthashCode()voidsetCallerReference(String callerReference)A unique string that identifies the request to create the hosted zone.voidsetConfig(HostedZoneConfig config)A complex type that contains theCommentelement.voidsetId(String id)The ID of the specified hosted zone.voidsetName(String name)The name of the domain.voidsetResourceRecordSetCount(Long resourceRecordSetCount)Total number of resource record sets in the hosted zone.StringtoString()Returns a string representation of this object; useful for testing and debugging.HostedZonewithCallerReference(String callerReference)A unique string that identifies the request to create the hosted zone.HostedZonewithConfig(HostedZoneConfig config)A complex type that contains theCommentelement.HostedZonewithId(String id)The ID of the specified hosted zone.HostedZonewithName(String name)The name of the domain.HostedZonewithResourceRecordSetCount(Long resourceRecordSetCount)Total number of resource record sets in the hosted zone.
-
-
-
Constructor Detail
-
HostedZone
public HostedZone()
Default constructor for HostedZone object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
HostedZone
public HostedZone(String id, String name, String callerReference)
Constructs a new HostedZone object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
id- The ID of the specified hosted zone.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
NameServerselements returned inDelegationSet.callerReference- A unique string that identifies the request to create the hosted zone.
-
-
Method Detail
-
setId
public void setId(String id)
The ID of the specified hosted zone.
- Parameters:
id- The ID of the specified hosted zone.
-
getId
public String getId()
The ID of the specified hosted zone.
- Returns:
- The ID of the specified hosted zone.
-
withId
public HostedZone withId(String id)
The ID of the specified hosted zone.
- Parameters:
id- The ID of the specified hosted zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
NameServerselements returned inDelegationSet.- 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
NameServerselements returned inDelegationSet.
-
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
NameServerselements returned inDelegationSet.- 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
NameServerselements returned inDelegationSet.
-
withName
public HostedZone 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
NameServerselements returned inDelegationSet.- 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
NameServerselements returned inDelegationSet.- 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 to create the hosted zone.
- Parameters:
callerReference- A unique string that identifies the request to create the hosted zone.
-
getCallerReference
public String getCallerReference()
A unique string that identifies the request to create the hosted zone.
- Returns:
- A unique string that identifies the request to create the hosted zone.
-
withCallerReference
public HostedZone withCallerReference(String callerReference)
A unique string that identifies the request to create the hosted zone.
- Parameters:
callerReference- A unique string that identifies the request to create the hosted zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setConfig
public void setConfig(HostedZoneConfig config)
A complex type that contains the
Commentelement.- Parameters:
config- A complex type that contains theCommentelement.
-
getConfig
public HostedZoneConfig getConfig()
A complex type that contains the
Commentelement.- Returns:
- A complex type that contains the
Commentelement.
-
withConfig
public HostedZone withConfig(HostedZoneConfig config)
A complex type that contains the
Commentelement.- Parameters:
config- A complex type that contains theCommentelement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceRecordSetCount
public void setResourceRecordSetCount(Long resourceRecordSetCount)
Total number of resource record sets in the hosted zone.
- Parameters:
resourceRecordSetCount- Total number of resource record sets in the hosted zone.
-
getResourceRecordSetCount
public Long getResourceRecordSetCount()
Total number of resource record sets in the hosted zone.
- Returns:
- Total number of resource record sets in the hosted zone.
-
withResourceRecordSetCount
public HostedZone withResourceRecordSetCount(Long resourceRecordSetCount)
Total number of resource record sets in the hosted zone.
- Parameters:
resourceRecordSetCount- Total number of resource record sets in the 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HostedZone clone()
-
-