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

com.pulumi.azurenative.network.ZoneArgs 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.network;

import com.pulumi.azurenative.network.enums.ZoneType;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ZoneArgs Empty = new ZoneArgs();

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
     * 
     */
    @Import(name="registrationVirtualNetworks")
    private @Nullable Output> registrationVirtualNetworks;

    /**
     * @return A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
     * 
     */
    public Optional>> registrationVirtualNetworks() {
        return Optional.ofNullable(this.registrationVirtualNetworks);
    }

    /**
     * A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
     * 
     */
    @Import(name="resolutionVirtualNetworks")
    private @Nullable Output> resolutionVirtualNetworks;

    /**
     * @return A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
     * 
     */
    public Optional>> resolutionVirtualNetworks() {
        return Optional.ofNullable(this.resolutionVirtualNetworks);
    }

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

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

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The name of the DNS zone (without a terminating dot).
     * 
     */
    @Import(name="zoneName")
    private @Nullable Output zoneName;

    /**
     * @return The name of the DNS zone (without a terminating dot).
     * 
     */
    public Optional> zoneName() {
        return Optional.ofNullable(this.zoneName);
    }

    /**
     * The type of this DNS zone (Public or Private).
     * 
     */
    @Import(name="zoneType")
    private @Nullable Output zoneType;

    /**
     * @return The type of this DNS zone (Public or Private).
     * 
     */
    public Optional> zoneType() {
        return Optional.ofNullable(this.zoneType);
    }

    private ZoneArgs() {}

    private ZoneArgs(ZoneArgs $) {
        this.location = $.location;
        this.registrationVirtualNetworks = $.registrationVirtualNetworks;
        this.resolutionVirtualNetworks = $.resolutionVirtualNetworks;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.zoneName = $.zoneName;
        this.zoneType = $.zoneType;
    }

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

    public static final class Builder {
        private ZoneArgs $;

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

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

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param registrationVirtualNetworks A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
         * 
         * @return builder
         * 
         */
        public Builder registrationVirtualNetworks(@Nullable Output> registrationVirtualNetworks) {
            $.registrationVirtualNetworks = registrationVirtualNetworks;
            return this;
        }

        /**
         * @param registrationVirtualNetworks A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
         * 
         * @return builder
         * 
         */
        public Builder registrationVirtualNetworks(List registrationVirtualNetworks) {
            return registrationVirtualNetworks(Output.of(registrationVirtualNetworks));
        }

        /**
         * @param registrationVirtualNetworks A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
         * 
         * @return builder
         * 
         */
        public Builder registrationVirtualNetworks(SubResourceArgs... registrationVirtualNetworks) {
            return registrationVirtualNetworks(List.of(registrationVirtualNetworks));
        }

        /**
         * @param resolutionVirtualNetworks A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
         * 
         * @return builder
         * 
         */
        public Builder resolutionVirtualNetworks(@Nullable Output> resolutionVirtualNetworks) {
            $.resolutionVirtualNetworks = resolutionVirtualNetworks;
            return this;
        }

        /**
         * @param resolutionVirtualNetworks A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
         * 
         * @return builder
         * 
         */
        public Builder resolutionVirtualNetworks(List resolutionVirtualNetworks) {
            return resolutionVirtualNetworks(Output.of(resolutionVirtualNetworks));
        }

        /**
         * @param resolutionVirtualNetworks A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
         * 
         * @return builder
         * 
         */
        public Builder resolutionVirtualNetworks(SubResourceArgs... resolutionVirtualNetworks) {
            return resolutionVirtualNetworks(List.of(resolutionVirtualNetworks));
        }

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

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

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param zoneName The name of the DNS zone (without a terminating dot).
         * 
         * @return builder
         * 
         */
        public Builder zoneName(@Nullable Output zoneName) {
            $.zoneName = zoneName;
            return this;
        }

        /**
         * @param zoneName The name of the DNS zone (without a terminating dot).
         * 
         * @return builder
         * 
         */
        public Builder zoneName(String zoneName) {
            return zoneName(Output.of(zoneName));
        }

        /**
         * @param zoneType The type of this DNS zone (Public or Private).
         * 
         * @return builder
         * 
         */
        public Builder zoneType(@Nullable Output zoneType) {
            $.zoneType = zoneType;
            return this;
        }

        /**
         * @param zoneType The type of this DNS zone (Public or Private).
         * 
         * @return builder
         * 
         */
        public Builder zoneType(ZoneType zoneType) {
            return zoneType(Output.of(zoneType));
        }

        public ZoneArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ZoneArgs", "resourceGroupName");
            }
            $.zoneType = Codegen.objectProp("zoneType", ZoneType.class).output().arg($.zoneType).def(ZoneType.Public).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy