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

com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalLoadBalancerConfigArgs Maven / Gradle / Ivy

// *** 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.googlenative.gkeonprem.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalBgpLbConfigArgs;
import com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalManualLbConfigArgs;
import com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalMetalLbConfigArgs;
import com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalPortConfigArgs;
import com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalVipConfigArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies the load balancer configuration.
 * 
 */
public final class BareMetalLoadBalancerConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final BareMetalLoadBalancerConfigArgs Empty = new BareMetalLoadBalancerConfigArgs();

    /**
     * Configuration for BGP typed load balancers. When set network_config.advanced_networking is automatically set to true.
     * 
     */
    @Import(name="bgpLbConfig")
    private @Nullable Output bgpLbConfig;

    /**
     * @return Configuration for BGP typed load balancers. When set network_config.advanced_networking is automatically set to true.
     * 
     */
    public Optional> bgpLbConfig() {
        return Optional.ofNullable(this.bgpLbConfig);
    }

    /**
     * Manually configured load balancers.
     * 
     */
    @Import(name="manualLbConfig")
    private @Nullable Output manualLbConfig;

    /**
     * @return Manually configured load balancers.
     * 
     */
    public Optional> manualLbConfig() {
        return Optional.ofNullable(this.manualLbConfig);
    }

    /**
     * Configuration for MetalLB load balancers.
     * 
     */
    @Import(name="metalLbConfig")
    private @Nullable Output metalLbConfig;

    /**
     * @return Configuration for MetalLB load balancers.
     * 
     */
    public Optional> metalLbConfig() {
        return Optional.ofNullable(this.metalLbConfig);
    }

    /**
     * Configures the ports that the load balancer will listen on.
     * 
     */
    @Import(name="portConfig")
    private @Nullable Output portConfig;

    /**
     * @return Configures the ports that the load balancer will listen on.
     * 
     */
    public Optional> portConfig() {
        return Optional.ofNullable(this.portConfig);
    }

    /**
     * The VIPs used by the load balancer.
     * 
     */
    @Import(name="vipConfig")
    private @Nullable Output vipConfig;

    /**
     * @return The VIPs used by the load balancer.
     * 
     */
    public Optional> vipConfig() {
        return Optional.ofNullable(this.vipConfig);
    }

    private BareMetalLoadBalancerConfigArgs() {}

    private BareMetalLoadBalancerConfigArgs(BareMetalLoadBalancerConfigArgs $) {
        this.bgpLbConfig = $.bgpLbConfig;
        this.manualLbConfig = $.manualLbConfig;
        this.metalLbConfig = $.metalLbConfig;
        this.portConfig = $.portConfig;
        this.vipConfig = $.vipConfig;
    }

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

    public static final class Builder {
        private BareMetalLoadBalancerConfigArgs $;

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

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

        /**
         * @param bgpLbConfig Configuration for BGP typed load balancers. When set network_config.advanced_networking is automatically set to true.
         * 
         * @return builder
         * 
         */
        public Builder bgpLbConfig(@Nullable Output bgpLbConfig) {
            $.bgpLbConfig = bgpLbConfig;
            return this;
        }

        /**
         * @param bgpLbConfig Configuration for BGP typed load balancers. When set network_config.advanced_networking is automatically set to true.
         * 
         * @return builder
         * 
         */
        public Builder bgpLbConfig(BareMetalBgpLbConfigArgs bgpLbConfig) {
            return bgpLbConfig(Output.of(bgpLbConfig));
        }

        /**
         * @param manualLbConfig Manually configured load balancers.
         * 
         * @return builder
         * 
         */
        public Builder manualLbConfig(@Nullable Output manualLbConfig) {
            $.manualLbConfig = manualLbConfig;
            return this;
        }

        /**
         * @param manualLbConfig Manually configured load balancers.
         * 
         * @return builder
         * 
         */
        public Builder manualLbConfig(BareMetalManualLbConfigArgs manualLbConfig) {
            return manualLbConfig(Output.of(manualLbConfig));
        }

        /**
         * @param metalLbConfig Configuration for MetalLB load balancers.
         * 
         * @return builder
         * 
         */
        public Builder metalLbConfig(@Nullable Output metalLbConfig) {
            $.metalLbConfig = metalLbConfig;
            return this;
        }

        /**
         * @param metalLbConfig Configuration for MetalLB load balancers.
         * 
         * @return builder
         * 
         */
        public Builder metalLbConfig(BareMetalMetalLbConfigArgs metalLbConfig) {
            return metalLbConfig(Output.of(metalLbConfig));
        }

        /**
         * @param portConfig Configures the ports that the load balancer will listen on.
         * 
         * @return builder
         * 
         */
        public Builder portConfig(@Nullable Output portConfig) {
            $.portConfig = portConfig;
            return this;
        }

        /**
         * @param portConfig Configures the ports that the load balancer will listen on.
         * 
         * @return builder
         * 
         */
        public Builder portConfig(BareMetalPortConfigArgs portConfig) {
            return portConfig(Output.of(portConfig));
        }

        /**
         * @param vipConfig The VIPs used by the load balancer.
         * 
         * @return builder
         * 
         */
        public Builder vipConfig(@Nullable Output vipConfig) {
            $.vipConfig = vipConfig;
            return this;
        }

        /**
         * @param vipConfig The VIPs used by the load balancer.
         * 
         * @return builder
         * 
         */
        public Builder vipConfig(BareMetalVipConfigArgs vipConfig) {
            return vipConfig(Output.of(vipConfig));
        }

        public BareMetalLoadBalancerConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy