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

com.pulumi.azurenative.sqlvirtualmachine.inputs.LoadBalancerConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.sqlvirtualmachine.inputs;

import com.pulumi.azurenative.sqlvirtualmachine.inputs.PrivateIPAddressArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A load balancer configuration for an availability group listener.
 * 
 */
public final class LoadBalancerConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final LoadBalancerConfigurationArgs Empty = new LoadBalancerConfigurationArgs();

    /**
     * Resource id of the load balancer.
     * 
     */
    @Import(name="loadBalancerResourceId")
    private @Nullable Output loadBalancerResourceId;

    /**
     * @return Resource id of the load balancer.
     * 
     */
    public Optional> loadBalancerResourceId() {
        return Optional.ofNullable(this.loadBalancerResourceId);
    }

    /**
     * Private IP address.
     * 
     */
    @Import(name="privateIpAddress")
    private @Nullable Output privateIpAddress;

    /**
     * @return Private IP address.
     * 
     */
    public Optional> privateIpAddress() {
        return Optional.ofNullable(this.privateIpAddress);
    }

    /**
     * Probe port.
     * 
     */
    @Import(name="probePort")
    private @Nullable Output probePort;

    /**
     * @return Probe port.
     * 
     */
    public Optional> probePort() {
        return Optional.ofNullable(this.probePort);
    }

    /**
     * Resource id of the public IP.
     * 
     */
    @Import(name="publicIpAddressResourceId")
    private @Nullable Output publicIpAddressResourceId;

    /**
     * @return Resource id of the public IP.
     * 
     */
    public Optional> publicIpAddressResourceId() {
        return Optional.ofNullable(this.publicIpAddressResourceId);
    }

    /**
     * List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
     * 
     */
    @Import(name="sqlVirtualMachineInstances")
    private @Nullable Output> sqlVirtualMachineInstances;

    /**
     * @return List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
     * 
     */
    public Optional>> sqlVirtualMachineInstances() {
        return Optional.ofNullable(this.sqlVirtualMachineInstances);
    }

    private LoadBalancerConfigurationArgs() {}

    private LoadBalancerConfigurationArgs(LoadBalancerConfigurationArgs $) {
        this.loadBalancerResourceId = $.loadBalancerResourceId;
        this.privateIpAddress = $.privateIpAddress;
        this.probePort = $.probePort;
        this.publicIpAddressResourceId = $.publicIpAddressResourceId;
        this.sqlVirtualMachineInstances = $.sqlVirtualMachineInstances;
    }

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

    public static final class Builder {
        private LoadBalancerConfigurationArgs $;

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

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

        /**
         * @param loadBalancerResourceId Resource id of the load balancer.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerResourceId(@Nullable Output loadBalancerResourceId) {
            $.loadBalancerResourceId = loadBalancerResourceId;
            return this;
        }

        /**
         * @param loadBalancerResourceId Resource id of the load balancer.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerResourceId(String loadBalancerResourceId) {
            return loadBalancerResourceId(Output.of(loadBalancerResourceId));
        }

        /**
         * @param privateIpAddress Private IP address.
         * 
         * @return builder
         * 
         */
        public Builder privateIpAddress(@Nullable Output privateIpAddress) {
            $.privateIpAddress = privateIpAddress;
            return this;
        }

        /**
         * @param privateIpAddress Private IP address.
         * 
         * @return builder
         * 
         */
        public Builder privateIpAddress(PrivateIPAddressArgs privateIpAddress) {
            return privateIpAddress(Output.of(privateIpAddress));
        }

        /**
         * @param probePort Probe port.
         * 
         * @return builder
         * 
         */
        public Builder probePort(@Nullable Output probePort) {
            $.probePort = probePort;
            return this;
        }

        /**
         * @param probePort Probe port.
         * 
         * @return builder
         * 
         */
        public Builder probePort(Integer probePort) {
            return probePort(Output.of(probePort));
        }

        /**
         * @param publicIpAddressResourceId Resource id of the public IP.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressResourceId(@Nullable Output publicIpAddressResourceId) {
            $.publicIpAddressResourceId = publicIpAddressResourceId;
            return this;
        }

        /**
         * @param publicIpAddressResourceId Resource id of the public IP.
         * 
         * @return builder
         * 
         */
        public Builder publicIpAddressResourceId(String publicIpAddressResourceId) {
            return publicIpAddressResourceId(Output.of(publicIpAddressResourceId));
        }

        /**
         * @param sqlVirtualMachineInstances List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
         * 
         * @return builder
         * 
         */
        public Builder sqlVirtualMachineInstances(@Nullable Output> sqlVirtualMachineInstances) {
            $.sqlVirtualMachineInstances = sqlVirtualMachineInstances;
            return this;
        }

        /**
         * @param sqlVirtualMachineInstances List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
         * 
         * @return builder
         * 
         */
        public Builder sqlVirtualMachineInstances(List sqlVirtualMachineInstances) {
            return sqlVirtualMachineInstances(Output.of(sqlVirtualMachineInstances));
        }

        /**
         * @param sqlVirtualMachineInstances List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
         * 
         * @return builder
         * 
         */
        public Builder sqlVirtualMachineInstances(String... sqlVirtualMachineInstances) {
            return sqlVirtualMachineInstances(List.of(sqlVirtualMachineInstances));
        }

        public LoadBalancerConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy