com.pulumi.kubernetes.extensions.v1beta1.outputs.IPBlock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes 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.pulumi.kubernetes.extensions.v1beta1.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 javax.annotation.Nullable;
@CustomType
public final class IPBlock {
/**
* @return CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
*
*/
private String cidr;
/**
* @return Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
*
*/
private @Nullable List except;
private IPBlock() {}
/**
* @return CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
*
*/
public String cidr() {
return this.cidr;
}
/**
* @return Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
*
*/
public List except() {
return this.except == null ? List.of() : this.except;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IPBlock defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String cidr;
private @Nullable List except;
public Builder() {}
public Builder(IPBlock defaults) {
Objects.requireNonNull(defaults);
this.cidr = defaults.cidr;
this.except = defaults.except;
}
@CustomType.Setter
public Builder cidr(String cidr) {
if (cidr == null) {
throw new MissingRequiredPropertyException("IPBlock", "cidr");
}
this.cidr = cidr;
return this;
}
@CustomType.Setter
public Builder except(@Nullable List except) {
this.except = except;
return this;
}
public Builder except(String... except) {
return except(List.of(except));
}
public IPBlock build() {
final var _resultValue = new IPBlock();
_resultValue.cidr = cidr;
_resultValue.except = except;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy