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

com.pulumi.azurenative.networkcloud.inputs.GetL2NetworkArgs 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.networkcloud.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;


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

    public static final GetL2NetworkArgs Empty = new GetL2NetworkArgs();

    /**
     * The name of the L2 network.
     * 
     */
    @Import(name="l2NetworkName", required=true)
    private Output l2NetworkName;

    /**
     * @return The name of the L2 network.
     * 
     */
    public Output l2NetworkName() {
        return this.l2NetworkName;
    }

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

    private GetL2NetworkArgs() {}

    private GetL2NetworkArgs(GetL2NetworkArgs $) {
        this.l2NetworkName = $.l2NetworkName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetL2NetworkArgs $;

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

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

        /**
         * @param l2NetworkName The name of the L2 network.
         * 
         * @return builder
         * 
         */
        public Builder l2NetworkName(Output l2NetworkName) {
            $.l2NetworkName = l2NetworkName;
            return this;
        }

        /**
         * @param l2NetworkName The name of the L2 network.
         * 
         * @return builder
         * 
         */
        public Builder l2NetworkName(String l2NetworkName) {
            return l2NetworkName(Output.of(l2NetworkName));
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy