com.pulumi.libvirt.inputs.GetNetworkDnsHostTemplatePlainArgs 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.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetNetworkDnsHostTemplatePlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetNetworkDnsHostTemplatePlainArgs Empty = new GetNetworkDnsHostTemplatePlainArgs();
@Import(name="hostname", required=true)
private String hostname;
public String hostname() {
return this.hostname;
}
@Import(name="ip", required=true)
private String ip;
public String ip() {
return this.ip;
}
private GetNetworkDnsHostTemplatePlainArgs() {}
private GetNetworkDnsHostTemplatePlainArgs(GetNetworkDnsHostTemplatePlainArgs $) {
this.hostname = $.hostname;
this.ip = $.ip;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetNetworkDnsHostTemplatePlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetNetworkDnsHostTemplatePlainArgs $;
public Builder() {
$ = new GetNetworkDnsHostTemplatePlainArgs();
}
public Builder(GetNetworkDnsHostTemplatePlainArgs defaults) {
$ = new GetNetworkDnsHostTemplatePlainArgs(Objects.requireNonNull(defaults));
}
public Builder hostname(String hostname) {
$.hostname = hostname;
return this;
}
public Builder ip(String ip) {
$.ip = ip;
return this;
}
public GetNetworkDnsHostTemplatePlainArgs build() {
if ($.hostname == null) {
throw new MissingRequiredPropertyException("GetNetworkDnsHostTemplatePlainArgs", "hostname");
}
if ($.ip == null) {
throw new MissingRequiredPropertyException("GetNetworkDnsHostTemplatePlainArgs", "ip");
}
return $;
}
}
}