// *** 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.signalr.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class ServiceNetworkAclPublicNetwork {
    /**
     * @return The allowed request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * 
     * &gt; **Note:** When `default_action` is `Allow`, `allowed_request_types`cannot be set.
     * 
     */
    private @Nullable List<String> allowedRequestTypes;
    /**
     * @return The denied request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * 
     * &gt; **Note:** When `default_action` is `Deny`, `denied_request_types`cannot be set.
     * 
     * &gt; **Note:** `allowed_request_types` - (Optional) and `denied_request_types` cannot be set together.
     * 
     */
    private @Nullable List<String> deniedRequestTypes;

    private ServiceNetworkAclPublicNetwork() {}
    /**
     * @return The allowed request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * 
     * &gt; **Note:** When `default_action` is `Allow`, `allowed_request_types`cannot be set.
     * 
     */
    public List<String> allowedRequestTypes() {
        return this.allowedRequestTypes == null ? List.of() : this.allowedRequestTypes;
    }
    /**
     * @return The denied request types for the public network. Possible values are `ClientConnection`, `ServerConnection`, `RESTAPI` and `Trace`.
     * 
     * &gt; **Note:** When `default_action` is `Deny`, `denied_request_types`cannot be set.
     * 
     * &gt; **Note:** `allowed_request_types` - (Optional) and `denied_request_types` cannot be set together.
     * 
     */
    public List<String> deniedRequestTypes() {
        return this.deniedRequestTypes == null ? List.of() : this.deniedRequestTypes;
    }

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

    public static Builder builder(ServiceNetworkAclPublicNetwork defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<String> allowedRequestTypes;
        private @Nullable List<String> deniedRequestTypes;
        public Builder() {}
        public Builder(ServiceNetworkAclPublicNetwork defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedRequestTypes = defaults.allowedRequestTypes;
    	      this.deniedRequestTypes = defaults.deniedRequestTypes;
        }

        @CustomType.Setter
        public Builder allowedRequestTypes(@Nullable List<String> allowedRequestTypes) {
            this.allowedRequestTypes = allowedRequestTypes;
            return this;
        }
        public Builder allowedRequestTypes(String... allowedRequestTypes) {
            return allowedRequestTypes(List.of(allowedRequestTypes));
        }
        @CustomType.Setter
        public Builder deniedRequestTypes(@Nullable List<String> deniedRequestTypes) {
            this.deniedRequestTypes = deniedRequestTypes;
            return this;
        }
        public Builder deniedRequestTypes(String... deniedRequestTypes) {
            return deniedRequestTypes(List.of(deniedRequestTypes));
        }
        public ServiceNetworkAclPublicNetwork build() {
            final var o = new ServiceNetworkAclPublicNetwork();
            o.allowedRequestTypes = allowedRequestTypes;
            o.deniedRequestTypes = deniedRequestTypes;
            return o;
        }
    }
}
