Class Zone.Builder (2.4.0)

public static class Zone.Builder extends ZoneInfo.Builder

Builder for Zone.

Inheritance

java.lang.Object > ZoneInfo.Builder > Zone.Builder

Methods

build()

public Zone build()

Builds the instance of ZoneInfo based on the information set by this builder.

Returns
TypeDescription
Zone
Overrides

setDescription(String description)

public Zone.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.

Parameter
NameDescription
descriptionString
Returns
TypeDescription
Zone.Builder
Overrides

setDnsName(String dnsName)

public Zone.Builder setDnsName(String dnsName)

Sets a mandatory DNS name of this zone, for instance "example.com.".

Parameter
NameDescription
dnsNameString
Returns
TypeDescription
Zone.Builder
Overrides

setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)

public Zone.Builder setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)

Sets the DNSSEC configuration.

Parameter
NameDescription
dnsSecConfigZoneInfo.DnsSecConfig
Returns
TypeDescription
Zone.Builder
Overrides

setLabels(Map<String,String> labels)

public Zone.Builder setLabels(Map<String,String> labels)

Sets the label of this zone.

Parameter
NameDescription
labelsMap<String,String>
Returns
TypeDescription
Zone.Builder
Overrides

setName(String name)

public Zone.Builder setName(String name)

Sets a mandatory user-provided name for the zone. It must be unique within the project.

Parameter
NameDescription
nameString
Returns
TypeDescription
Zone.Builder
Overrides