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

com.pulumi.aws.ec2.inputs.VpcIpamPoolCidrState 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.aws.ec2.inputs.VpcIpamPoolCidrCidrAuthorizationContextArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VpcIpamPoolCidrState Empty = new VpcIpamPoolCidrState();

    /**
     * The CIDR you want to assign to the pool. Conflicts with `netmask_length`.
     * 
     */
    @Import(name="cidr")
    private @Nullable Output cidr;

    /**
     * @return The CIDR you want to assign to the pool. Conflicts with `netmask_length`.
     * 
     */
    public Optional> cidr() {
        return Optional.ofNullable(this.cidr);
    }

    /**
     * A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. This is not stored in the state file. See cidr_authorization_context for more information.
     * 
     */
    @Import(name="cidrAuthorizationContext")
    private @Nullable Output cidrAuthorizationContext;

    /**
     * @return A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. This is not stored in the state file. See cidr_authorization_context for more information.
     * 
     */
    public Optional> cidrAuthorizationContext() {
        return Optional.ofNullable(this.cidrAuthorizationContext);
    }

    /**
     * The unique ID generated by AWS for the pool cidr. Typically this is the resource `id` but this attribute was added to the API calls after the fact and is therefore not used as the resource id.
     * 
     */
    @Import(name="ipamPoolCidrId")
    private @Nullable Output ipamPoolCidrId;

    /**
     * @return The unique ID generated by AWS for the pool cidr. Typically this is the resource `id` but this attribute was added to the API calls after the fact and is therefore not used as the resource id.
     * 
     */
    public Optional> ipamPoolCidrId() {
        return Optional.ofNullable(this.ipamPoolCidrId);
    }

    /**
     * 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);
    }

    /**
     * If provided, the cidr provisioned into the specified pool will be the next available cidr given this declared netmask length. Conflicts with `cidr`.
     * 
     */
    @Import(name="netmaskLength")
    private @Nullable Output netmaskLength;

    /**
     * @return If provided, the cidr provisioned into the specified pool will be the next available cidr given this declared netmask length. Conflicts with `cidr`.
     * 
     */
    public Optional> netmaskLength() {
        return Optional.ofNullable(this.netmaskLength);
    }

    private VpcIpamPoolCidrState() {}

    private VpcIpamPoolCidrState(VpcIpamPoolCidrState $) {
        this.cidr = $.cidr;
        this.cidrAuthorizationContext = $.cidrAuthorizationContext;
        this.ipamPoolCidrId = $.ipamPoolCidrId;
        this.ipamPoolId = $.ipamPoolId;
        this.netmaskLength = $.netmaskLength;
    }

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

    public static final class Builder {
        private VpcIpamPoolCidrState $;

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

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

        /**
         * @param cidr The CIDR you want to assign to the pool. Conflicts with `netmask_length`.
         * 
         * @return builder
         * 
         */
        public Builder cidr(@Nullable Output cidr) {
            $.cidr = cidr;
            return this;
        }

        /**
         * @param cidr The CIDR you want to assign to the pool. Conflicts with `netmask_length`.
         * 
         * @return builder
         * 
         */
        public Builder cidr(String cidr) {
            return cidr(Output.of(cidr));
        }

        /**
         * @param cidrAuthorizationContext A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. This is not stored in the state file. See cidr_authorization_context for more information.
         * 
         * @return builder
         * 
         */
        public Builder cidrAuthorizationContext(@Nullable Output cidrAuthorizationContext) {
            $.cidrAuthorizationContext = cidrAuthorizationContext;
            return this;
        }

        /**
         * @param cidrAuthorizationContext A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. This is not stored in the state file. See cidr_authorization_context for more information.
         * 
         * @return builder
         * 
         */
        public Builder cidrAuthorizationContext(VpcIpamPoolCidrCidrAuthorizationContextArgs cidrAuthorizationContext) {
            return cidrAuthorizationContext(Output.of(cidrAuthorizationContext));
        }

        /**
         * @param ipamPoolCidrId The unique ID generated by AWS for the pool cidr. Typically this is the resource `id` but this attribute was added to the API calls after the fact and is therefore not used as the resource id.
         * 
         * @return builder
         * 
         */
        public Builder ipamPoolCidrId(@Nullable Output ipamPoolCidrId) {
            $.ipamPoolCidrId = ipamPoolCidrId;
            return this;
        }

        /**
         * @param ipamPoolCidrId The unique ID generated by AWS for the pool cidr. Typically this is the resource `id` but this attribute was added to the API calls after the fact and is therefore not used as the resource id.
         * 
         * @return builder
         * 
         */
        public Builder ipamPoolCidrId(String ipamPoolCidrId) {
            return ipamPoolCidrId(Output.of(ipamPoolCidrId));
        }

        /**
         * @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 If provided, the cidr provisioned into the specified pool will be the next available cidr given this declared netmask length. Conflicts with `cidr`.
         * 
         * @return builder
         * 
         */
        public Builder netmaskLength(@Nullable Output netmaskLength) {
            $.netmaskLength = netmaskLength;
            return this;
        }

        /**
         * @param netmaskLength If provided, the cidr provisioned into the specified pool will be the next available cidr given this declared netmask length. Conflicts with `cidr`.
         * 
         * @return builder
         * 
         */
        public Builder netmaskLength(Integer netmaskLength) {
            return netmaskLength(Output.of(netmaskLength));
        }

        public VpcIpamPoolCidrState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy