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

com.pulumi.azure.signalr.ServiceNetworkAclArgs 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.signalr;

import com.pulumi.azure.signalr.inputs.ServiceNetworkAclPrivateEndpointArgs;
import com.pulumi.azure.signalr.inputs.ServiceNetworkAclPublicNetworkArgs;
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;


public final class ServiceNetworkAclArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceNetworkAclArgs Empty = new ServiceNetworkAclArgs();

    /**
     * The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`.
     * 
     */
    @Import(name="defaultAction", required=true)
    private Output defaultAction;

    /**
     * @return The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`.
     * 
     */
    public Output defaultAction() {
        return this.defaultAction;
    }

    /**
     * A `private_endpoint` block as defined below.
     * 
     */
    @Import(name="privateEndpoints")
    private @Nullable Output> privateEndpoints;

    /**
     * @return A `private_endpoint` block as defined below.
     * 
     */
    public Optional>> privateEndpoints() {
        return Optional.ofNullable(this.privateEndpoints);
    }

    /**
     * A `public_network` block as defined below.
     * 
     */
    @Import(name="publicNetwork", required=true)
    private Output publicNetwork;

    /**
     * @return A `public_network` block as defined below.
     * 
     */
    public Output publicNetwork() {
        return this.publicNetwork;
    }

    /**
     * The ID of the SignalR service. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="signalrServiceId", required=true)
    private Output signalrServiceId;

    /**
     * @return The ID of the SignalR service. Changing this forces a new resource to be created.
     * 
     */
    public Output signalrServiceId() {
        return this.signalrServiceId;
    }

    private ServiceNetworkAclArgs() {}

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

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

    public static final class Builder {
        private ServiceNetworkAclArgs $;

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

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

        /**
         * @param defaultAction The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(Output defaultAction) {
            $.defaultAction = defaultAction;
            return this;
        }

        /**
         * @param defaultAction The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(String defaultAction) {
            return defaultAction(Output.of(defaultAction));
        }

        /**
         * @param privateEndpoints A `private_endpoint` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(@Nullable Output> privateEndpoints) {
            $.privateEndpoints = privateEndpoints;
            return this;
        }

        /**
         * @param privateEndpoints A `private_endpoint` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(List privateEndpoints) {
            return privateEndpoints(Output.of(privateEndpoints));
        }

        /**
         * @param privateEndpoints A `private_endpoint` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpoints(ServiceNetworkAclPrivateEndpointArgs... privateEndpoints) {
            return privateEndpoints(List.of(privateEndpoints));
        }

        /**
         * @param publicNetwork A `public_network` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder publicNetwork(Output publicNetwork) {
            $.publicNetwork = publicNetwork;
            return this;
        }

        /**
         * @param publicNetwork A `public_network` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder publicNetwork(ServiceNetworkAclPublicNetworkArgs publicNetwork) {
            return publicNetwork(Output.of(publicNetwork));
        }

        /**
         * @param signalrServiceId The ID of the SignalR service. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder signalrServiceId(Output signalrServiceId) {
            $.signalrServiceId = signalrServiceId;
            return this;
        }

        /**
         * @param signalrServiceId The ID of the SignalR service. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder signalrServiceId(String signalrServiceId) {
            return signalrServiceId(Output.of(signalrServiceId));
        }

        public ServiceNetworkAclArgs build() {
            if ($.defaultAction == null) {
                throw new MissingRequiredPropertyException("ServiceNetworkAclArgs", "defaultAction");
            }
            if ($.publicNetwork == null) {
                throw new MissingRequiredPropertyException("ServiceNetworkAclArgs", "publicNetwork");
            }
            if ($.signalrServiceId == null) {
                throw new MissingRequiredPropertyException("ServiceNetworkAclArgs", "signalrServiceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy