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

com.pulumi.kubernetes.networking.v1.outputs.IPBlockPatch Maven / Gradle / Ivy

The 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.pulumi.kubernetes.networking.v1.outputs;

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

@CustomType
public final class IPBlockPatch {
    /**
     * @return cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
     * 
     */
    private @Nullable String cidr;
    /**
     * @return except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range
     * 
     */
    private @Nullable List except;

    private IPBlockPatch() {}
    /**
     * @return cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
     * 
     */
    public Optional cidr() {
        return Optional.ofNullable(this.cidr);
    }
    /**
     * @return except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" 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(IPBlockPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String cidr;
        private @Nullable List except;
        public Builder() {}
        public Builder(IPBlockPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cidr = defaults.cidr;
    	      this.except = defaults.except;
        }

        @CustomType.Setter
        public Builder cidr(@Nullable String 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 IPBlockPatch build() {
            final var _resultValue = new IPBlockPatch();
            _resultValue.cidr = cidr;
            _resultValue.except = except;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy