com.pulumi.libvirt.outputs.NetworkDnsForwarder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libvirt Show documentation
Show all versions of libvirt Show documentation
A Pulumi package for creating and managing libvirt cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.libvirt.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NetworkDnsForwarder {
private @Nullable String address;
/**
* @return The domain used by the DNS server.
*
*/
private @Nullable String domain;
private NetworkDnsForwarder() {}
public Optional address() {
return Optional.ofNullable(this.address);
}
/**
* @return The domain used by the DNS server.
*
*/
public Optional domain() {
return Optional.ofNullable(this.domain);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkDnsForwarder defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String address;
private @Nullable String domain;
public Builder() {}
public Builder(NetworkDnsForwarder defaults) {
Objects.requireNonNull(defaults);
this.address = defaults.address;
this.domain = defaults.domain;
}
@CustomType.Setter
public Builder address(@Nullable String address) {
this.address = address;
return this;
}
@CustomType.Setter
public Builder domain(@Nullable String domain) {
this.domain = domain;
return this;
}
public NetworkDnsForwarder build() {
final var _resultValue = new NetworkDnsForwarder();
_resultValue.address = address;
_resultValue.domain = domain;
return _resultValue;
}
}
}