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

com.ovhcloud.pulumi.ovh.IpLoadBalancing.UdpFrontendArgs 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;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final UdpFrontendArgs Empty = new UdpFrontendArgs();

    /**
     * Only attach frontend on these ip. No restriction if null. List of Ip blocks.
     * 
     */
    @Import(name="dedicatedIpfos")
    private @Nullable Output> dedicatedIpfos;

    /**
     * @return Only attach frontend on these ip. No restriction if null. List of Ip blocks.
     * 
     */
    public Optional>> dedicatedIpfos() {
        return Optional.ofNullable(this.dedicatedIpfos);
    }

    /**
     * Default UDP Farm of your frontend
     * 
     */
    @Import(name="defaultFarmId")
    private @Nullable Output defaultFarmId;

    /**
     * @return Default UDP Farm of your frontend
     * 
     */
    public Optional> defaultFarmId() {
        return Optional.ofNullable(this.defaultFarmId);
    }

    /**
     * Disable your frontend. Default: 'false'
     * 
     */
    @Import(name="disabled")
    private @Nullable Output disabled;

    /**
     * @return Disable your frontend. Default: 'false'
     * 
     */
    public Optional> disabled() {
        return Optional.ofNullable(this.disabled);
    }

    /**
     * Human readable name for your frontend
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Human readable name for your frontend
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Port(s) attached to your frontend. Supports single port (numerical value),
     * range (2 dash-delimited increasing ports) and comma-separated list of 'single port'
     * and/or 'range'. Each port must be in the [1;49151] range
     * 
     */
    @Import(name="port", required=true)
    private Output port;

    /**
     * @return Port(s) attached to your frontend. Supports single port (numerical value),
     * range (2 dash-delimited increasing ports) and comma-separated list of 'single port'
     * and/or 'range'. Each port must be in the [1;49151] range
     * 
     */
    public Output port() {
        return this.port;
    }

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

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

    /**
     * Zone where the frontend will be defined (ie. `gra`, `bhs` also supports `all`)
     * 
     */
    @Import(name="zone", required=true)
    private Output zone;

    /**
     * @return Zone where the frontend will be defined (ie. `gra`, `bhs` also supports `all`)
     * 
     */
    public Output zone() {
        return this.zone;
    }

    private UdpFrontendArgs() {}

    private UdpFrontendArgs(UdpFrontendArgs $) {
        this.dedicatedIpfos = $.dedicatedIpfos;
        this.defaultFarmId = $.defaultFarmId;
        this.disabled = $.disabled;
        this.displayName = $.displayName;
        this.port = $.port;
        this.serviceName = $.serviceName;
        this.zone = $.zone;
    }

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

    public static final class Builder {
        private UdpFrontendArgs $;

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

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

        /**
         * @param dedicatedIpfos Only attach frontend on these ip. No restriction if null. List of Ip blocks.
         * 
         * @return builder
         * 
         */
        public Builder dedicatedIpfos(@Nullable Output> dedicatedIpfos) {
            $.dedicatedIpfos = dedicatedIpfos;
            return this;
        }

        /**
         * @param dedicatedIpfos Only attach frontend on these ip. No restriction if null. List of Ip blocks.
         * 
         * @return builder
         * 
         */
        public Builder dedicatedIpfos(List dedicatedIpfos) {
            return dedicatedIpfos(Output.of(dedicatedIpfos));
        }

        /**
         * @param dedicatedIpfos Only attach frontend on these ip. No restriction if null. List of Ip blocks.
         * 
         * @return builder
         * 
         */
        public Builder dedicatedIpfos(String... dedicatedIpfos) {
            return dedicatedIpfos(List.of(dedicatedIpfos));
        }

        /**
         * @param defaultFarmId Default UDP Farm of your frontend
         * 
         * @return builder
         * 
         */
        public Builder defaultFarmId(@Nullable Output defaultFarmId) {
            $.defaultFarmId = defaultFarmId;
            return this;
        }

        /**
         * @param defaultFarmId Default UDP Farm of your frontend
         * 
         * @return builder
         * 
         */
        public Builder defaultFarmId(Double defaultFarmId) {
            return defaultFarmId(Output.of(defaultFarmId));
        }

        /**
         * @param disabled Disable your frontend. Default: 'false'
         * 
         * @return builder
         * 
         */
        public Builder disabled(@Nullable Output disabled) {
            $.disabled = disabled;
            return this;
        }

        /**
         * @param disabled Disable your frontend. Default: 'false'
         * 
         * @return builder
         * 
         */
        public Builder disabled(Boolean disabled) {
            return disabled(Output.of(disabled));
        }

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

        /**
         * @param displayName Human readable name for your frontend
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param port Port(s) attached to your frontend. Supports single port (numerical value),
         * range (2 dash-delimited increasing ports) and comma-separated list of 'single port'
         * and/or 'range'. Each port must be in the [1;49151] range
         * 
         * @return builder
         * 
         */
        public Builder port(Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port Port(s) attached to your frontend. Supports single port (numerical value),
         * range (2 dash-delimited increasing ports) and comma-separated list of 'single port'
         * and/or 'range'. Each port must be in the [1;49151] range
         * 
         * @return builder
         * 
         */
        public Builder port(String port) {
            return port(Output.of(port));
        }

        /**
         * @param serviceName The internal name of your IP load balancing
         * 
         * @return builder
         * 
         */
        public Builder serviceName(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 zone Zone where the frontend will be defined (ie. `gra`, `bhs` also supports `all`)
         * 
         * @return builder
         * 
         */
        public Builder zone(Output zone) {
            $.zone = zone;
            return this;
        }

        /**
         * @param zone Zone where the frontend will be defined (ie. `gra`, `bhs` also supports `all`)
         * 
         * @return builder
         * 
         */
        public Builder zone(String zone) {
            return zone(Output.of(zone));
        }

        public UdpFrontendArgs build() {
            if ($.port == null) {
                throw new MissingRequiredPropertyException("UdpFrontendArgs", "port");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("UdpFrontendArgs", "serviceName");
            }
            if ($.zone == null) {
                throw new MissingRequiredPropertyException("UdpFrontendArgs", "zone");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy