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

com.pulumi.azurenative.webpubsub.inputs.PrivateEndpointACLArgs 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.WebPubSubRequestType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ACL for a private endpoint
 * 
 */
public final class PrivateEndpointACLArgs extends com.pulumi.resources.ResourceArgs {

    public static final PrivateEndpointACLArgs Empty = new PrivateEndpointACLArgs();

    /**
     * Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
     * 
     */
    @Import(name="allow")
    private @Nullable Output>> allow;

    /**
     * @return Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
     * 
     */
    public Optional>>> allow() {
        return Optional.ofNullable(this.allow);
    }

    /**
     * Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
     * 
     */
    @Import(name="deny")
    private @Nullable Output>> deny;

    /**
     * @return Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
     * 
     */
    public Optional>>> deny() {
        return Optional.ofNullable(this.deny);
    }

    /**
     * Name of the private endpoint connection
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the private endpoint connection
     * 
     */
    public Output name() {
        return this.name;
    }

    private PrivateEndpointACLArgs() {}

    private PrivateEndpointACLArgs(PrivateEndpointACLArgs $) {
        this.allow = $.allow;
        this.deny = $.deny;
        this.name = $.name;
    }

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

    public static final class Builder {
        private PrivateEndpointACLArgs $;

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

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

        /**
         * @param allow Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
         * 
         * @return builder
         * 
         */
        public Builder allow(@Nullable Output>> allow) {
            $.allow = allow;
            return this;
        }

        /**
         * @param allow Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
         * 
         * @return builder
         * 
         */
        public Builder allow(List> allow) {
            return allow(Output.of(allow));
        }

        /**
         * @param allow Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
         * 
         * @return builder
         * 
         */
        public Builder allow(Either... allow) {
            return allow(List.of(allow));
        }

        /**
         * @param deny Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
         * 
         * @return builder
         * 
         */
        public Builder deny(@Nullable Output>> deny) {
            $.deny = deny;
            return this;
        }

        /**
         * @param deny Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
         * 
         * @return builder
         * 
         */
        public Builder deny(List> deny) {
            return deny(Output.of(deny));
        }

        /**
         * @param deny Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
         * 
         * @return builder
         * 
         */
        public Builder deny(Either... deny) {
            return deny(List.of(deny));
        }

        /**
         * @param name Name of the private endpoint connection
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the private endpoint connection
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public PrivateEndpointACLArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("PrivateEndpointACLArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy