All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.libvirt.inputs.GetNetworkDnsHostTemplatePlainArgs Maven / Gradle / Ivy

There is a newer version: 0.6.0-alpha.1732600491
Show newest version
// *** 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 $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy