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

com.pulumi.ns1.inputs.AccountWhitelistState Maven / Gradle / Ivy

There is a newer version: 3.5.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.ns1.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;


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

    public static final AccountWhitelistState Empty = new AccountWhitelistState();

    /**
     * The free form name of the whitelist.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The free form name of the whitelist.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Array of IP addresses/networks from which to allow access.
     * 
     */
    @Import(name="values")
    private @Nullable Output> values;

    /**
     * @return Array of IP addresses/networks from which to allow access.
     * 
     */
    public Optional>> values() {
        return Optional.ofNullable(this.values);
    }

    private AccountWhitelistState() {}

    private AccountWhitelistState(AccountWhitelistState $) {
        this.name = $.name;
        this.values = $.values;
    }

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

    public static final class Builder {
        private AccountWhitelistState $;

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

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

        /**
         * @param name The free form name of the whitelist.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The free form name of the whitelist.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param values Array of IP addresses/networks from which to allow access.
         * 
         * @return builder
         * 
         */
        public Builder values(@Nullable Output> values) {
            $.values = values;
            return this;
        }

        /**
         * @param values Array of IP addresses/networks from which to allow access.
         * 
         * @return builder
         * 
         */
        public Builder values(List values) {
            return values(Output.of(values));
        }

        /**
         * @param values Array of IP addresses/networks from which to allow access.
         * 
         * @return builder
         * 
         */
        public Builder values(String... values) {
            return values(List.of(values));
        }

        public AccountWhitelistState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy