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

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

There is a newer version: 1.4.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.TcpRouteActionArgs;
import com.ovhcloud.pulumi.ovh.IpLoadBalancing.inputs.TcpRouteRuleArgs;
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;


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

    public static final TcpRouteState Empty = new TcpRouteState();

    /**
     * Action triggered when all rules match
     * 
     */
    @Import(name="action")
    private @Nullable Output action;

    /**
     * @return Action triggered when all rules match
     * 
     */
    public Optional> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * Human readable name for your route, this field is for you
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Human readable name for your route, this field is for you
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Route traffic for this frontend
     * 
     */
    @Import(name="frontendId")
    private @Nullable Output frontendId;

    /**
     * @return Route traffic for this frontend
     * 
     */
    public Optional> frontendId() {
        return Optional.ofNullable(this.frontendId);
    }

    /**
     * List of rules to match to trigger action
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return List of rules to match to trigger action
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    /**
     * 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);
    }

    /**
     * Route status. Routes in "ok" state are ready to operate
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Route status. Routes in "ok" state are ready to operate
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * Route priority ([0..255]). 0 if null. Highest priority routes are evaluated first. Only the first matching route will trigger an action
     * 
     */
    @Import(name="weight")
    private @Nullable Output weight;

    /**
     * @return Route priority ([0..255]). 0 if null. Highest priority routes are evaluated first. Only the first matching route will trigger an action
     * 
     */
    public Optional> weight() {
        return Optional.ofNullable(this.weight);
    }

    private TcpRouteState() {}

    private TcpRouteState(TcpRouteState $) {
        this.action = $.action;
        this.displayName = $.displayName;
        this.frontendId = $.frontendId;
        this.rules = $.rules;
        this.serviceName = $.serviceName;
        this.status = $.status;
        this.weight = $.weight;
    }

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

    public static final class Builder {
        private TcpRouteState $;

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

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

        /**
         * @param action Action triggered when all rules match
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Action triggered when all rules match
         * 
         * @return builder
         * 
         */
        public Builder action(TcpRouteActionArgs action) {
            return action(Output.of(action));
        }

        /**
         * @param displayName Human readable name for your route, this field is for you
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Human readable name for your route, this field is for you
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param frontendId Route traffic for this frontend
         * 
         * @return builder
         * 
         */
        public Builder frontendId(@Nullable Output frontendId) {
            $.frontendId = frontendId;
            return this;
        }

        /**
         * @param frontendId Route traffic for this frontend
         * 
         * @return builder
         * 
         */
        public Builder frontendId(Integer frontendId) {
            return frontendId(Output.of(frontendId));
        }

        /**
         * @param rules List of rules to match to trigger action
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules List of rules to match to trigger action
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules List of rules to match to trigger action
         * 
         * @return builder
         * 
         */
        public Builder rules(TcpRouteRuleArgs... rules) {
            return rules(List.of(rules));
        }

        /**
         * @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 status Route status. Routes in "ok" state are ready to operate
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Route status. Routes in "ok" state are ready to operate
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param weight Route priority ([0..255]). 0 if null. Highest priority routes are evaluated first. Only the first matching route will trigger an action
         * 
         * @return builder
         * 
         */
        public Builder weight(@Nullable Output weight) {
            $.weight = weight;
            return this;
        }

        /**
         * @param weight Route priority ([0..255]). 0 if null. Highest priority routes are evaluated first. Only the first matching route will trigger an action
         * 
         * @return builder
         * 
         */
        public Builder weight(Integer weight) {
            return weight(Output.of(weight));
        }

        public TcpRouteState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy