Class Zone.Builder (2.40.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
Type Description
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
Name Description
description String
Returns
Type Description
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
Name Description
dnsName String
Returns
Type Description
Zone.Builder
Overrides

setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)

public Zone.Builder setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)

Sets the DNSSEC configuration.

Parameter
Name Description
dnsSecConfig ZoneInfo.DnsSecConfig
Returns
Type Description
Zone.Builder
Overrides

setLabels(Map<String,String> labels)

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

Sets the label of this zone.

Parameter
Name Description
labels Map<String,String>
Returns
Type Description
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
Name Description
name String
Returns
Type Description
Zone.Builder
Overrides