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

com.ovhcloud.pulumi.ovh.CloudProject.inputs.NetworkPrivateSubnetIpPoolArgs 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.CloudProject.inputs;

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


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

    public static final NetworkPrivateSubnetIpPoolArgs Empty = new NetworkPrivateSubnetIpPoolArgs();

    /**
     * Enable DHCP.
     * Changing this forces a new resource to be created. Defaults to false.
     * _
     * 
     */
    @Import(name="dhcp")
    private @Nullable Output dhcp;

    /**
     * @return Enable DHCP.
     * Changing this forces a new resource to be created. Defaults to false.
     * _
     * 
     */
    public Optional> dhcp() {
        return Optional.ofNullable(this.dhcp);
    }

    /**
     * Last ip for this region.
     * Changing this value recreates the subnet.
     * 
     */
    @Import(name="end")
    private @Nullable Output end;

    /**
     * @return Last ip for this region.
     * Changing this value recreates the subnet.
     * 
     */
    public Optional> end() {
        return Optional.ofNullable(this.end);
    }

    /**
     * Global network in CIDR format.
     * Changing this value recreates the subnet
     * 
     */
    @Import(name="network")
    private @Nullable Output network;

    /**
     * @return Global network in CIDR format.
     * Changing this value recreates the subnet
     * 
     */
    public Optional> network() {
        return Optional.ofNullable(this.network);
    }

    /**
     * The region in which the network subnet will be created.
     * Ex.: "GRA1". Changing this value recreates the resource.
     * 
     */
    @Import(name="region")
    private @Nullable Output region;

    /**
     * @return The region in which the network subnet will be created.
     * Ex.: "GRA1". Changing this value recreates the resource.
     * 
     */
    public Optional> region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * First ip for this region.
     * Changing this value recreates the subnet.
     * 
     */
    @Import(name="start")
    private @Nullable Output start;

    /**
     * @return First ip for this region.
     * Changing this value recreates the subnet.
     * 
     */
    public Optional> start() {
        return Optional.ofNullable(this.start);
    }

    private NetworkPrivateSubnetIpPoolArgs() {}

    private NetworkPrivateSubnetIpPoolArgs(NetworkPrivateSubnetIpPoolArgs $) {
        this.dhcp = $.dhcp;
        this.end = $.end;
        this.network = $.network;
        this.region = $.region;
        this.start = $.start;
    }

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

    public static final class Builder {
        private NetworkPrivateSubnetIpPoolArgs $;

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

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

        /**
         * @param dhcp Enable DHCP.
         * Changing this forces a new resource to be created. Defaults to false.
         * _
         * 
         * @return builder
         * 
         */
        public Builder dhcp(@Nullable Output dhcp) {
            $.dhcp = dhcp;
            return this;
        }

        /**
         * @param dhcp Enable DHCP.
         * Changing this forces a new resource to be created. Defaults to false.
         * _
         * 
         * @return builder
         * 
         */
        public Builder dhcp(Boolean dhcp) {
            return dhcp(Output.of(dhcp));
        }

        /**
         * @param end Last ip for this region.
         * Changing this value recreates the subnet.
         * 
         * @return builder
         * 
         */
        public Builder end(@Nullable Output end) {
            $.end = end;
            return this;
        }

        /**
         * @param end Last ip for this region.
         * Changing this value recreates the subnet.
         * 
         * @return builder
         * 
         */
        public Builder end(String end) {
            return end(Output.of(end));
        }

        /**
         * @param network Global network in CIDR format.
         * Changing this value recreates the subnet
         * 
         * @return builder
         * 
         */
        public Builder network(@Nullable Output network) {
            $.network = network;
            return this;
        }

        /**
         * @param network Global network in CIDR format.
         * Changing this value recreates the subnet
         * 
         * @return builder
         * 
         */
        public Builder network(String network) {
            return network(Output.of(network));
        }

        /**
         * @param region The region in which the network subnet will be created.
         * Ex.: "GRA1". Changing this value recreates the resource.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable Output region) {
            $.region = region;
            return this;
        }

        /**
         * @param region The region in which the network subnet will be created.
         * Ex.: "GRA1". Changing this value recreates the resource.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param start First ip for this region.
         * Changing this value recreates the subnet.
         * 
         * @return builder
         * 
         */
        public Builder start(@Nullable Output start) {
            $.start = start;
            return this;
        }

        /**
         * @param start First ip for this region.
         * Changing this value recreates the subnet.
         * 
         * @return builder
         * 
         */
        public Builder start(String start) {
            return start(Output.of(start));
        }

        public NetworkPrivateSubnetIpPoolArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy