Class ZoneInfo (2.7.0)

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.

Inheritance

Object > ZoneInfo

Implements

Serializable

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
NameDescription
nameString
Returns
TypeDescription
ZoneInfo.Builder

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.

Parameters
NameDescription
nameString
dnsNameString
descriptionString
Returns
TypeDescription
ZoneInfo

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreationTimeMillis()

public Long getCreationTimeMillis()

Returns the time when this zone was created on the server.

Returns
TypeDescription
Long

getDescription()

public String getDescription()

Returns the description of this zone.

Returns
TypeDescription
String

getDnsName()

public String getDnsName()

Returns the DNS name of this zone, for instance "example.com.".

Returns
TypeDescription
String

getDnsSecConfig()

public ZoneInfo.DnsSecConfig getDnsSecConfig()
Returns
TypeDescription
ZoneInfo.DnsSecConfig

getGeneratedId()

public String getGeneratedId()

Returns the service-generated id for this zone.

Returns
TypeDescription
String

getLabels()

public Map<String,String> getLabels()

Returns the labels for this zone.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Returns the user-defined name of the zone.

Returns
TypeDescription
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
TypeDescription
String

getNameServers()

public List<String> getNameServers()

The nameservers that the zone should be delegated to. This is defined by the Google DNS cloud.

Returns
TypeDescription
List<String>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public ZoneInfo.Builder toBuilder()

Returns a builder for ZoneInfo prepopulated with the metadata of this zone.

Returns
TypeDescription
ZoneInfo.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides