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

com.pulumi.aws.ec2.inputs.VpcIpamPreviewNextCidrState 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.aws.ec2.inputs;

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


public final class VpcIpamPreviewNextCidrState extends com.pulumi.resources.ResourceArgs {

    public static final VpcIpamPreviewNextCidrState Empty = new VpcIpamPreviewNextCidrState();

    /**
     * The previewed CIDR from the pool.
     * 
     */
    @Import(name="cidr")
    private @Nullable Output cidr;

    /**
     * @return The previewed CIDR from the pool.
     * 
     */
    public Optional> cidr() {
        return Optional.ofNullable(this.cidr);
    }

    /**
     * Exclude a particular CIDR range from being returned by the pool.
     * 
     */
    @Import(name="disallowedCidrs")
    private @Nullable Output> disallowedCidrs;

    /**
     * @return Exclude a particular CIDR range from being returned by the pool.
     * 
     */
    public Optional>> disallowedCidrs() {
        return Optional.ofNullable(this.disallowedCidrs);
    }

    /**
     * The ID of the pool to which you want to assign a CIDR.
     * 
     */
    @Import(name="ipamPoolId")
    private @Nullable Output ipamPoolId;

    /**
     * @return The ID of the pool to which you want to assign a CIDR.
     * 
     */
    public Optional> ipamPoolId() {
        return Optional.ofNullable(this.ipamPoolId);
    }

    /**
     * The netmask length of the CIDR you would like to preview from the IPAM pool.
     * 
     */
    @Import(name="netmaskLength")
    private @Nullable Output netmaskLength;

    /**
     * @return The netmask length of the CIDR you would like to preview from the IPAM pool.
     * 
     */
    public Optional> netmaskLength() {
        return Optional.ofNullable(this.netmaskLength);
    }

    private VpcIpamPreviewNextCidrState() {}

    private VpcIpamPreviewNextCidrState(VpcIpamPreviewNextCidrState $) {
        this.cidr = $.cidr;
        this.disallowedCidrs = $.disallowedCidrs;
        this.ipamPoolId = $.ipamPoolId;
        this.netmaskLength = $.netmaskLength;
    }

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

    public static final class Builder {
        private VpcIpamPreviewNextCidrState $;

        public Builder() {
            $ = new VpcIpamPreviewNextCidrState();
        }

        public Builder(VpcIpamPreviewNextCidrState defaults) {
            $ = new VpcIpamPreviewNextCidrState(Objects.requireNonNull(defaults));
        }

        /**
         * @param cidr The previewed CIDR from the pool.
         * 
         * @return builder
         * 
         */
        public Builder cidr(@Nullable Output cidr) {
            $.cidr = cidr;
            return this;
        }

        /**
         * @param cidr The previewed CIDR from the pool.
         * 
         * @return builder
         * 
         */
        public Builder cidr(String cidr) {
            return cidr(Output.of(cidr));
        }

        /**
         * @param disallowedCidrs Exclude a particular CIDR range from being returned by the pool.
         * 
         * @return builder
         * 
         */
        public Builder disallowedCidrs(@Nullable Output> disallowedCidrs) {
            $.disallowedCidrs = disallowedCidrs;
            return this;
        }

        /**
         * @param disallowedCidrs Exclude a particular CIDR range from being returned by the pool.
         * 
         * @return builder
         * 
         */
        public Builder disallowedCidrs(List disallowedCidrs) {
            return disallowedCidrs(Output.of(disallowedCidrs));
        }

        /**
         * @param disallowedCidrs Exclude a particular CIDR range from being returned by the pool.
         * 
         * @return builder
         * 
         */
        public Builder disallowedCidrs(String... disallowedCidrs) {
            return disallowedCidrs(List.of(disallowedCidrs));
        }

        /**
         * @param ipamPoolId The ID of the pool to which you want to assign a CIDR.
         * 
         * @return builder
         * 
         */
        public Builder ipamPoolId(@Nullable Output ipamPoolId) {
            $.ipamPoolId = ipamPoolId;
            return this;
        }

        /**
         * @param ipamPoolId The ID of the pool to which you want to assign a CIDR.
         * 
         * @return builder
         * 
         */
        public Builder ipamPoolId(String ipamPoolId) {
            return ipamPoolId(Output.of(ipamPoolId));
        }

        /**
         * @param netmaskLength The netmask length of the CIDR you would like to preview from the IPAM pool.
         * 
         * @return builder
         * 
         */
        public Builder netmaskLength(@Nullable Output netmaskLength) {
            $.netmaskLength = netmaskLength;
            return this;
        }

        /**
         * @param netmaskLength The netmask length of the CIDR you would like to preview from the IPAM pool.
         * 
         * @return builder
         * 
         */
        public Builder netmaskLength(Integer netmaskLength) {
            return netmaskLength(Output.of(netmaskLength));
        }

        public VpcIpamPreviewNextCidrState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy