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

com.pulumi.azurenative.signalrservice.inputs.SignalRNetworkACLsArgs 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.signalrservice.inputs;

import com.pulumi.azurenative.signalrservice.enums.ACLAction;
import com.pulumi.azurenative.signalrservice.inputs.NetworkACLArgs;
import com.pulumi.azurenative.signalrservice.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 SignalRNetworkACLsArgs extends com.pulumi.resources.ResourceArgs {

    public static final SignalRNetworkACLsArgs Empty = new SignalRNetworkACLsArgs();

    /**
     * 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 SignalRNetworkACLsArgs() {}

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

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

    public static final class Builder {
        private SignalRNetworkACLsArgs $;

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

        public Builder(SignalRNetworkACLsArgs defaults) {
            $ = new SignalRNetworkACLsArgs(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 SignalRNetworkACLsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy