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

com.pulumi.azurenative.documentdb.inputs.IpAddressOrRangeArgs 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.documentdb.inputs;

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


/**
 * IpAddressOrRange object
 * 
 */
public final class IpAddressOrRangeArgs extends com.pulumi.resources.ResourceArgs {

    public static final IpAddressOrRangeArgs Empty = new IpAddressOrRangeArgs();

    /**
     * A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”.
     * 
     */
    @Import(name="ipAddressOrRange")
    private @Nullable Output ipAddressOrRange;

    /**
     * @return A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”.
     * 
     */
    public Optional> ipAddressOrRange() {
        return Optional.ofNullable(this.ipAddressOrRange);
    }

    private IpAddressOrRangeArgs() {}

    private IpAddressOrRangeArgs(IpAddressOrRangeArgs $) {
        this.ipAddressOrRange = $.ipAddressOrRange;
    }

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

    public static final class Builder {
        private IpAddressOrRangeArgs $;

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

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

        /**
         * @param ipAddressOrRange A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”.
         * 
         * @return builder
         * 
         */
        public Builder ipAddressOrRange(@Nullable Output ipAddressOrRange) {
            $.ipAddressOrRange = ipAddressOrRange;
            return this;
        }

        /**
         * @param ipAddressOrRange A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”.
         * 
         * @return builder
         * 
         */
        public Builder ipAddressOrRange(String ipAddressOrRange) {
            return ipAddressOrRange(Output.of(ipAddressOrRange));
        }

        public IpAddressOrRangeArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy