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

com.pulumi.azure.webpubsub.inputs.NetworkAclPublicNetworkArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.webpubsub.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 NetworkAclPublicNetworkArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkAclPublicNetworkArgs Empty = new NetworkAclPublicNetworkArgs();

    /**
     * The allowed request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * 
     */
    @Import(name="allowedRequestTypes")
    private @Nullable Output> allowedRequestTypes;

    /**
     * @return The allowed request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * 
     */
    public Optional>> allowedRequestTypes() {
        return Optional.ofNullable(this.allowedRequestTypes);
    }

    /**
     * The denied request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * 
     * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
     * 
     */
    @Import(name="deniedRequestTypes")
    private @Nullable Output> deniedRequestTypes;

    /**
     * @return The denied request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * 
     * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
     * 
     */
    public Optional>> deniedRequestTypes() {
        return Optional.ofNullable(this.deniedRequestTypes);
    }

    private NetworkAclPublicNetworkArgs() {}

    private NetworkAclPublicNetworkArgs(NetworkAclPublicNetworkArgs $) {
        this.allowedRequestTypes = $.allowedRequestTypes;
        this.deniedRequestTypes = $.deniedRequestTypes;
    }

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

    public static final class Builder {
        private NetworkAclPublicNetworkArgs $;

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

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

        /**
         * @param allowedRequestTypes The allowed request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
         * 
         * @return builder
         * 
         */
        public Builder allowedRequestTypes(@Nullable Output> allowedRequestTypes) {
            $.allowedRequestTypes = allowedRequestTypes;
            return this;
        }

        /**
         * @param allowedRequestTypes The allowed request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
         * 
         * @return builder
         * 
         */
        public Builder allowedRequestTypes(List allowedRequestTypes) {
            return allowedRequestTypes(Output.of(allowedRequestTypes));
        }

        /**
         * @param allowedRequestTypes The allowed request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
         * 
         * @return builder
         * 
         */
        public Builder allowedRequestTypes(String... allowedRequestTypes) {
            return allowedRequestTypes(List.of(allowedRequestTypes));
        }

        /**
         * @param deniedRequestTypes The denied request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
         * 
         * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
         * 
         * @return builder
         * 
         */
        public Builder deniedRequestTypes(@Nullable Output> deniedRequestTypes) {
            $.deniedRequestTypes = deniedRequestTypes;
            return this;
        }

        /**
         * @param deniedRequestTypes The denied request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
         * 
         * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
         * 
         * @return builder
         * 
         */
        public Builder deniedRequestTypes(List deniedRequestTypes) {
            return deniedRequestTypes(Output.of(deniedRequestTypes));
        }

        /**
         * @param deniedRequestTypes The denied request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
         * 
         * > **NOTE:** When `default_action` is `Allow`, `allowed_request_types`cannot be set. When `default_action` is `Deny`, `denied_request_types`cannot be set.
         * 
         * @return builder
         * 
         */
        public Builder deniedRequestTypes(String... deniedRequestTypes) {
            return deniedRequestTypes(List.of(deniedRequestTypes));
        }

        public NetworkAclPublicNetworkArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy