
com.pulumi.azurenative.network.outputs.IpamPoolPropertiesResponse Maven / Gradle / Ivy
// *** 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.azurenative.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IpamPoolPropertiesResponse {
/**
* @return List of IP address prefixes of the resource.
*
*/
private List addressPrefixes;
private @Nullable String description;
/**
* @return String representing a friendly name for the resource.
*
*/
private @Nullable String displayName;
/**
* @return List of IP address type for the IpamPool.
*
*/
private List ipAddressType;
/**
* @return String representing parent IpamPool resource name. If empty the IpamPool will be a root pool.
*
*/
private @Nullable String parentPoolName;
/**
* @return Provisioning states of a resource.
*
*/
private String provisioningState;
private IpamPoolPropertiesResponse() {}
/**
* @return List of IP address prefixes of the resource.
*
*/
public List addressPrefixes() {
return this.addressPrefixes;
}
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return String representing a friendly name for the resource.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return List of IP address type for the IpamPool.
*
*/
public List ipAddressType() {
return this.ipAddressType;
}
/**
* @return String representing parent IpamPool resource name. If empty the IpamPool will be a root pool.
*
*/
public Optional parentPoolName() {
return Optional.ofNullable(this.parentPoolName);
}
/**
* @return Provisioning states of a resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IpamPoolPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List addressPrefixes;
private @Nullable String description;
private @Nullable String displayName;
private List ipAddressType;
private @Nullable String parentPoolName;
private String provisioningState;
public Builder() {}
public Builder(IpamPoolPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.addressPrefixes = defaults.addressPrefixes;
this.description = defaults.description;
this.displayName = defaults.displayName;
this.ipAddressType = defaults.ipAddressType;
this.parentPoolName = defaults.parentPoolName;
this.provisioningState = defaults.provisioningState;
}
@CustomType.Setter
public Builder addressPrefixes(List addressPrefixes) {
if (addressPrefixes == null) {
throw new MissingRequiredPropertyException("IpamPoolPropertiesResponse", "addressPrefixes");
}
this.addressPrefixes = addressPrefixes;
return this;
}
public Builder addressPrefixes(String... addressPrefixes) {
return addressPrefixes(List.of(addressPrefixes));
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder ipAddressType(List ipAddressType) {
if (ipAddressType == null) {
throw new MissingRequiredPropertyException("IpamPoolPropertiesResponse", "ipAddressType");
}
this.ipAddressType = ipAddressType;
return this;
}
public Builder ipAddressType(String... ipAddressType) {
return ipAddressType(List.of(ipAddressType));
}
@CustomType.Setter
public Builder parentPoolName(@Nullable String parentPoolName) {
this.parentPoolName = parentPoolName;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("IpamPoolPropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
public IpamPoolPropertiesResponse build() {
final var _resultValue = new IpamPoolPropertiesResponse();
_resultValue.addressPrefixes = addressPrefixes;
_resultValue.description = description;
_resultValue.displayName = displayName;
_resultValue.ipAddressType = ipAddressType;
_resultValue.parentPoolName = parentPoolName;
_resultValue.provisioningState = provisioningState;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy