// *** 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 NetworkInterfaceBackendAddressPoolAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkInterfaceBackendAddressPoolAssociationArgs Empty = new NetworkInterfaceBackendAddressPoolAssociationArgs();

    /**
     * The ID of the Load Balancer Backend Address Pool which this Network Interface should be connected to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="backendAddressPoolId", required=true)
    private Output<String> backendAddressPoolId;

    /**
     * @return The ID of the Load Balancer Backend Address Pool which this Network Interface should be connected to. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> backendAddressPoolId() {
        return this.backendAddressPoolId;
    }

    /**
     * The Name of the IP Configuration within the Network Interface which should be connected to the Backend Address Pool. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="ipConfigurationName", required=true)
    private Output<String> ipConfigurationName;

    /**
     * @return The Name of the IP Configuration within the Network Interface which should be connected to the Backend Address Pool. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> ipConfigurationName() {
        return this.ipConfigurationName;
    }

    /**
     * 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 NetworkInterfaceBackendAddressPoolAssociationArgs() {}

    private NetworkInterfaceBackendAddressPoolAssociationArgs(NetworkInterfaceBackendAddressPoolAssociationArgs $) {
        this.backendAddressPoolId = $.backendAddressPoolId;
        this.ipConfigurationName = $.ipConfigurationName;
        this.networkInterfaceId = $.networkInterfaceId;
    }

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

    public static final class Builder {
        private NetworkInterfaceBackendAddressPoolAssociationArgs $;

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

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

        /**
         * @param backendAddressPoolId The ID of the Load Balancer Backend Address Pool which this Network Interface should be connected to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder backendAddressPoolId(Output<String> backendAddressPoolId) {
            $.backendAddressPoolId = backendAddressPoolId;
            return this;
        }

        /**
         * @param backendAddressPoolId The ID of the Load Balancer Backend Address Pool which this Network Interface should be connected to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder backendAddressPoolId(String backendAddressPoolId) {
            return backendAddressPoolId(Output.of(backendAddressPoolId));
        }

        /**
         * @param ipConfigurationName The Name of the IP Configuration within the Network Interface which should be connected to the Backend Address Pool. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurationName(Output<String> ipConfigurationName) {
            $.ipConfigurationName = ipConfigurationName;
            return this;
        }

        /**
         * @param ipConfigurationName The Name of the IP Configuration within the Network Interface which should be connected to the Backend Address Pool. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurationName(String ipConfigurationName) {
            return ipConfigurationName(Output.of(ipConfigurationName));
        }

        /**
         * @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 NetworkInterfaceBackendAddressPoolAssociationArgs build() {
            $.backendAddressPoolId = Objects.requireNonNull($.backendAddressPoolId, "expected parameter 'backendAddressPoolId' to be non-null");
            $.ipConfigurationName = Objects.requireNonNull($.ipConfigurationName, "expected parameter 'ipConfigurationName' to be non-null");
            $.networkInterfaceId = Objects.requireNonNull($.networkInterfaceId, "expected parameter 'networkInterfaceId' to be non-null");
            return $;
        }
    }

}
