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

com.ovhcloud.pulumi.ovh.IpLoadBalancing.inputs.HttpFarmState Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.IpLoadBalancing.inputs;

import com.ovhcloud.pulumi.ovh.IpLoadBalancing.inputs.HttpFarmProbeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HttpFarmState Empty = new HttpFarmState();

    /**
     * Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`, `uri`)
     * 
     */
    @Import(name="balance")
    private @Nullable Output balance;

    /**
     * @return Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`, `uri`)
     * 
     */
    public Optional> balance() {
        return Optional.ofNullable(this.balance);
    }

    /**
     * Readable label for loadbalancer farm
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Readable label for loadbalancer farm
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Port attached to your farm ([1..49151]). Inherited from frontend if null
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return Port attached to your farm ([1..49151]). Inherited from frontend if null
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * define a backend healthcheck probe
     * 
     */
    @Import(name="probe")
    private @Nullable Output probe;

    /**
     * @return define a backend healthcheck probe
     * 
     */
    public Optional> probe() {
        return Optional.ofNullable(this.probe);
    }

    /**
     * The internal name of your IP load balancing
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return The internal name of your IP load balancing
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    /**
     * Stickiness type. No stickiness if null (`sourceIp`, `cookie`)
     * 
     */
    @Import(name="stickiness")
    private @Nullable Output stickiness;

    /**
     * @return Stickiness type. No stickiness if null (`sourceIp`, `cookie`)
     * 
     */
    public Optional> stickiness() {
        return Optional.ofNullable(this.stickiness);
    }

    /**
     * Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack
     * 
     */
    @Import(name="vrackNetworkId")
    private @Nullable Output vrackNetworkId;

    /**
     * @return Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack
     * 
     */
    public Optional> vrackNetworkId() {
        return Optional.ofNullable(this.vrackNetworkId);
    }

    /**
     * Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`)
     * 
     */
    @Import(name="zone")
    private @Nullable Output zone;

    /**
     * @return Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`)
     * 
     */
    public Optional> zone() {
        return Optional.ofNullable(this.zone);
    }

    private HttpFarmState() {}

    private HttpFarmState(HttpFarmState $) {
        this.balance = $.balance;
        this.displayName = $.displayName;
        this.port = $.port;
        this.probe = $.probe;
        this.serviceName = $.serviceName;
        this.stickiness = $.stickiness;
        this.vrackNetworkId = $.vrackNetworkId;
        this.zone = $.zone;
    }

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

    public static final class Builder {
        private HttpFarmState $;

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

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

        /**
         * @param balance Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`, `uri`)
         * 
         * @return builder
         * 
         */
        public Builder balance(@Nullable Output balance) {
            $.balance = balance;
            return this;
        }

        /**
         * @param balance Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`, `uri`)
         * 
         * @return builder
         * 
         */
        public Builder balance(String balance) {
            return balance(Output.of(balance));
        }

        /**
         * @param displayName Readable label for loadbalancer farm
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Readable label for loadbalancer farm
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param port Port attached to your farm ([1..49151]). Inherited from frontend if null
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port Port attached to your farm ([1..49151]). Inherited from frontend if null
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param probe define a backend healthcheck probe
         * 
         * @return builder
         * 
         */
        public Builder probe(@Nullable Output probe) {
            $.probe = probe;
            return this;
        }

        /**
         * @param probe define a backend healthcheck probe
         * 
         * @return builder
         * 
         */
        public Builder probe(HttpFarmProbeArgs probe) {
            return probe(Output.of(probe));
        }

        /**
         * @param serviceName The internal name of your IP load balancing
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The internal name of your IP load balancing
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param stickiness Stickiness type. No stickiness if null (`sourceIp`, `cookie`)
         * 
         * @return builder
         * 
         */
        public Builder stickiness(@Nullable Output stickiness) {
            $.stickiness = stickiness;
            return this;
        }

        /**
         * @param stickiness Stickiness type. No stickiness if null (`sourceIp`, `cookie`)
         * 
         * @return builder
         * 
         */
        public Builder stickiness(String stickiness) {
            return stickiness(Output.of(stickiness));
        }

        /**
         * @param vrackNetworkId Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack
         * 
         * @return builder
         * 
         */
        public Builder vrackNetworkId(@Nullable Output vrackNetworkId) {
            $.vrackNetworkId = vrackNetworkId;
            return this;
        }

        /**
         * @param vrackNetworkId Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack
         * 
         * @return builder
         * 
         */
        public Builder vrackNetworkId(Integer vrackNetworkId) {
            return vrackNetworkId(Output.of(vrackNetworkId));
        }

        /**
         * @param zone Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`)
         * 
         * @return builder
         * 
         */
        public Builder zone(@Nullable Output zone) {
            $.zone = zone;
            return this;
        }

        /**
         * @param zone Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`)
         * 
         * @return builder
         * 
         */
        public Builder zone(String zone) {
            return zone(Output.of(zone));
        }

        public HttpFarmState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy