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

com.pulumi.azure.iotcentral.inputs.ApplicationNetworkRuleSetState 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.iotcentral.inputs;

import com.pulumi.azure.iotcentral.inputs.ApplicationNetworkRuleSetIpRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApplicationNetworkRuleSetState Empty = new ApplicationNetworkRuleSetState();

    /**
     * Whether these IP Rules apply for device connectivity to IoT Hub and Device Provisioning Service associated with this IoT Central Application. Possible values are `true`, `false`. Defaults to `true`
     * 
     */
    @Import(name="applyToDevice")
    private @Nullable Output applyToDevice;

    /**
     * @return Whether these IP Rules apply for device connectivity to IoT Hub and Device Provisioning Service associated with this IoT Central Application. Possible values are `true`, `false`. Defaults to `true`
     * 
     */
    public Optional> applyToDevice() {
        return Optional.ofNullable(this.applyToDevice);
    }

    /**
     * Specifies the default action for the IoT Central Application Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
     * 
     */
    @Import(name="defaultAction")
    private @Nullable Output defaultAction;

    /**
     * @return Specifies the default action for the IoT Central Application Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
     * 
     */
    public Optional> defaultAction() {
        return Optional.ofNullable(this.defaultAction);
    }

    /**
     * The ID of the IoT Central Application. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="iotcentralApplicationId")
    private @Nullable Output iotcentralApplicationId;

    /**
     * @return The ID of the IoT Central Application. Changing this forces a new resource to be created.
     * 
     */
    public Optional> iotcentralApplicationId() {
        return Optional.ofNullable(this.iotcentralApplicationId);
    }

    /**
     * One or more `ip_rule` blocks as defined below.
     * 
     */
    @Import(name="ipRules")
    private @Nullable Output> ipRules;

    /**
     * @return One or more `ip_rule` blocks as defined below.
     * 
     */
    public Optional>> ipRules() {
        return Optional.ofNullable(this.ipRules);
    }

    private ApplicationNetworkRuleSetState() {}

    private ApplicationNetworkRuleSetState(ApplicationNetworkRuleSetState $) {
        this.applyToDevice = $.applyToDevice;
        this.defaultAction = $.defaultAction;
        this.iotcentralApplicationId = $.iotcentralApplicationId;
        this.ipRules = $.ipRules;
    }

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

    public static final class Builder {
        private ApplicationNetworkRuleSetState $;

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

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

        /**
         * @param applyToDevice Whether these IP Rules apply for device connectivity to IoT Hub and Device Provisioning Service associated with this IoT Central Application. Possible values are `true`, `false`. Defaults to `true`
         * 
         * @return builder
         * 
         */
        public Builder applyToDevice(@Nullable Output applyToDevice) {
            $.applyToDevice = applyToDevice;
            return this;
        }

        /**
         * @param applyToDevice Whether these IP Rules apply for device connectivity to IoT Hub and Device Provisioning Service associated with this IoT Central Application. Possible values are `true`, `false`. Defaults to `true`
         * 
         * @return builder
         * 
         */
        public Builder applyToDevice(Boolean applyToDevice) {
            return applyToDevice(Output.of(applyToDevice));
        }

        /**
         * @param defaultAction Specifies the default action for the IoT Central Application Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(@Nullable Output defaultAction) {
            $.defaultAction = defaultAction;
            return this;
        }

        /**
         * @param defaultAction Specifies the default action for the IoT Central Application Network Rule Set. Possible values are `Allow` and `Deny`. Defaults to `Deny`.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(String defaultAction) {
            return defaultAction(Output.of(defaultAction));
        }

        /**
         * @param iotcentralApplicationId The ID of the IoT Central Application. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder iotcentralApplicationId(@Nullable Output iotcentralApplicationId) {
            $.iotcentralApplicationId = iotcentralApplicationId;
            return this;
        }

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

        /**
         * @param ipRules One or more `ip_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder ipRules(@Nullable Output> ipRules) {
            $.ipRules = ipRules;
            return this;
        }

        /**
         * @param ipRules One or more `ip_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder ipRules(List ipRules) {
            return ipRules(Output.of(ipRules));
        }

        /**
         * @param ipRules One or more `ip_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder ipRules(ApplicationNetworkRuleSetIpRuleArgs... ipRules) {
            return ipRules(List.of(ipRules));
        }

        public ApplicationNetworkRuleSetState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy