sdk/java/src/main/java/com/pulumi/ovh/CloudProject/outputs/NetworkPrivateSubnetIpPool.java
// *** 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.pulumi.ovh.CloudProject.outputs;

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

@CustomType
public final class NetworkPrivateSubnetIpPool {
    /**
     * @return Enable DHCP.
     * Changing this forces a new resource to be created. Defaults to false.
     * _
     * 
     */
    private @Nullable Boolean dhcp;
    /**
     * @return Last ip for this region.
     * Changing this value recreates the subnet.
     * 
     */
    private @Nullable String end;
    /**
     * @return Global network in CIDR format.
     * Changing this value recreates the subnet
     * 
     */
    private @Nullable String network;
    /**
     * @return The region in which the network subnet will be created.
     * Ex.: &#34;GRA1&#34;. Changing this value recreates the resource.
     * 
     */
    private @Nullable String region;
    /**
     * @return First ip for this region.
     * Changing this value recreates the subnet.
     * 
     */
    private @Nullable String start;

    private NetworkPrivateSubnetIpPool() {}
    /**
     * @return Enable DHCP.
     * Changing this forces a new resource to be created. Defaults to false.
     * _
     * 
     */
    public Optional<Boolean> dhcp() {
        return Optional.ofNullable(this.dhcp);
    }
    /**
     * @return Last ip for this region.
     * Changing this value recreates the subnet.
     * 
     */
    public Optional<String> end() {
        return Optional.ofNullable(this.end);
    }
    /**
     * @return Global network in CIDR format.
     * Changing this value recreates the subnet
     * 
     */
    public Optional<String> network() {
        return Optional.ofNullable(this.network);
    }
    /**
     * @return The region in which the network subnet will be created.
     * Ex.: &#34;GRA1&#34;. Changing this value recreates the resource.
     * 
     */
    public Optional<String> region() {
        return Optional.ofNullable(this.region);
    }
    /**
     * @return First ip for this region.
     * Changing this value recreates the subnet.
     * 
     */
    public Optional<String> start() {
        return Optional.ofNullable(this.start);
    }

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

    public static Builder builder(NetworkPrivateSubnetIpPool defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean dhcp;
        private @Nullable String end;
        private @Nullable String network;
        private @Nullable String region;
        private @Nullable String start;
        public Builder() {}
        public Builder(NetworkPrivateSubnetIpPool defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dhcp = defaults.dhcp;
    	      this.end = defaults.end;
    	      this.network = defaults.network;
    	      this.region = defaults.region;
    	      this.start = defaults.start;
        }

        @CustomType.Setter
        public Builder dhcp(@Nullable Boolean dhcp) {
            this.dhcp = dhcp;
            return this;
        }
        @CustomType.Setter
        public Builder end(@Nullable String end) {
            this.end = end;
            return this;
        }
        @CustomType.Setter
        public Builder network(@Nullable String network) {
            this.network = network;
            return this;
        }
        @CustomType.Setter
        public Builder region(@Nullable String region) {
            this.region = region;
            return this;
        }
        @CustomType.Setter
        public Builder start(@Nullable String start) {
            this.start = start;
            return this;
        }
        public NetworkPrivateSubnetIpPool build() {
            final var o = new NetworkPrivateSubnetIpPool();
            o.dhcp = dhcp;
            o.end = end;
            o.network = network;
            o.region = region;
            o.start = start;
            return o;
        }
    }
}
