Class ZoneInfo (2.41.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
Name Description
name String
Returns
Type Description
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
Name Description
name String
dnsName String
description String
Returns
Type Description
ZoneInfo

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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()
Returns
Type Description
ZoneInfo.DnsSecConfig

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.

Returns
Type Description
Map<String,String>

getName()

public String 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.

Returns
Type Description
List<String>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public ZoneInfo.Builder toBuilder()

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

Returns
Type Description
ZoneInfo.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides