Class ZoneInfo.Builder (2.52.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
Type Description
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
Name Description
description String
Returns
Type Description
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
Name Description
dnsName String
Returns
Type Description
ZoneInfo.Builder

setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)

public ZoneInfo.Builder setDnsSecConfig(ZoneInfo.DnsSecConfig dnsSecConfig)

Sets the DNSSEC configuration.

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

setLabels(Map<String,String> labels)

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

Sets the label of this zone.

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