Package com.google.cloud.dns
Class ZoneInfo
- java.lang.Object
-
- com.google.cloud.dns.ZoneInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Zone
public class ZoneInfo extends Object implements Serializable
AZone
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZoneInfo.Builder
Builder forZoneInfo
.static class
ZoneInfo.DnsSecConfig
This class represents the DNSSEC configuration.static class
ZoneInfo.KeySpec
This class represents the DNS key spec.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Long
getCreationTimeMillis()
Returns the time when this zone was created on the server.String
getDescription()
Returns the description of this zone.String
getDnsName()
Returns the DNS name of this zone, for instance "example.com.".ZoneInfo.DnsSecConfig
getDnsSecConfig()
String
getGeneratedId()
Returns the service-generated id for this zone.Map<String,String>
getLabels()
Returns the labels for this zone.String
getName()
Returns the user-defined name of the zone.List<String>
getNameServers()
The nameservers that the zone should be delegated to.String
getNameServerSet()
Returns the optionally specified set of DNS name servers that all host this zone.int
hashCode()
static ZoneInfo.Builder
newBuilder(String name)
Returns aZoneInfo
builder where the DNS name is set to the provided name.static ZoneInfo
of(String name, String dnsName, String description)
Returns a ZoneInfo object with assignedname
,dnsName
anddescription
.ZoneInfo.Builder
toBuilder()
Returns a builder forZoneInfo
prepopulated with the metadata of this zone.String
toString()
-
-
-
Method Detail
-
of
public static ZoneInfo of(String name, String dnsName, String description)
Returns a ZoneInfo object with assignedname
,dnsName
anddescription
.
-
newBuilder
public static ZoneInfo.Builder newBuilder(String name)
Returns aZoneInfo
builder where the DNS name is set to the provided name.
-
getName
public String getName()
Returns the user-defined name of the zone.
-
getGeneratedId
public String getGeneratedId()
Returns the service-generated id for this zone.
-
getCreationTimeMillis
public Long getCreationTimeMillis()
Returns the time when this zone was created on the server.
-
getDnsName
public String getDnsName()
Returns the DNS name of this zone, for instance "example.com.".
-
getDescription
public String getDescription()
Returns the description of this zone.
-
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.
-
getNameServers
public List<String> getNameServers()
The nameservers that the zone should be delegated to. This is defined by the Google DNS cloud.
-
getDnsSecConfig
public ZoneInfo.DnsSecConfig getDnsSecConfig()
-
toBuilder
public ZoneInfo.Builder toBuilder()
Returns a builder forZoneInfo
prepopulated with the metadata of this zone.
-
-