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

com.pulumi.junipermist.site.inputs.NetworktemplateSwitchMgmtProtectReCustomArgs Maven / Gradle / Ivy

// *** 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.junipermist.site.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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NetworktemplateSwitchMgmtProtectReCustomArgs Empty = new NetworktemplateSwitchMgmtProtectReCustomArgs();

    /**
     * matched dst port, "0" means any. Note: For `protocol`==`any` and  `port_range`==`any`, configure `trusted_hosts` instead
     * 
     */
    @Import(name="portRange")
    private @Nullable Output portRange;

    /**
     * @return matched dst port, "0" means any. Note: For `protocol`==`any` and  `port_range`==`any`, configure `trusted_hosts` instead
     * 
     */
    public Optional> portRange() {
        return Optional.ofNullable(this.portRange);
    }

    /**
     * enum: `any`, `icmp`, `tcp`, `udp`. Note: For `protocol`==`any` and  `port_range`==`any`, configure `trusted_hosts` instead
     * 
     */
    @Import(name="protocol")
    private @Nullable Output protocol;

    /**
     * @return enum: `any`, `icmp`, `tcp`, `udp`. Note: For `protocol`==`any` and  `port_range`==`any`, configure `trusted_hosts` instead
     * 
     */
    public Optional> protocol() {
        return Optional.ofNullable(this.protocol);
    }

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

    public Output> subnets() {
        return this.subnets;
    }

    private NetworktemplateSwitchMgmtProtectReCustomArgs() {}

    private NetworktemplateSwitchMgmtProtectReCustomArgs(NetworktemplateSwitchMgmtProtectReCustomArgs $) {
        this.portRange = $.portRange;
        this.protocol = $.protocol;
        this.subnets = $.subnets;
    }

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

    public static final class Builder {
        private NetworktemplateSwitchMgmtProtectReCustomArgs $;

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

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

        /**
         * @param portRange matched dst port, "0" means any. Note: For `protocol`==`any` and  `port_range`==`any`, configure `trusted_hosts` instead
         * 
         * @return builder
         * 
         */
        public Builder portRange(@Nullable Output portRange) {
            $.portRange = portRange;
            return this;
        }

        /**
         * @param portRange matched dst port, "0" means any. Note: For `protocol`==`any` and  `port_range`==`any`, configure `trusted_hosts` instead
         * 
         * @return builder
         * 
         */
        public Builder portRange(String portRange) {
            return portRange(Output.of(portRange));
        }

        /**
         * @param protocol enum: `any`, `icmp`, `tcp`, `udp`. Note: For `protocol`==`any` and  `port_range`==`any`, configure `trusted_hosts` instead
         * 
         * @return builder
         * 
         */
        public Builder protocol(@Nullable Output protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol enum: `any`, `icmp`, `tcp`, `udp`. Note: For `protocol`==`any` and  `port_range`==`any`, configure `trusted_hosts` instead
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

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

        public Builder subnets(List subnets) {
            return subnets(Output.of(subnets));
        }

        public Builder subnets(String... subnets) {
            return subnets(List.of(subnets));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy