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

com.pulumi.azurenative.mobilenetwork.inputs.PinholeTimeoutsArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.mobilenetwork.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Expiry times of inactive NAPT pinholes, in seconds. All timers must be at least 1 second.
 * 
 */
public final class PinholeTimeoutsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PinholeTimeoutsArgs Empty = new PinholeTimeoutsArgs();

    /**
     * Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 30 seconds.
     * 
     */
    @Import(name="icmp")
    private @Nullable Output icmp;

    /**
     * @return Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 30 seconds.
     * 
     */
    public Optional> icmp() {
        return Optional.ofNullable(this.icmp);
    }

    /**
     * Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes.
     * 
     */
    @Import(name="tcp")
    private @Nullable Output tcp;

    /**
     * @return Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes.
     * 
     */
    public Optional> tcp() {
        return Optional.ofNullable(this.tcp);
    }

    /**
     * Pinhole timeout for UDP pinholes in seconds. Default for UDP is 30 seconds.
     * 
     */
    @Import(name="udp")
    private @Nullable Output udp;

    /**
     * @return Pinhole timeout for UDP pinholes in seconds. Default for UDP is 30 seconds.
     * 
     */
    public Optional> udp() {
        return Optional.ofNullable(this.udp);
    }

    private PinholeTimeoutsArgs() {}

    private PinholeTimeoutsArgs(PinholeTimeoutsArgs $) {
        this.icmp = $.icmp;
        this.tcp = $.tcp;
        this.udp = $.udp;
    }

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

    public static final class Builder {
        private PinholeTimeoutsArgs $;

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

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

        /**
         * @param icmp Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 30 seconds.
         * 
         * @return builder
         * 
         */
        public Builder icmp(@Nullable Output icmp) {
            $.icmp = icmp;
            return this;
        }

        /**
         * @param icmp Pinhole timeout for ICMP pinholes in seconds. Default for ICMP Echo is 30 seconds.
         * 
         * @return builder
         * 
         */
        public Builder icmp(Integer icmp) {
            return icmp(Output.of(icmp));
        }

        /**
         * @param tcp Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes.
         * 
         * @return builder
         * 
         */
        public Builder tcp(@Nullable Output tcp) {
            $.tcp = tcp;
            return this;
        }

        /**
         * @param tcp Pinhole timeout for TCP pinholes in seconds. Default for TCP is 3 minutes.
         * 
         * @return builder
         * 
         */
        public Builder tcp(Integer tcp) {
            return tcp(Output.of(tcp));
        }

        /**
         * @param udp Pinhole timeout for UDP pinholes in seconds. Default for UDP is 30 seconds.
         * 
         * @return builder
         * 
         */
        public Builder udp(@Nullable Output udp) {
            $.udp = udp;
            return this;
        }

        /**
         * @param udp Pinhole timeout for UDP pinholes in seconds. Default for UDP is 30 seconds.
         * 
         * @return builder
         * 
         */
        public Builder udp(Integer udp) {
            return udp(Output.of(udp));
        }

        public PinholeTimeoutsArgs build() {
            $.icmp = Codegen.integerProp("icmp").output().arg($.icmp).def(30).getNullable();
            $.tcp = Codegen.integerProp("tcp").output().arg($.tcp).def(180).getNullable();
            $.udp = Codegen.integerProp("udp").output().arg($.udp).def(30).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy