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

com.pulumi.azurenative.cdn.inputs.SecurityPolicyWebApplicationFirewallAssociationArgs 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.cdn.inputs;

import com.pulumi.azurenative.cdn.inputs.ActivatedResourceReferenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * settings for security policy patterns to match
 * 
 */
public final class SecurityPolicyWebApplicationFirewallAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final SecurityPolicyWebApplicationFirewallAssociationArgs Empty = new SecurityPolicyWebApplicationFirewallAssociationArgs();

    /**
     * List of domains.
     * 
     */
    @Import(name="domains")
    private @Nullable Output> domains;

    /**
     * @return List of domains.
     * 
     */
    public Optional>> domains() {
        return Optional.ofNullable(this.domains);
    }

    /**
     * List of paths
     * 
     */
    @Import(name="patternsToMatch")
    private @Nullable Output> patternsToMatch;

    /**
     * @return List of paths
     * 
     */
    public Optional>> patternsToMatch() {
        return Optional.ofNullable(this.patternsToMatch);
    }

    private SecurityPolicyWebApplicationFirewallAssociationArgs() {}

    private SecurityPolicyWebApplicationFirewallAssociationArgs(SecurityPolicyWebApplicationFirewallAssociationArgs $) {
        this.domains = $.domains;
        this.patternsToMatch = $.patternsToMatch;
    }

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

    public static final class Builder {
        private SecurityPolicyWebApplicationFirewallAssociationArgs $;

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

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

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

        /**
         * @param domains List of domains.
         * 
         * @return builder
         * 
         */
        public Builder domains(List domains) {
            return domains(Output.of(domains));
        }

        /**
         * @param domains List of domains.
         * 
         * @return builder
         * 
         */
        public Builder domains(ActivatedResourceReferenceArgs... domains) {
            return domains(List.of(domains));
        }

        /**
         * @param patternsToMatch List of paths
         * 
         * @return builder
         * 
         */
        public Builder patternsToMatch(@Nullable Output> patternsToMatch) {
            $.patternsToMatch = patternsToMatch;
            return this;
        }

        /**
         * @param patternsToMatch List of paths
         * 
         * @return builder
         * 
         */
        public Builder patternsToMatch(List patternsToMatch) {
            return patternsToMatch(Output.of(patternsToMatch));
        }

        /**
         * @param patternsToMatch List of paths
         * 
         * @return builder
         * 
         */
        public Builder patternsToMatch(String... patternsToMatch) {
            return patternsToMatch(List.of(patternsToMatch));
        }

        public SecurityPolicyWebApplicationFirewallAssociationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy