Package com.google.cloud.dns
Class ZoneInfo.Builder
- java.lang.Object
-
- com.google.cloud.dns.ZoneInfo.Builder
-
- Direct Known Subclasses:
Zone.Builder
- Enclosing class:
- ZoneInfo
public abstract static class ZoneInfo.Builder extends Object
Builder forZoneInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ZoneInfo
build()
Builds the instance ofZoneInfo
based on the information set by this builder.abstract ZoneInfo.Builder
setDescription(String description)
Sets a mandatory description for this zone.abstract ZoneInfo.Builder
setDnsName(String dnsName)
Sets a mandatory DNS name of this zone, for instance "example.com.".ZoneInfo.Builder
setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)
Sets the DNSSEC configuration.ZoneInfo.Builder
setLabels(Map<String,String> labels)
Sets the label of this zone.abstract ZoneInfo.Builder
setName(String name)
Sets a mandatory user-provided name for the zone.
-
-
-
Method Detail
-
setName
public abstract ZoneInfo.Builder setName(String name)
Sets a mandatory user-provided name for the zone. It must be unique within the project.
-
setDnsName
public abstract ZoneInfo.Builder setDnsName(String dnsName)
Sets a mandatory DNS name of this zone, for instance "example.com.".
-
setDescription
public abstract ZoneInfo.Builder setDescription(String description)
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.
-
setDnsSecConfig
public ZoneInfo.Builder setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)
Sets the DNSSEC configuration.
-
setLabels
public ZoneInfo.Builder setLabels(Map<String,String> labels)
Sets the label of this zone.
-
build
public abstract ZoneInfo build()
Builds the instance ofZoneInfo
based on the information set by this builder.
-
-