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

com.pulumi.linode.inputs.NodeBalancerFirewallOutboundArgs Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.inputs;

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;


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

    public static final NodeBalancerFirewallOutboundArgs Empty = new NodeBalancerFirewallOutboundArgs();

    /**
     * Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
     * 
     */
    @Import(name="action", required=true)
    private Output action;

    /**
     * @return Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
     * 
     */
    public Output action() {
        return this.action;
    }

    @Import(name="description", required=true)
    private Output description;

    public Output description() {
        return this.description;
    }

    /**
     * A list of IPv4 addresses or networks. Must be in IP/mask format.
     * 
     */
    @Import(name="ipv4s", required=true)
    private Output> ipv4s;

    /**
     * @return A list of IPv4 addresses or networks. Must be in IP/mask format.
     * 
     */
    public Output> ipv4s() {
        return this.ipv4s;
    }

    /**
     * A list of IPv6 addresses or networks. Must be in IP/mask format.
     * 
     */
    @Import(name="ipv6s", required=true)
    private Output> ipv6s;

    /**
     * @return A list of IPv6 addresses or networks. Must be in IP/mask format.
     * 
     */
    public Output> ipv6s() {
        return this.ipv6s;
    }

    /**
     * The label of the Linode NodeBalancer
     * 
     */
    @Import(name="label", required=true)
    private Output label;

    /**
     * @return The label of the Linode NodeBalancer
     * 
     */
    public Output label() {
        return this.label;
    }

    /**
     * A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
     * 
     */
    @Import(name="ports", required=true)
    private Output ports;

    /**
     * @return A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
     * 
     */
    public Output ports() {
        return this.ports;
    }

    /**
     * The network protocol this rule controls. (`TCP`, `UDP`, `ICMP`)
     * 
     */
    @Import(name="protocol", required=true)
    private Output protocol;

    /**
     * @return The network protocol this rule controls. (`TCP`, `UDP`, `ICMP`)
     * 
     */
    public Output protocol() {
        return this.protocol;
    }

    private NodeBalancerFirewallOutboundArgs() {}

    private NodeBalancerFirewallOutboundArgs(NodeBalancerFirewallOutboundArgs $) {
        this.action = $.action;
        this.description = $.description;
        this.ipv4s = $.ipv4s;
        this.ipv6s = $.ipv6s;
        this.label = $.label;
        this.ports = $.ports;
        this.protocol = $.protocol;
    }

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

    public static final class Builder {
        private NodeBalancerFirewallOutboundArgs $;

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

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

        /**
         * @param action Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
         * 
         * @return builder
         * 
         */
        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        public Builder description(Output description) {
            $.description = description;
            return this;
        }

        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param ipv4s A list of IPv4 addresses or networks. Must be in IP/mask format.
         * 
         * @return builder
         * 
         */
        public Builder ipv4s(Output> ipv4s) {
            $.ipv4s = ipv4s;
            return this;
        }

        /**
         * @param ipv4s A list of IPv4 addresses or networks. Must be in IP/mask format.
         * 
         * @return builder
         * 
         */
        public Builder ipv4s(List ipv4s) {
            return ipv4s(Output.of(ipv4s));
        }

        /**
         * @param ipv4s A list of IPv4 addresses or networks. Must be in IP/mask format.
         * 
         * @return builder
         * 
         */
        public Builder ipv4s(String... ipv4s) {
            return ipv4s(List.of(ipv4s));
        }

        /**
         * @param ipv6s A list of IPv6 addresses or networks. Must be in IP/mask format.
         * 
         * @return builder
         * 
         */
        public Builder ipv6s(Output> ipv6s) {
            $.ipv6s = ipv6s;
            return this;
        }

        /**
         * @param ipv6s A list of IPv6 addresses or networks. Must be in IP/mask format.
         * 
         * @return builder
         * 
         */
        public Builder ipv6s(List ipv6s) {
            return ipv6s(Output.of(ipv6s));
        }

        /**
         * @param ipv6s A list of IPv6 addresses or networks. Must be in IP/mask format.
         * 
         * @return builder
         * 
         */
        public Builder ipv6s(String... ipv6s) {
            return ipv6s(List.of(ipv6s));
        }

        /**
         * @param label The label of the Linode NodeBalancer
         * 
         * @return builder
         * 
         */
        public Builder label(Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label The label of the Linode NodeBalancer
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @param ports A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
         * 
         * @return builder
         * 
         */
        public Builder ports(Output ports) {
            $.ports = ports;
            return this;
        }

        /**
         * @param ports A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
         * 
         * @return builder
         * 
         */
        public Builder ports(String ports) {
            return ports(Output.of(ports));
        }

        /**
         * @param protocol The network protocol this rule controls. (`TCP`, `UDP`, `ICMP`)
         * 
         * @return builder
         * 
         */
        public Builder protocol(Output protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol The network protocol this rule controls. (`TCP`, `UDP`, `ICMP`)
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        public NodeBalancerFirewallOutboundArgs build() {
            if ($.action == null) {
                throw new MissingRequiredPropertyException("NodeBalancerFirewallOutboundArgs", "action");
            }
            if ($.description == null) {
                throw new MissingRequiredPropertyException("NodeBalancerFirewallOutboundArgs", "description");
            }
            if ($.ipv4s == null) {
                throw new MissingRequiredPropertyException("NodeBalancerFirewallOutboundArgs", "ipv4s");
            }
            if ($.ipv6s == null) {
                throw new MissingRequiredPropertyException("NodeBalancerFirewallOutboundArgs", "ipv6s");
            }
            if ($.label == null) {
                throw new MissingRequiredPropertyException("NodeBalancerFirewallOutboundArgs", "label");
            }
            if ($.ports == null) {
                throw new MissingRequiredPropertyException("NodeBalancerFirewallOutboundArgs", "ports");
            }
            if ($.protocol == null) {
                throw new MissingRequiredPropertyException("NodeBalancerFirewallOutboundArgs", "protocol");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy