// *** 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.azure.network;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


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

    public static final NetworkInterfaceApplicationSecurityGroupAssociationArgs Empty = new NetworkInterfaceApplicationSecurityGroupAssociationArgs();

    /**
     * The ID of the Application Security Group which this Network Interface which should be connected to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="applicationSecurityGroupId", required=true)
    private Output<String> applicationSecurityGroupId;

    /**
     * @return The ID of the Application Security Group which this Network Interface which should be connected to. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> applicationSecurityGroupId() {
        return this.applicationSecurityGroupId;
    }

    /**
     * The ID of the Network Interface. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="networkInterfaceId", required=true)
    private Output<String> networkInterfaceId;

    /**
     * @return The ID of the Network Interface. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> networkInterfaceId() {
        return this.networkInterfaceId;
    }

    private NetworkInterfaceApplicationSecurityGroupAssociationArgs() {}

    private NetworkInterfaceApplicationSecurityGroupAssociationArgs(NetworkInterfaceApplicationSecurityGroupAssociationArgs $) {
        this.applicationSecurityGroupId = $.applicationSecurityGroupId;
        this.networkInterfaceId = $.networkInterfaceId;
    }

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

    public static final class Builder {
        private NetworkInterfaceApplicationSecurityGroupAssociationArgs $;

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

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

        /**
         * @param applicationSecurityGroupId The ID of the Application Security Group which this Network Interface which should be connected to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder applicationSecurityGroupId(Output<String> applicationSecurityGroupId) {
            $.applicationSecurityGroupId = applicationSecurityGroupId;
            return this;
        }

        /**
         * @param applicationSecurityGroupId The ID of the Application Security Group which this Network Interface which should be connected to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder applicationSecurityGroupId(String applicationSecurityGroupId) {
            return applicationSecurityGroupId(Output.of(applicationSecurityGroupId));
        }

        /**
         * @param networkInterfaceId The ID of the Network Interface. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkInterfaceId(Output<String> networkInterfaceId) {
            $.networkInterfaceId = networkInterfaceId;
            return this;
        }

        /**
         * @param networkInterfaceId The ID of the Network Interface. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkInterfaceId(String networkInterfaceId) {
            return networkInterfaceId(Output.of(networkInterfaceId));
        }

        public NetworkInterfaceApplicationSecurityGroupAssociationArgs build() {
            $.applicationSecurityGroupId = Objects.requireNonNull($.applicationSecurityGroupId, "expected parameter 'applicationSecurityGroupId' to be non-null");
            $.networkInterfaceId = Objects.requireNonNull($.networkInterfaceId, "expected parameter 'networkInterfaceId' to be non-null");
            return $;
        }
    }

}
