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
AZonerepresents 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 classZoneInfo.BuilderBuilder forZoneInfo.static classZoneInfo.DnsSecConfigThis class represents the DNSSEC configuration.static classZoneInfo.KeySpecThis class represents the DNS key spec.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LonggetCreationTimeMillis()Returns the time when this zone was created on the server.StringgetDescription()Returns the description of this zone.StringgetDnsName()Returns the DNS name of this zone, for instance "example.com.".ZoneInfo.DnsSecConfiggetDnsSecConfig()StringgetGeneratedId()Returns the service-generated id for this zone.Map<String,String>getLabels()Returns the labels for this zone.StringgetName()Returns the user-defined name of the zone.List<String>getNameServers()The nameservers that the zone should be delegated to.StringgetNameServerSet()Returns the optionally specified set of DNS name servers that all host this zone.inthashCode()static ZoneInfo.BuildernewBuilder(String name)Returns aZoneInfobuilder where the DNS name is set to the provided name.static ZoneInfoof(String name, String dnsName, String description)Returns a ZoneInfo object with assignedname,dnsNameanddescription.ZoneInfo.BuildertoBuilder()Returns a builder forZoneInfoprepopulated with the metadata of this zone.StringtoString()
-
-
-
Method Detail
-
of
public static ZoneInfo of(String name, String dnsName, String description)
Returns a ZoneInfo object with assignedname,dnsNameanddescription.
-
newBuilder
public static ZoneInfo.Builder newBuilder(String name)
Returns aZoneInfobuilder 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 forZoneInfoprepopulated with the metadata of this zone.
-
-