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

com.pulumi.linode.inputs.LkeClusterControlPlaneAclArgs Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.linode.inputs.LkeClusterControlPlaneAclAddressArgs;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final LkeClusterControlPlaneAclArgs Empty = new LkeClusterControlPlaneAclArgs();

    /**
     * A list of ip addresses to allow.
     * 
     */
    @Import(name="addresses")
    private @Nullable Output> addresses;

    /**
     * @return A list of ip addresses to allow.
     * 
     */
    public Optional>> addresses() {
        return Optional.ofNullable(this.addresses);
    }

    /**
     * Defines default policy. A value of true results in a default policy of DENY. A value of false results in default policy of ALLOW, and has the same effect as delete the ACL configuration.
     * 
     * * `addresses` - (Optional) A list of ip addresses to allow.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Defines default policy. A value of true results in a default policy of DENY. A value of false results in default policy of ALLOW, and has the same effect as delete the ACL configuration.
     * 
     * * `addresses` - (Optional) A list of ip addresses to allow.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    private LkeClusterControlPlaneAclArgs() {}

    private LkeClusterControlPlaneAclArgs(LkeClusterControlPlaneAclArgs $) {
        this.addresses = $.addresses;
        this.enabled = $.enabled;
    }

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

    public static final class Builder {
        private LkeClusterControlPlaneAclArgs $;

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

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

        /**
         * @param addresses A list of ip addresses to allow.
         * 
         * @return builder
         * 
         */
        public Builder addresses(@Nullable Output> addresses) {
            $.addresses = addresses;
            return this;
        }

        /**
         * @param addresses A list of ip addresses to allow.
         * 
         * @return builder
         * 
         */
        public Builder addresses(List addresses) {
            return addresses(Output.of(addresses));
        }

        /**
         * @param addresses A list of ip addresses to allow.
         * 
         * @return builder
         * 
         */
        public Builder addresses(LkeClusterControlPlaneAclAddressArgs... addresses) {
            return addresses(List.of(addresses));
        }

        /**
         * @param enabled Defines default policy. A value of true results in a default policy of DENY. A value of false results in default policy of ALLOW, and has the same effect as delete the ACL configuration.
         * 
         * * `addresses` - (Optional) A list of ip addresses to allow.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Defines default policy. A value of true results in a default policy of DENY. A value of false results in default policy of ALLOW, and has the same effect as delete the ACL configuration.
         * 
         * * `addresses` - (Optional) A list of ip addresses to allow.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        public LkeClusterControlPlaneAclArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy