Class ZoneInfo.Builder (2.6.0)

public abstract static class ZoneInfo.Builder

Builder for ZoneInfo.

Inheritance

java.lang.Object > ZoneInfo.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract ZoneInfo build()

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

Returns
TypeDescription
ZoneInfo

setDescription(String description)

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.

Parameter
NameDescription
descriptionString
Returns
TypeDescription
ZoneInfo.Builder

setDnsName(String dnsName)

public abstract ZoneInfo.Builder setDnsName(String dnsName)

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

Parameter
NameDescription
dnsNameString
Returns
TypeDescription
ZoneInfo.Builder

setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)

public ZoneInfo.Builder setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)

Sets the DNSSEC configuration.

Parameter
NameDescription
dnsSecConfigZoneInfo.DnsSecConfig
Returns
TypeDescription
ZoneInfo.Builder

setLabels(Map<String,String> labels)

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

Sets the label of this zone.

Parameter
NameDescription
labelsMap<String,String>
Returns
TypeDescription
ZoneInfo.Builder

setName(String name)

public abstract ZoneInfo.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
ZoneInfo.Builder