com.ovhcloud.pulumi.ovh.CloudProject.outputs.NetworkPrivateSubnetIpPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH resources.
// *** 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.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.: "GRA1". 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 dhcp() {
return Optional.ofNullable(this.dhcp);
}
/**
* @return Last ip for this region.
* Changing this value recreates the subnet.
*
*/
public Optional end() {
return Optional.ofNullable(this.end);
}
/**
* @return Global network in CIDR format.
* Changing this value recreates the subnet
*
*/
public Optional network() {
return Optional.ofNullable(this.network);
}
/**
* @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);
}
/**
* @return First ip for this region.
* Changing this value recreates the subnet.
*
*/
public Optional 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 _resultValue = new NetworkPrivateSubnetIpPool();
_resultValue.dhcp = dhcp;
_resultValue.end = end;
_resultValue.network = network;
_resultValue.region = region;
_resultValue.start = start;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy