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

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

There is a newer version: 2.78.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.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 WorkloadNetworkDnsZoneArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkloadNetworkDnsZoneArgs Empty = new WorkloadNetworkDnsZoneArgs();

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

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

    /**
     * DNS Server IP array of the DNS Zone.
     * 
     */
    @Import(name="dnsServerIps")
    private @Nullable Output> dnsServerIps;

    /**
     * @return DNS Server IP array of the DNS Zone.
     * 
     */
    public Optional>> dnsServerIps() {
        return Optional.ofNullable(this.dnsServerIps);
    }

    /**
     * Number of DNS Services using the DNS zone.
     * 
     */
    @Import(name="dnsServices")
    private @Nullable Output dnsServices;

    /**
     * @return Number of DNS Services using the DNS zone.
     * 
     */
    public Optional> dnsServices() {
        return Optional.ofNullable(this.dnsServices);
    }

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

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

    /**
     * Domain names of the DNS Zone.
     * 
     */
    @Import(name="domain")
    private @Nullable Output> domain;

    /**
     * @return Domain names of the DNS Zone.
     * 
     */
    public Optional>> domain() {
        return Optional.ofNullable(this.domain);
    }

    /**
     * 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);
    }

    /**
     * Source IP of the DNS Zone.
     * 
     */
    @Import(name="sourceIp")
    private @Nullable Output sourceIp;

    /**
     * @return Source IP of the DNS Zone.
     * 
     */
    public Optional> sourceIp() {
        return Optional.ofNullable(this.sourceIp);
    }

    private WorkloadNetworkDnsZoneArgs() {}

    private WorkloadNetworkDnsZoneArgs(WorkloadNetworkDnsZoneArgs $) {
        this.displayName = $.displayName;
        this.dnsServerIps = $.dnsServerIps;
        this.dnsServices = $.dnsServices;
        this.dnsZoneId = $.dnsZoneId;
        this.domain = $.domain;
        this.privateCloudName = $.privateCloudName;
        this.resourceGroupName = $.resourceGroupName;
        this.revision = $.revision;
        this.sourceIp = $.sourceIp;
    }

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

    public static final class Builder {
        private WorkloadNetworkDnsZoneArgs $;

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

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

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

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

        /**
         * @param dnsServerIps DNS Server IP array of the DNS Zone.
         * 
         * @return builder
         * 
         */
        public Builder dnsServerIps(@Nullable Output> dnsServerIps) {
            $.dnsServerIps = dnsServerIps;
            return this;
        }

        /**
         * @param dnsServerIps DNS Server IP array of the DNS Zone.
         * 
         * @return builder
         * 
         */
        public Builder dnsServerIps(List dnsServerIps) {
            return dnsServerIps(Output.of(dnsServerIps));
        }

        /**
         * @param dnsServerIps DNS Server IP array of the DNS Zone.
         * 
         * @return builder
         * 
         */
        public Builder dnsServerIps(String... dnsServerIps) {
            return dnsServerIps(List.of(dnsServerIps));
        }

        /**
         * @param dnsServices Number of DNS Services using the DNS zone.
         * 
         * @return builder
         * 
         */
        public Builder dnsServices(@Nullable Output dnsServices) {
            $.dnsServices = dnsServices;
            return this;
        }

        /**
         * @param dnsServices Number of DNS Services using the DNS zone.
         * 
         * @return builder
         * 
         */
        public Builder dnsServices(Double dnsServices) {
            return dnsServices(Output.of(dnsServices));
        }

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

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

        /**
         * @param domain Domain names of the DNS Zone.
         * 
         * @return builder
         * 
         */
        public Builder domain(@Nullable Output> domain) {
            $.domain = domain;
            return this;
        }

        /**
         * @param domain Domain names of the DNS Zone.
         * 
         * @return builder
         * 
         */
        public Builder domain(List domain) {
            return domain(Output.of(domain));
        }

        /**
         * @param domain Domain names of the DNS Zone.
         * 
         * @return builder
         * 
         */
        public Builder domain(String... domain) {
            return domain(List.of(domain));
        }

        /**
         * @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));
        }

        /**
         * @param sourceIp Source IP of the DNS Zone.
         * 
         * @return builder
         * 
         */
        public Builder sourceIp(@Nullable Output sourceIp) {
            $.sourceIp = sourceIp;
            return this;
        }

        /**
         * @param sourceIp Source IP of the DNS Zone.
         * 
         * @return builder
         * 
         */
        public Builder sourceIp(String sourceIp) {
            return sourceIp(Output.of(sourceIp));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy