Package com.google.cloud.dns
Class Zone.Builder
- java.lang.Object
-
- com.google.cloud.dns.ZoneInfo.Builder
-
- com.google.cloud.dns.Zone.Builder
-
- Enclosing class:
- Zone
public static class Zone.Builder extends ZoneInfo.Builder
Builder forZone
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Zone
build()
Builds the instance ofZoneInfo
based on the information set by this builder.Zone.Builder
setDescription(String description)
Sets a mandatory description for this zone.Zone.Builder
setDnsName(String dnsName)
Sets a mandatory DNS name of this zone, for instance "example.com.".Zone.Builder
setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)
Sets the DNSSEC configuration.Zone.Builder
setLabels(Map<String,String> labels)
Sets the label of this zone.Zone.Builder
setName(String name)
Sets a mandatory user-provided name for the zone.
-
-
-
Method Detail
-
setName
public Zone.Builder setName(String name)
Description copied from class:ZoneInfo.Builder
Sets a mandatory user-provided name for the zone. It must be unique within the project.- Specified by:
setName
in classZoneInfo.Builder
-
setDnsName
public Zone.Builder setDnsName(String dnsName)
Description copied from class:ZoneInfo.Builder
Sets a mandatory DNS name of this zone, for instance "example.com.".- Specified by:
setDnsName
in classZoneInfo.Builder
-
setDescription
public Zone.Builder setDescription(String description)
Description copied from class:ZoneInfo.Builder
Sets a mandatory description for this zone. The value is a string of at most 1024 characters which has no effect on the zone's function.- Specified by:
setDescription
in classZoneInfo.Builder
-
setDnsSecConfig
public Zone.Builder setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)
Description copied from class:ZoneInfo.Builder
Sets the DNSSEC configuration.- Overrides:
setDnsSecConfig
in classZoneInfo.Builder
-
setLabels
public Zone.Builder setLabels(Map<String,String> labels)
Description copied from class:ZoneInfo.Builder
Sets the label of this zone.- Overrides:
setLabels
in classZoneInfo.Builder
-
build
public Zone build()
Description copied from class:ZoneInfo.Builder
Builds the instance ofZoneInfo
based on the information set by this builder.- Specified by:
build
in classZoneInfo.Builder
-
-