public class ZoneInfo implements Serializable
A Zone
represents a DNS zone hosted by the Google Cloud DNS service. A zone is a subtree
of the DNS namespace under one administrative responsibility. See Google Cloud DNS documentation for
more information.
Static Methods
newBuilder(String name)
public static ZoneInfo.Builder newBuilder(String name)
Returns a ZoneInfo
builder where the DNS name is set to the provided name.
Parameter |
Name |
Description |
name |
String
|
of(String name, String dnsName, String description)
public static ZoneInfo of(String name, String dnsName, String description)
Returns a ZoneInfo object with assigned name
, dnsName
and description
.
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCreationTimeMillis()
public Long getCreationTimeMillis()
Returns the time when this zone was created on the server.
Returns |
Type |
Description |
Long |
|
getDescription()
public String getDescription()
Returns the description of this zone.
Returns |
Type |
Description |
String |
|
getDnsName()
public String getDnsName()
Returns the DNS name of this zone, for instance "example.com.".
Returns |
Type |
Description |
String |
|
getDnsSecConfig()
public ZoneInfo.DnsSecConfig getDnsSecConfig()
getGeneratedId()
public String getGeneratedId()
Returns the service-generated id for this zone.
Returns |
Type |
Description |
String |
|
getLabels()
public Map<String,String> getLabels()
Returns the labels for this zone.
getName()
Returns the user-defined name of the zone.
Returns |
Type |
Description |
String |
|
getNameServerSet()
public String getNameServerSet()
Returns the optionally specified set of DNS name servers that all host this zone. This value is
set only for specific use cases and is left empty for vast majority of users.
Returns |
Type |
Description |
String |
|
getNameServers()
public List<String> getNameServers()
The nameservers that the zone should be delegated to. This is defined by the Google DNS cloud.
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
toBuilder()
public ZoneInfo.Builder toBuilder()
Returns a builder for ZoneInfo
prepopulated with the metadata of this zone.
toString()
Returns |
Type |
Description |
String |
|
Overrides