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 Zonebuild()Builds the instance ofZoneInfobased on the information set by this builder.Zone.BuildersetDescription(String description)Sets a mandatory description for this zone.Zone.BuildersetDnsName(String dnsName)Sets a mandatory DNS name of this zone, for instance "example.com.".Zone.BuildersetDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)Sets the DNSSEC configuration.Zone.BuildersetLabels(Map<String,String> labels)Sets the label of this zone.Zone.BuildersetName(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.BuilderSets a mandatory user-provided name for the zone. It must be unique within the project.- Specified by:
setNamein classZoneInfo.Builder
-
setDnsName
public Zone.Builder setDnsName(String dnsName)
Description copied from class:ZoneInfo.BuilderSets a mandatory DNS name of this zone, for instance "example.com.".- Specified by:
setDnsNamein classZoneInfo.Builder
-
setDescription
public Zone.Builder setDescription(String description)
Description copied from class:ZoneInfo.BuilderSets 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:
setDescriptionin classZoneInfo.Builder
-
setDnsSecConfig
public Zone.Builder setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)
Description copied from class:ZoneInfo.BuilderSets the DNSSEC configuration.- Overrides:
setDnsSecConfigin classZoneInfo.Builder
-
setLabels
public Zone.Builder setLabels(Map<String,String> labels)
Description copied from class:ZoneInfo.BuilderSets the label of this zone.- Overrides:
setLabelsin classZoneInfo.Builder
-
build
public Zone build()
Description copied from class:ZoneInfo.BuilderBuilds the instance ofZoneInfobased on the information set by this builder.- Specified by:
buildin classZoneInfo.Builder
-
-