com.pulumi.libvirt.outputs.NetworkDnsHost 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 NetworkDnsHost {
private @Nullable String hostname;
private @Nullable String ip;
private NetworkDnsHost() {}
public Optional hostname() {
return Optional.ofNullable(this.hostname);
}
public Optional ip() {
return Optional.ofNullable(this.ip);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkDnsHost defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String hostname;
private @Nullable String ip;
public Builder() {}
public Builder(NetworkDnsHost defaults) {
Objects.requireNonNull(defaults);
this.hostname = defaults.hostname;
this.ip = defaults.ip;
}
@CustomType.Setter
public Builder hostname(@Nullable String hostname) {
this.hostname = hostname;
return this;
}
@CustomType.Setter
public Builder ip(@Nullable String ip) {
this.ip = ip;
return this;
}
public NetworkDnsHost build() {
final var _resultValue = new NetworkDnsHost();
_resultValue.hostname = hostname;
_resultValue.ip = ip;
return _resultValue;
}
}
}