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

com.ovhcloud.pulumi.ovh.IpLoadBalancing.VrackNetworkArgs 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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VrackNetworkArgs Empty = new VrackNetworkArgs();

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

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

    /**
     * This attribute is there for documentation purpose only and isnt passed to the OVHcloud API as it may conflicts with http/tcp farms `vrack_network_id` attribute
     * 
     */
    @Import(name="farmIds")
    private @Nullable Output> farmIds;

    /**
     * @return This attribute is there for documentation purpose only and isnt passed to the OVHcloud API as it may conflicts with http/tcp farms `vrack_network_id` attribute
     * 
     */
    public Optional>> farmIds() {
        return Optional.ofNullable(this.farmIds);
    }

    /**
     * An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
     * 
     */
    @Import(name="natIp", required=true)
    private Output natIp;

    /**
     * @return An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
     * 
     */
    public Output natIp() {
        return this.natIp;
    }

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

    /**
     * IP block of the private network in the vRack
     * 
     */
    @Import(name="subnet", required=true)
    private Output subnet;

    /**
     * @return IP block of the private network in the vRack
     * 
     */
    public Output subnet() {
        return this.subnet;
    }

    /**
     * VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
     * 
     */
    @Import(name="vlan")
    private @Nullable Output vlan;

    /**
     * @return VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
     * 
     */
    public Optional> vlan() {
        return Optional.ofNullable(this.vlan);
    }

    private VrackNetworkArgs() {}

    private VrackNetworkArgs(VrackNetworkArgs $) {
        this.displayName = $.displayName;
        this.farmIds = $.farmIds;
        this.natIp = $.natIp;
        this.serviceName = $.serviceName;
        this.subnet = $.subnet;
        this.vlan = $.vlan;
    }

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

    public static final class Builder {
        private VrackNetworkArgs $;

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

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

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

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

        /**
         * @param farmIds This attribute is there for documentation purpose only and isnt passed to the OVHcloud API as it may conflicts with http/tcp farms `vrack_network_id` attribute
         * 
         * @return builder
         * 
         */
        public Builder farmIds(@Nullable Output> farmIds) {
            $.farmIds = farmIds;
            return this;
        }

        /**
         * @param farmIds This attribute is there for documentation purpose only and isnt passed to the OVHcloud API as it may conflicts with http/tcp farms `vrack_network_id` attribute
         * 
         * @return builder
         * 
         */
        public Builder farmIds(List farmIds) {
            return farmIds(Output.of(farmIds));
        }

        /**
         * @param farmIds This attribute is there for documentation purpose only and isnt passed to the OVHcloud API as it may conflicts with http/tcp farms `vrack_network_id` attribute
         * 
         * @return builder
         * 
         */
        public Builder farmIds(Integer... farmIds) {
            return farmIds(List.of(farmIds));
        }

        /**
         * @param natIp An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
         * 
         * @return builder
         * 
         */
        public Builder natIp(Output natIp) {
            $.natIp = natIp;
            return this;
        }

        /**
         * @param natIp An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
         * 
         * @return builder
         * 
         */
        public Builder natIp(String natIp) {
            return natIp(Output.of(natIp));
        }

        /**
         * @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 subnet IP block of the private network in the vRack
         * 
         * @return builder
         * 
         */
        public Builder subnet(Output subnet) {
            $.subnet = subnet;
            return this;
        }

        /**
         * @param subnet IP block of the private network in the vRack
         * 
         * @return builder
         * 
         */
        public Builder subnet(String subnet) {
            return subnet(Output.of(subnet));
        }

        /**
         * @param vlan VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
         * 
         * @return builder
         * 
         */
        public Builder vlan(@Nullable Output vlan) {
            $.vlan = vlan;
            return this;
        }

        /**
         * @param vlan VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
         * 
         * @return builder
         * 
         */
        public Builder vlan(Integer vlan) {
            return vlan(Output.of(vlan));
        }

        public VrackNetworkArgs build() {
            if ($.natIp == null) {
                throw new MissingRequiredPropertyException("VrackNetworkArgs", "natIp");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("VrackNetworkArgs", "serviceName");
            }
            if ($.subnet == null) {
                throw new MissingRequiredPropertyException("VrackNetworkArgs", "subnet");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy