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

com.pulumi.azurenative.avs.WorkloadNetworkDnsServiceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.avs;

import com.pulumi.azurenative.avs.enums.DnsServiceLogLevelEnum;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class WorkloadNetworkDnsServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkloadNetworkDnsServiceArgs Empty = new WorkloadNetworkDnsServiceArgs();

    /**
     * Default DNS zone of the DNS Service.
     * 
     */
    @Import(name="defaultDnsZone")
    private @Nullable Output defaultDnsZone;

    /**
     * @return Default DNS zone of the DNS Service.
     * 
     */
    public Optional> defaultDnsZone() {
        return Optional.ofNullable(this.defaultDnsZone);
    }

    /**
     * Display name of the DNS Service.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Display name of the DNS Service.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * NSX DNS Service identifier. Generally the same as the DNS Service's display name
     * 
     */
    @Import(name="dnsServiceId")
    private @Nullable Output dnsServiceId;

    /**
     * @return NSX DNS Service identifier. Generally the same as the DNS Service's display name
     * 
     */
    public Optional> dnsServiceId() {
        return Optional.ofNullable(this.dnsServiceId);
    }

    /**
     * DNS service IP of the DNS Service.
     * 
     */
    @Import(name="dnsServiceIp")
    private @Nullable Output dnsServiceIp;

    /**
     * @return DNS service IP of the DNS Service.
     * 
     */
    public Optional> dnsServiceIp() {
        return Optional.ofNullable(this.dnsServiceIp);
    }

    /**
     * FQDN zones of the DNS Service.
     * 
     */
    @Import(name="fqdnZones")
    private @Nullable Output> fqdnZones;

    /**
     * @return FQDN zones of the DNS Service.
     * 
     */
    public Optional>> fqdnZones() {
        return Optional.ofNullable(this.fqdnZones);
    }

    /**
     * DNS Service log level.
     * 
     */
    @Import(name="logLevel")
    private @Nullable Output> logLevel;

    /**
     * @return DNS Service log level.
     * 
     */
    public Optional>> logLevel() {
        return Optional.ofNullable(this.logLevel);
    }

    /**
     * Name of the private cloud
     * 
     */
    @Import(name="privateCloudName", required=true)
    private Output privateCloudName;

    /**
     * @return Name of the private cloud
     * 
     */
    public Output privateCloudName() {
        return this.privateCloudName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * NSX revision number.
     * 
     */
    @Import(name="revision")
    private @Nullable Output revision;

    /**
     * @return NSX revision number.
     * 
     */
    public Optional> revision() {
        return Optional.ofNullable(this.revision);
    }

    private WorkloadNetworkDnsServiceArgs() {}

    private WorkloadNetworkDnsServiceArgs(WorkloadNetworkDnsServiceArgs $) {
        this.defaultDnsZone = $.defaultDnsZone;
        this.displayName = $.displayName;
        this.dnsServiceId = $.dnsServiceId;
        this.dnsServiceIp = $.dnsServiceIp;
        this.fqdnZones = $.fqdnZones;
        this.logLevel = $.logLevel;
        this.privateCloudName = $.privateCloudName;
        this.resourceGroupName = $.resourceGroupName;
        this.revision = $.revision;
    }

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

    public static final class Builder {
        private WorkloadNetworkDnsServiceArgs $;

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

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

        /**
         * @param defaultDnsZone Default DNS zone of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder defaultDnsZone(@Nullable Output defaultDnsZone) {
            $.defaultDnsZone = defaultDnsZone;
            return this;
        }

        /**
         * @param defaultDnsZone Default DNS zone of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder defaultDnsZone(String defaultDnsZone) {
            return defaultDnsZone(Output.of(defaultDnsZone));
        }

        /**
         * @param displayName Display name of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Display name of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
         * 
         * @return builder
         * 
         */
        public Builder dnsServiceId(@Nullable Output dnsServiceId) {
            $.dnsServiceId = dnsServiceId;
            return this;
        }

        /**
         * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
         * 
         * @return builder
         * 
         */
        public Builder dnsServiceId(String dnsServiceId) {
            return dnsServiceId(Output.of(dnsServiceId));
        }

        /**
         * @param dnsServiceIp DNS service IP of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder dnsServiceIp(@Nullable Output dnsServiceIp) {
            $.dnsServiceIp = dnsServiceIp;
            return this;
        }

        /**
         * @param dnsServiceIp DNS service IP of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder dnsServiceIp(String dnsServiceIp) {
            return dnsServiceIp(Output.of(dnsServiceIp));
        }

        /**
         * @param fqdnZones FQDN zones of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder fqdnZones(@Nullable Output> fqdnZones) {
            $.fqdnZones = fqdnZones;
            return this;
        }

        /**
         * @param fqdnZones FQDN zones of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder fqdnZones(List fqdnZones) {
            return fqdnZones(Output.of(fqdnZones));
        }

        /**
         * @param fqdnZones FQDN zones of the DNS Service.
         * 
         * @return builder
         * 
         */
        public Builder fqdnZones(String... fqdnZones) {
            return fqdnZones(List.of(fqdnZones));
        }

        /**
         * @param logLevel DNS Service log level.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(@Nullable Output> logLevel) {
            $.logLevel = logLevel;
            return this;
        }

        /**
         * @param logLevel DNS Service log level.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(Either logLevel) {
            return logLevel(Output.of(logLevel));
        }

        /**
         * @param logLevel DNS Service log level.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(String logLevel) {
            return logLevel(Either.ofLeft(logLevel));
        }

        /**
         * @param logLevel DNS Service log level.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(DnsServiceLogLevelEnum logLevel) {
            return logLevel(Either.ofRight(logLevel));
        }

        /**
         * @param privateCloudName Name of the private cloud
         * 
         * @return builder
         * 
         */
        public Builder privateCloudName(Output privateCloudName) {
            $.privateCloudName = privateCloudName;
            return this;
        }

        /**
         * @param privateCloudName Name of the private cloud
         * 
         * @return builder
         * 
         */
        public Builder privateCloudName(String privateCloudName) {
            return privateCloudName(Output.of(privateCloudName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param revision NSX revision number.
         * 
         * @return builder
         * 
         */
        public Builder revision(@Nullable Output revision) {
            $.revision = revision;
            return this;
        }

        /**
         * @param revision NSX revision number.
         * 
         * @return builder
         * 
         */
        public Builder revision(Double revision) {
            return revision(Output.of(revision));
        }

        public WorkloadNetworkDnsServiceArgs build() {
            if ($.privateCloudName == null) {
                throw new MissingRequiredPropertyException("WorkloadNetworkDnsServiceArgs", "privateCloudName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WorkloadNetworkDnsServiceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy