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

com.pulumi.libvirt.inputs.GetNetworkDnsSrvTemplateArgs 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.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetNetworkDnsSrvTemplateArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetNetworkDnsSrvTemplateArgs Empty = new GetNetworkDnsSrvTemplateArgs();

    @Import(name="domain")
    private @Nullable Output domain;

    public Optional> domain() {
        return Optional.ofNullable(this.domain);
    }

    @Import(name="port")
    private @Nullable Output port;

    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    @Import(name="priority")
    private @Nullable Output priority;

    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    @Import(name="protocol", required=true)
    private Output protocol;

    public Output protocol() {
        return this.protocol;
    }

    @Import(name="service", required=true)
    private Output service;

    public Output service() {
        return this.service;
    }

    @Import(name="target")
    private @Nullable Output target;

    public Optional> target() {
        return Optional.ofNullable(this.target);
    }

    @Import(name="weight")
    private @Nullable Output weight;

    public Optional> weight() {
        return Optional.ofNullable(this.weight);
    }

    private GetNetworkDnsSrvTemplateArgs() {}

    private GetNetworkDnsSrvTemplateArgs(GetNetworkDnsSrvTemplateArgs $) {
        this.domain = $.domain;
        this.port = $.port;
        this.priority = $.priority;
        this.protocol = $.protocol;
        this.service = $.service;
        this.target = $.target;
        this.weight = $.weight;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GetNetworkDnsSrvTemplateArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GetNetworkDnsSrvTemplateArgs $;

        public Builder() {
            $ = new GetNetworkDnsSrvTemplateArgs();
        }

        public Builder(GetNetworkDnsSrvTemplateArgs defaults) {
            $ = new GetNetworkDnsSrvTemplateArgs(Objects.requireNonNull(defaults));
        }

        public Builder domain(@Nullable Output domain) {
            $.domain = domain;
            return this;
        }

        public Builder domain(String domain) {
            return domain(Output.of(domain));
        }

        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        public Builder port(String port) {
            return port(Output.of(port));
        }

        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        public Builder priority(String priority) {
            return priority(Output.of(priority));
        }

        public Builder protocol(Output protocol) {
            $.protocol = protocol;
            return this;
        }

        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        public Builder service(Output service) {
            $.service = service;
            return this;
        }

        public Builder service(String service) {
            return service(Output.of(service));
        }

        public Builder target(@Nullable Output target) {
            $.target = target;
            return this;
        }

        public Builder target(String target) {
            return target(Output.of(target));
        }

        public Builder weight(@Nullable Output weight) {
            $.weight = weight;
            return this;
        }

        public Builder weight(String weight) {
            return weight(Output.of(weight));
        }

        public GetNetworkDnsSrvTemplateArgs build() {
            if ($.protocol == null) {
                throw new MissingRequiredPropertyException("GetNetworkDnsSrvTemplateArgs", "protocol");
            }
            if ($.service == null) {
                throw new MissingRequiredPropertyException("GetNetworkDnsSrvTemplateArgs", "service");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy