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

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

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


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

    public static final NetworkPrivateSubnetArgs Empty = new NetworkPrivateSubnetArgs();

    /**
     * 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", required=true)
    private Output end;

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

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

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

    /**
     * The id of the network.
     * Changing this forces a new resource to be created.
     * 
     */
    @Import(name="networkId", required=true)
    private Output networkId;

    /**
     * @return The id of the network.
     * Changing this forces a new resource to be created.
     * 
     */
    public Output networkId() {
        return this.networkId;
    }

    /**
     * Set to true if you don't want to set a default gateway IP.
     * Changing this value recreates the resource. Defaults to false.
     * 
     */
    @Import(name="noGateway")
    private @Nullable Output noGateway;

    /**
     * @return Set to true if you don't want to set a default gateway IP.
     * Changing this value recreates the resource. Defaults to false.
     * 
     */
    public Optional> noGateway() {
        return Optional.ofNullable(this.noGateway);
    }

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

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

    /**
     * The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

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

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

    private NetworkPrivateSubnetArgs() {}

    private NetworkPrivateSubnetArgs(NetworkPrivateSubnetArgs $) {
        this.dhcp = $.dhcp;
        this.end = $.end;
        this.network = $.network;
        this.networkId = $.networkId;
        this.noGateway = $.noGateway;
        this.region = $.region;
        this.serviceName = $.serviceName;
        this.start = $.start;
    }

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

    public static final class Builder {
        private NetworkPrivateSubnetArgs $;

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

        public Builder(NetworkPrivateSubnetArgs defaults) {
            $ = new NetworkPrivateSubnetArgs(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(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(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 networkId The id of the network.
         * Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkId(Output networkId) {
            $.networkId = networkId;
            return this;
        }

        /**
         * @param networkId The id of the network.
         * Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkId(String networkId) {
            return networkId(Output.of(networkId));
        }

        /**
         * @param noGateway Set to true if you don't want to set a default gateway IP.
         * Changing this value recreates the resource. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder noGateway(@Nullable Output noGateway) {
            $.noGateway = noGateway;
            return this;
        }

        /**
         * @param noGateway Set to true if you don't want to set a default gateway IP.
         * Changing this value recreates the resource. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder noGateway(Boolean noGateway) {
            return noGateway(Output.of(noGateway));
        }

        /**
         * @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(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 serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param start First ip for this region.
         * Changing this value recreates the subnet.
         * 
         * @return builder
         * 
         */
        public Builder start(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 NetworkPrivateSubnetArgs build() {
            if ($.end == null) {
                throw new MissingRequiredPropertyException("NetworkPrivateSubnetArgs", "end");
            }
            if ($.network == null) {
                throw new MissingRequiredPropertyException("NetworkPrivateSubnetArgs", "network");
            }
            if ($.networkId == null) {
                throw new MissingRequiredPropertyException("NetworkPrivateSubnetArgs", "networkId");
            }
            if ($.region == null) {
                throw new MissingRequiredPropertyException("NetworkPrivateSubnetArgs", "region");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("NetworkPrivateSubnetArgs", "serviceName");
            }
            if ($.start == null) {
                throw new MissingRequiredPropertyException("NetworkPrivateSubnetArgs", "start");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy