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

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

import com.pulumi.azurenative.network.inputs.FirewallPolicyHttpHeaderToInsertArgs;
import com.pulumi.azurenative.network.inputs.FirewallPolicyRuleApplicationProtocolArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Rule of type application.
 * 
 */
public final class ApplicationRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationRuleArgs Empty = new ApplicationRuleArgs();

    /**
     * Description of the rule.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the rule.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * List of destination IP addresses or Service Tags.
     * 
     */
    @Import(name="destinationAddresses")
    private @Nullable Output> destinationAddresses;

    /**
     * @return List of destination IP addresses or Service Tags.
     * 
     */
    public Optional>> destinationAddresses() {
        return Optional.ofNullable(this.destinationAddresses);
    }

    /**
     * List of FQDN Tags for this rule.
     * 
     */
    @Import(name="fqdnTags")
    private @Nullable Output> fqdnTags;

    /**
     * @return List of FQDN Tags for this rule.
     * 
     */
    public Optional>> fqdnTags() {
        return Optional.ofNullable(this.fqdnTags);
    }

    /**
     * List of HTTP/S headers to insert.
     * 
     */
    @Import(name="httpHeadersToInsert")
    private @Nullable Output> httpHeadersToInsert;

    /**
     * @return List of HTTP/S headers to insert.
     * 
     */
    public Optional>> httpHeadersToInsert() {
        return Optional.ofNullable(this.httpHeadersToInsert);
    }

    /**
     * Name of the rule.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the rule.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Array of Application Protocols.
     * 
     */
    @Import(name="protocols")
    private @Nullable Output> protocols;

    /**
     * @return Array of Application Protocols.
     * 
     */
    public Optional>> protocols() {
        return Optional.ofNullable(this.protocols);
    }

    /**
     * Rule Type.
     * Expected value is 'ApplicationRule'.
     * 
     */
    @Import(name="ruleType", required=true)
    private Output ruleType;

    /**
     * @return Rule Type.
     * Expected value is 'ApplicationRule'.
     * 
     */
    public Output ruleType() {
        return this.ruleType;
    }

    /**
     * List of source IP addresses for this rule.
     * 
     */
    @Import(name="sourceAddresses")
    private @Nullable Output> sourceAddresses;

    /**
     * @return List of source IP addresses for this rule.
     * 
     */
    public Optional>> sourceAddresses() {
        return Optional.ofNullable(this.sourceAddresses);
    }

    /**
     * List of source IpGroups for this rule.
     * 
     */
    @Import(name="sourceIpGroups")
    private @Nullable Output> sourceIpGroups;

    /**
     * @return List of source IpGroups for this rule.
     * 
     */
    public Optional>> sourceIpGroups() {
        return Optional.ofNullable(this.sourceIpGroups);
    }

    /**
     * List of FQDNs for this rule.
     * 
     */
    @Import(name="targetFqdns")
    private @Nullable Output> targetFqdns;

    /**
     * @return List of FQDNs for this rule.
     * 
     */
    public Optional>> targetFqdns() {
        return Optional.ofNullable(this.targetFqdns);
    }

    /**
     * List of Urls for this rule condition.
     * 
     */
    @Import(name="targetUrls")
    private @Nullable Output> targetUrls;

    /**
     * @return List of Urls for this rule condition.
     * 
     */
    public Optional>> targetUrls() {
        return Optional.ofNullable(this.targetUrls);
    }

    /**
     * Terminate TLS connections for this rule.
     * 
     */
    @Import(name="terminateTLS")
    private @Nullable Output terminateTLS;

    /**
     * @return Terminate TLS connections for this rule.
     * 
     */
    public Optional> terminateTLS() {
        return Optional.ofNullable(this.terminateTLS);
    }

    /**
     * List of destination azure web categories.
     * 
     */
    @Import(name="webCategories")
    private @Nullable Output> webCategories;

    /**
     * @return List of destination azure web categories.
     * 
     */
    public Optional>> webCategories() {
        return Optional.ofNullable(this.webCategories);
    }

    private ApplicationRuleArgs() {}

    private ApplicationRuleArgs(ApplicationRuleArgs $) {
        this.description = $.description;
        this.destinationAddresses = $.destinationAddresses;
        this.fqdnTags = $.fqdnTags;
        this.httpHeadersToInsert = $.httpHeadersToInsert;
        this.name = $.name;
        this.protocols = $.protocols;
        this.ruleType = $.ruleType;
        this.sourceAddresses = $.sourceAddresses;
        this.sourceIpGroups = $.sourceIpGroups;
        this.targetFqdns = $.targetFqdns;
        this.targetUrls = $.targetUrls;
        this.terminateTLS = $.terminateTLS;
        this.webCategories = $.webCategories;
    }

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

    public static final class Builder {
        private ApplicationRuleArgs $;

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

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

        /**
         * @param description Description of the rule.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the rule.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param destinationAddresses List of destination IP addresses or Service Tags.
         * 
         * @return builder
         * 
         */
        public Builder destinationAddresses(@Nullable Output> destinationAddresses) {
            $.destinationAddresses = destinationAddresses;
            return this;
        }

        /**
         * @param destinationAddresses List of destination IP addresses or Service Tags.
         * 
         * @return builder
         * 
         */
        public Builder destinationAddresses(List destinationAddresses) {
            return destinationAddresses(Output.of(destinationAddresses));
        }

        /**
         * @param destinationAddresses List of destination IP addresses or Service Tags.
         * 
         * @return builder
         * 
         */
        public Builder destinationAddresses(String... destinationAddresses) {
            return destinationAddresses(List.of(destinationAddresses));
        }

        /**
         * @param fqdnTags List of FQDN Tags for this rule.
         * 
         * @return builder
         * 
         */
        public Builder fqdnTags(@Nullable Output> fqdnTags) {
            $.fqdnTags = fqdnTags;
            return this;
        }

        /**
         * @param fqdnTags List of FQDN Tags for this rule.
         * 
         * @return builder
         * 
         */
        public Builder fqdnTags(List fqdnTags) {
            return fqdnTags(Output.of(fqdnTags));
        }

        /**
         * @param fqdnTags List of FQDN Tags for this rule.
         * 
         * @return builder
         * 
         */
        public Builder fqdnTags(String... fqdnTags) {
            return fqdnTags(List.of(fqdnTags));
        }

        /**
         * @param httpHeadersToInsert List of HTTP/S headers to insert.
         * 
         * @return builder
         * 
         */
        public Builder httpHeadersToInsert(@Nullable Output> httpHeadersToInsert) {
            $.httpHeadersToInsert = httpHeadersToInsert;
            return this;
        }

        /**
         * @param httpHeadersToInsert List of HTTP/S headers to insert.
         * 
         * @return builder
         * 
         */
        public Builder httpHeadersToInsert(List httpHeadersToInsert) {
            return httpHeadersToInsert(Output.of(httpHeadersToInsert));
        }

        /**
         * @param httpHeadersToInsert List of HTTP/S headers to insert.
         * 
         * @return builder
         * 
         */
        public Builder httpHeadersToInsert(FirewallPolicyHttpHeaderToInsertArgs... httpHeadersToInsert) {
            return httpHeadersToInsert(List.of(httpHeadersToInsert));
        }

        /**
         * @param name Name of the rule.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the rule.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param protocols Array of Application Protocols.
         * 
         * @return builder
         * 
         */
        public Builder protocols(@Nullable Output> protocols) {
            $.protocols = protocols;
            return this;
        }

        /**
         * @param protocols Array of Application Protocols.
         * 
         * @return builder
         * 
         */
        public Builder protocols(List protocols) {
            return protocols(Output.of(protocols));
        }

        /**
         * @param protocols Array of Application Protocols.
         * 
         * @return builder
         * 
         */
        public Builder protocols(FirewallPolicyRuleApplicationProtocolArgs... protocols) {
            return protocols(List.of(protocols));
        }

        /**
         * @param ruleType Rule Type.
         * Expected value is 'ApplicationRule'.
         * 
         * @return builder
         * 
         */
        public Builder ruleType(Output ruleType) {
            $.ruleType = ruleType;
            return this;
        }

        /**
         * @param ruleType Rule Type.
         * Expected value is 'ApplicationRule'.
         * 
         * @return builder
         * 
         */
        public Builder ruleType(String ruleType) {
            return ruleType(Output.of(ruleType));
        }

        /**
         * @param sourceAddresses List of source IP addresses for this rule.
         * 
         * @return builder
         * 
         */
        public Builder sourceAddresses(@Nullable Output> sourceAddresses) {
            $.sourceAddresses = sourceAddresses;
            return this;
        }

        /**
         * @param sourceAddresses List of source IP addresses for this rule.
         * 
         * @return builder
         * 
         */
        public Builder sourceAddresses(List sourceAddresses) {
            return sourceAddresses(Output.of(sourceAddresses));
        }

        /**
         * @param sourceAddresses List of source IP addresses for this rule.
         * 
         * @return builder
         * 
         */
        public Builder sourceAddresses(String... sourceAddresses) {
            return sourceAddresses(List.of(sourceAddresses));
        }

        /**
         * @param sourceIpGroups List of source IpGroups for this rule.
         * 
         * @return builder
         * 
         */
        public Builder sourceIpGroups(@Nullable Output> sourceIpGroups) {
            $.sourceIpGroups = sourceIpGroups;
            return this;
        }

        /**
         * @param sourceIpGroups List of source IpGroups for this rule.
         * 
         * @return builder
         * 
         */
        public Builder sourceIpGroups(List sourceIpGroups) {
            return sourceIpGroups(Output.of(sourceIpGroups));
        }

        /**
         * @param sourceIpGroups List of source IpGroups for this rule.
         * 
         * @return builder
         * 
         */
        public Builder sourceIpGroups(String... sourceIpGroups) {
            return sourceIpGroups(List.of(sourceIpGroups));
        }

        /**
         * @param targetFqdns List of FQDNs for this rule.
         * 
         * @return builder
         * 
         */
        public Builder targetFqdns(@Nullable Output> targetFqdns) {
            $.targetFqdns = targetFqdns;
            return this;
        }

        /**
         * @param targetFqdns List of FQDNs for this rule.
         * 
         * @return builder
         * 
         */
        public Builder targetFqdns(List targetFqdns) {
            return targetFqdns(Output.of(targetFqdns));
        }

        /**
         * @param targetFqdns List of FQDNs for this rule.
         * 
         * @return builder
         * 
         */
        public Builder targetFqdns(String... targetFqdns) {
            return targetFqdns(List.of(targetFqdns));
        }

        /**
         * @param targetUrls List of Urls for this rule condition.
         * 
         * @return builder
         * 
         */
        public Builder targetUrls(@Nullable Output> targetUrls) {
            $.targetUrls = targetUrls;
            return this;
        }

        /**
         * @param targetUrls List of Urls for this rule condition.
         * 
         * @return builder
         * 
         */
        public Builder targetUrls(List targetUrls) {
            return targetUrls(Output.of(targetUrls));
        }

        /**
         * @param targetUrls List of Urls for this rule condition.
         * 
         * @return builder
         * 
         */
        public Builder targetUrls(String... targetUrls) {
            return targetUrls(List.of(targetUrls));
        }

        /**
         * @param terminateTLS Terminate TLS connections for this rule.
         * 
         * @return builder
         * 
         */
        public Builder terminateTLS(@Nullable Output terminateTLS) {
            $.terminateTLS = terminateTLS;
            return this;
        }

        /**
         * @param terminateTLS Terminate TLS connections for this rule.
         * 
         * @return builder
         * 
         */
        public Builder terminateTLS(Boolean terminateTLS) {
            return terminateTLS(Output.of(terminateTLS));
        }

        /**
         * @param webCategories List of destination azure web categories.
         * 
         * @return builder
         * 
         */
        public Builder webCategories(@Nullable Output> webCategories) {
            $.webCategories = webCategories;
            return this;
        }

        /**
         * @param webCategories List of destination azure web categories.
         * 
         * @return builder
         * 
         */
        public Builder webCategories(List webCategories) {
            return webCategories(Output.of(webCategories));
        }

        /**
         * @param webCategories List of destination azure web categories.
         * 
         * @return builder
         * 
         */
        public Builder webCategories(String... webCategories) {
            return webCategories(List.of(webCategories));
        }

        public ApplicationRuleArgs build() {
            $.ruleType = Codegen.stringProp("ruleType").output().arg($.ruleType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy