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

com.pulumi.azurenative.network.inputs.StaticCidrPropertiesArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show 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.azurenative.network.inputs;

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


/**
 * Properties of static CIDR resource.
 * 
 */
public final class StaticCidrPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final StaticCidrPropertiesArgs Empty = new StaticCidrPropertiesArgs();

    /**
     * List of IP address prefixes of the resource.
     * 
     */
    @Import(name="addressPrefixes")
    private @Nullable Output> addressPrefixes;

    /**
     * @return List of IP address prefixes of the resource.
     * 
     */
    public Optional>> addressPrefixes() {
        return Optional.ofNullable(this.addressPrefixes);
    }

    @Import(name="description")
    private @Nullable Output description;

    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
     * 
     */
    @Import(name="numberOfIPAddressesToAllocate")
    private @Nullable Output numberOfIPAddressesToAllocate;

    /**
     * @return Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
     * 
     */
    public Optional> numberOfIPAddressesToAllocate() {
        return Optional.ofNullable(this.numberOfIPAddressesToAllocate);
    }

    private StaticCidrPropertiesArgs() {}

    private StaticCidrPropertiesArgs(StaticCidrPropertiesArgs $) {
        this.addressPrefixes = $.addressPrefixes;
        this.description = $.description;
        this.numberOfIPAddressesToAllocate = $.numberOfIPAddressesToAllocate;
    }

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

    public static final class Builder {
        private StaticCidrPropertiesArgs $;

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

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

        /**
         * @param addressPrefixes List of IP address prefixes of the resource.
         * 
         * @return builder
         * 
         */
        public Builder addressPrefixes(@Nullable Output> addressPrefixes) {
            $.addressPrefixes = addressPrefixes;
            return this;
        }

        /**
         * @param addressPrefixes List of IP address prefixes of the resource.
         * 
         * @return builder
         * 
         */
        public Builder addressPrefixes(List addressPrefixes) {
            return addressPrefixes(Output.of(addressPrefixes));
        }

        /**
         * @param addressPrefixes List of IP address prefixes of the resource.
         * 
         * @return builder
         * 
         */
        public Builder addressPrefixes(String... addressPrefixes) {
            return addressPrefixes(List.of(addressPrefixes));
        }

        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param numberOfIPAddressesToAllocate Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
         * 
         * @return builder
         * 
         */
        public Builder numberOfIPAddressesToAllocate(@Nullable Output numberOfIPAddressesToAllocate) {
            $.numberOfIPAddressesToAllocate = numberOfIPAddressesToAllocate;
            return this;
        }

        /**
         * @param numberOfIPAddressesToAllocate Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.
         * 
         * @return builder
         * 
         */
        public Builder numberOfIPAddressesToAllocate(String numberOfIPAddressesToAllocate) {
            return numberOfIPAddressesToAllocate(Output.of(numberOfIPAddressesToAllocate));
        }

        public StaticCidrPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy