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

com.pulumi.azurenative.notificationhubs.inputs.NetworkAclsArgs 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.notificationhubs.inputs;

import com.pulumi.azurenative.notificationhubs.inputs.IpRuleArgs;
import com.pulumi.azurenative.notificationhubs.inputs.PublicInternetAuthorizationRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A collection of network authorization rules.
 * 
 */
public final class NetworkAclsArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkAclsArgs Empty = new NetworkAclsArgs();

    /**
     * List of IP rules.
     * 
     */
    @Import(name="ipRules")
    private @Nullable Output> ipRules;

    /**
     * @return List of IP rules.
     * 
     */
    public Optional>> ipRules() {
        return Optional.ofNullable(this.ipRules);
    }

    /**
     * A default (public Internet) network authorization rule, which contains rights if no other network rule matches.
     * 
     */
    @Import(name="publicNetworkRule")
    private @Nullable Output publicNetworkRule;

    /**
     * @return A default (public Internet) network authorization rule, which contains rights if no other network rule matches.
     * 
     */
    public Optional> publicNetworkRule() {
        return Optional.ofNullable(this.publicNetworkRule);
    }

    private NetworkAclsArgs() {}

    private NetworkAclsArgs(NetworkAclsArgs $) {
        this.ipRules = $.ipRules;
        this.publicNetworkRule = $.publicNetworkRule;
    }

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

    public static final class Builder {
        private NetworkAclsArgs $;

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

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

        /**
         * @param ipRules List of IP rules.
         * 
         * @return builder
         * 
         */
        public Builder ipRules(@Nullable Output> ipRules) {
            $.ipRules = ipRules;
            return this;
        }

        /**
         * @param ipRules List of IP rules.
         * 
         * @return builder
         * 
         */
        public Builder ipRules(List ipRules) {
            return ipRules(Output.of(ipRules));
        }

        /**
         * @param ipRules List of IP rules.
         * 
         * @return builder
         * 
         */
        public Builder ipRules(IpRuleArgs... ipRules) {
            return ipRules(List.of(ipRules));
        }

        /**
         * @param publicNetworkRule A default (public Internet) network authorization rule, which contains rights if no other network rule matches.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkRule(@Nullable Output publicNetworkRule) {
            $.publicNetworkRule = publicNetworkRule;
            return this;
        }

        /**
         * @param publicNetworkRule A default (public Internet) network authorization rule, which contains rights if no other network rule matches.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkRule(PublicInternetAuthorizationRuleArgs publicNetworkRule) {
            return publicNetworkRule(Output.of(publicNetworkRule));
        }

        public NetworkAclsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy