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

com.pulumi.azurenative.webpubsub.inputs.WebPubSubNetworkACLsArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.webpubsub.inputs;

import com.pulumi.azurenative.webpubsub.enums.ACLAction;
import com.pulumi.azurenative.webpubsub.inputs.NetworkACLArgs;
import com.pulumi.azurenative.webpubsub.inputs.PrivateEndpointACLArgs;
import com.pulumi.core.Either;
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;


/**
 * Network ACLs for the resource
 * 
 */
public final class WebPubSubNetworkACLsArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebPubSubNetworkACLsArgs Empty = new WebPubSubNetworkACLsArgs();

    /**
     * Azure Networking ACL Action.
     * 
     */
    @Import(name="defaultAction")
    private @Nullable Output> defaultAction;

    /**
     * @return Azure Networking ACL Action.
     * 
     */
    public Optional>> defaultAction() {
        return Optional.ofNullable(this.defaultAction);
    }

    /**
     * ACLs for requests from private endpoints
     * 
     */
    @Import(name="privateEndpoints")
    private @Nullable Output> privateEndpoints;

    /**
     * @return ACLs for requests from private endpoints
     * 
     */
    public Optional>> privateEndpoints() {
        return Optional.ofNullable(this.privateEndpoints);
    }

    /**
     * Network ACL
     * 
     */
    @Import(name="publicNetwork")
    private @Nullable Output publicNetwork;

    /**
     * @return Network ACL
     * 
     */
    public Optional> publicNetwork() {
        return Optional.ofNullable(this.publicNetwork);
    }

    private WebPubSubNetworkACLsArgs() {}

    private WebPubSubNetworkACLsArgs(WebPubSubNetworkACLsArgs $) {
        this.defaultAction = $.defaultAction;
        this.privateEndpoints = $.privateEndpoints;
        this.publicNetwork = $.publicNetwork;
    }

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

    public static final class Builder {
        private WebPubSubNetworkACLsArgs $;

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

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

        /**
         * @param defaultAction Azure Networking ACL Action.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(@Nullable Output> defaultAction) {
            $.defaultAction = defaultAction;
            return this;
        }

        /**
         * @param defaultAction Azure Networking ACL Action.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(Either defaultAction) {
            return defaultAction(Output.of(defaultAction));
        }

        /**
         * @param defaultAction Azure Networking ACL Action.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(String defaultAction) {
            return defaultAction(Either.ofLeft(defaultAction));
        }

        /**
         * @param defaultAction Azure Networking ACL Action.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(ACLAction defaultAction) {
            return defaultAction(Either.ofRight(defaultAction));
        }

        /**
         * @param privateEndpoints ACLs for requests from private endpoints
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(@Nullable Output> privateEndpoints) {
            $.privateEndpoints = privateEndpoints;
            return this;
        }

        /**
         * @param privateEndpoints ACLs for requests from private endpoints
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(List privateEndpoints) {
            return privateEndpoints(Output.of(privateEndpoints));
        }

        /**
         * @param privateEndpoints ACLs for requests from private endpoints
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(PrivateEndpointACLArgs... privateEndpoints) {
            return privateEndpoints(List.of(privateEndpoints));
        }

        /**
         * @param publicNetwork Network ACL
         * 
         * @return builder
         * 
         */
        public Builder publicNetwork(@Nullable Output publicNetwork) {
            $.publicNetwork = publicNetwork;
            return this;
        }

        /**
         * @param publicNetwork Network ACL
         * 
         * @return builder
         * 
         */
        public Builder publicNetwork(NetworkACLArgs publicNetwork) {
            return publicNetwork(Output.of(publicNetwork));
        }

        public WebPubSubNetworkACLsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy