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

com.pulumi.azurenative.datalakestore.inputs.CreateVirtualNetworkRuleWithAccountParametersArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.datalakestore.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;


/**
 * The parameters used to create a new virtual network rule while creating a new Data Lake Store account.
 * 
 */
public final class CreateVirtualNetworkRuleWithAccountParametersArgs extends com.pulumi.resources.ResourceArgs {

    public static final CreateVirtualNetworkRuleWithAccountParametersArgs Empty = new CreateVirtualNetworkRuleWithAccountParametersArgs();

    /**
     * The unique name of the virtual network rule to create.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The unique name of the virtual network rule to create.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The resource identifier for the subnet.
     * 
     */
    @Import(name="subnetId", required=true)
    private Output subnetId;

    /**
     * @return The resource identifier for the subnet.
     * 
     */
    public Output subnetId() {
        return this.subnetId;
    }

    private CreateVirtualNetworkRuleWithAccountParametersArgs() {}

    private CreateVirtualNetworkRuleWithAccountParametersArgs(CreateVirtualNetworkRuleWithAccountParametersArgs $) {
        this.name = $.name;
        this.subnetId = $.subnetId;
    }

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

    public static final class Builder {
        private CreateVirtualNetworkRuleWithAccountParametersArgs $;

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

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

        /**
         * @param name The unique name of the virtual network rule to create.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The unique name of the virtual network rule to create.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param subnetId The resource identifier for the subnet.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(Output subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId The resource identifier for the subnet.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        public CreateVirtualNetworkRuleWithAccountParametersArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("CreateVirtualNetworkRuleWithAccountParametersArgs", "name");
            }
            if ($.subnetId == null) {
                throw new MissingRequiredPropertyException("CreateVirtualNetworkRuleWithAccountParametersArgs", "subnetId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy