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

com.pulumi.azurenative.network.inputs.FirewallPolicyRuleConditionApplicationProtocolArgs Maven / Gradle / Ivy

The 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.FirewallPolicyRuleConditionApplicationProtocolType;
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 FirewallPolicyRuleConditionApplicationProtocolArgs extends com.pulumi.resources.ResourceArgs {

    public static final FirewallPolicyRuleConditionApplicationProtocolArgs Empty = new FirewallPolicyRuleConditionApplicationProtocolArgs();

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

    /**
     * @return Port number for the protocol, cannot be greater than 64000.
     * 
     */
    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 FirewallPolicyRuleConditionApplicationProtocolArgs() {}

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

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

    public static final class Builder {
        private FirewallPolicyRuleConditionApplicationProtocolArgs $;

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

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

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

        /**
         * @param port Port number for the protocol, cannot be greater than 64000.
         * 
         * @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(FirewallPolicyRuleConditionApplicationProtocolType protocolType) {
            return protocolType(Either.ofRight(protocolType));
        }

        public FirewallPolicyRuleConditionApplicationProtocolArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy