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

com.pulumi.azurenative.network.inputs.AzureFirewallApplicationRuleProtocolArgs 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.network.inputs;

import com.pulumi.azurenative.network.enums.AzureFirewallApplicationRuleProtocolType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Properties of the application rule protocol.
 * 
 */
public final class AzureFirewallApplicationRuleProtocolArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureFirewallApplicationRuleProtocolArgs Empty = new AzureFirewallApplicationRuleProtocolArgs();

    /**
     * Port number for the protocol, cannot be greater than 64000. This field is optional.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return Port number for the protocol, cannot be greater than 64000. This field is optional.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * Protocol type.
     * 
     */
    @Import(name="protocolType")
    private @Nullable Output> protocolType;

    /**
     * @return Protocol type.
     * 
     */
    public Optional>> protocolType() {
        return Optional.ofNullable(this.protocolType);
    }

    private AzureFirewallApplicationRuleProtocolArgs() {}

    private AzureFirewallApplicationRuleProtocolArgs(AzureFirewallApplicationRuleProtocolArgs $) {
        this.port = $.port;
        this.protocolType = $.protocolType;
    }

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

    public static final class Builder {
        private AzureFirewallApplicationRuleProtocolArgs $;

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

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

        /**
         * @param port Port number for the protocol, cannot be greater than 64000. This field is optional.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port Port number for the protocol, cannot be greater than 64000. This field is optional.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param protocolType Protocol type.
         * 
         * @return builder
         * 
         */
        public Builder protocolType(@Nullable Output> protocolType) {
            $.protocolType = protocolType;
            return this;
        }

        /**
         * @param protocolType Protocol type.
         * 
         * @return builder
         * 
         */
        public Builder protocolType(Either protocolType) {
            return protocolType(Output.of(protocolType));
        }

        /**
         * @param protocolType Protocol type.
         * 
         * @return builder
         * 
         */
        public Builder protocolType(String protocolType) {
            return protocolType(Either.ofLeft(protocolType));
        }

        /**
         * @param protocolType Protocol type.
         * 
         * @return builder
         * 
         */
        public Builder protocolType(AzureFirewallApplicationRuleProtocolType protocolType) {
            return protocolType(Either.ofRight(protocolType));
        }

        public AzureFirewallApplicationRuleProtocolArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy