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

com.pulumi.meraki.networks.ApplianceFirewallPortForwardingRulesArgs Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
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.meraki.networks;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.meraki.networks.inputs.ApplianceFirewallPortForwardingRulesRuleArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApplianceFirewallPortForwardingRulesArgs Empty = new ApplianceFirewallPortForwardingRulesArgs();

    /**
     * networkId path parameter. Network ID
     * 
     */
    @Import(name="networkId", required=true)
    private Output networkId;

    /**
     * @return networkId path parameter. Network ID
     * 
     */
    public Output networkId() {
        return this.networkId;
    }

    /**
     * An array of port forwarding params
     * 
     */
    @Import(name="rules")
    private @Nullable Output> rules;

    /**
     * @return An array of port forwarding params
     * 
     */
    public Optional>> rules() {
        return Optional.ofNullable(this.rules);
    }

    private ApplianceFirewallPortForwardingRulesArgs() {}

    private ApplianceFirewallPortForwardingRulesArgs(ApplianceFirewallPortForwardingRulesArgs $) {
        this.networkId = $.networkId;
        this.rules = $.rules;
    }

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

    public static final class Builder {
        private ApplianceFirewallPortForwardingRulesArgs $;

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

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

        /**
         * @param networkId networkId path parameter. Network ID
         * 
         * @return builder
         * 
         */
        public Builder networkId(Output networkId) {
            $.networkId = networkId;
            return this;
        }

        /**
         * @param networkId networkId path parameter. Network ID
         * 
         * @return builder
         * 
         */
        public Builder networkId(String networkId) {
            return networkId(Output.of(networkId));
        }

        /**
         * @param rules An array of port forwarding params
         * 
         * @return builder
         * 
         */
        public Builder rules(@Nullable Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules An array of port forwarding params
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules An array of port forwarding params
         * 
         * @return builder
         * 
         */
        public Builder rules(ApplianceFirewallPortForwardingRulesRuleArgs... rules) {
            return rules(List.of(rules));
        }

        public ApplianceFirewallPortForwardingRulesArgs build() {
            if ($.networkId == null) {
                throw new MissingRequiredPropertyException("ApplianceFirewallPortForwardingRulesArgs", "networkId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy