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 HostedZone
clone()
boolean
equals(Object obj)
String
getCallerReference()
A unique string that identifies the request to create the hosted zone.HostedZoneConfig
getConfig()
A complex type that contains theComment
element.String
getId()
The ID of the specified hosted zone.String
getName()
The name of the domain.Long
getResourceRecordSetCount()
Total number of resource record sets in the hosted zone.int
hashCode()
void
setCallerReference(String callerReference)
A unique string that identifies the request to create the hosted zone.void
setConfig(HostedZoneConfig config)
A complex type that contains theComment
element.void
setId(String id)
The ID of the specified hosted zone.void
setName(String name)
The name of the domain.void
setResourceRecordSetCount(Long resourceRecordSetCount)
Total number of resource record sets in the hosted zone.String
toString()
Returns a string representation of this object; useful for testing and debugging.HostedZone
withCallerReference(String callerReference)
A unique string that identifies the request to create the hosted zone.HostedZone
withConfig(HostedZoneConfig config)
A complex type that contains theComment
element.HostedZone
withId(String id)
The ID of the specified hosted zone.HostedZone
withName(String name)
The name of the domain.HostedZone
withResourceRecordSetCount(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
NameServers
elements 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
NameServers
elements 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
NameServers
elements 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
NameServers
elements 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
NameServers
elements 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
NameServers
elements 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
NameServers
elements 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
Comment
element.- Parameters:
config
- A complex type that contains theComment
element.
-
getConfig
public HostedZoneConfig getConfig()
A complex type that contains the
Comment
element.- Returns:
- A complex type that contains the
Comment
element.
-
withConfig
public HostedZone withConfig(HostedZoneConfig config)
A complex type that contains the
Comment
element.- Parameters:
config
- A complex type that contains theComment
element.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HostedZone clone()
-
-