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

com.pulumi.azurenative.network.inputs.FirewallPolicyIntrusionDetectionArgs 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.FirewallPolicyIntrusionDetectionProfileType;
import com.pulumi.azurenative.network.enums.FirewallPolicyIntrusionDetectionStateType;
import com.pulumi.azurenative.network.inputs.FirewallPolicyIntrusionDetectionConfigurationArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Configuration for intrusion detection mode and rules.
 * 
 */
public final class FirewallPolicyIntrusionDetectionArgs extends com.pulumi.resources.ResourceArgs {

    public static final FirewallPolicyIntrusionDetectionArgs Empty = new FirewallPolicyIntrusionDetectionArgs();

    /**
     * Intrusion detection configuration properties.
     * 
     */
    @Import(name="configuration")
    private @Nullable Output configuration;

    /**
     * @return Intrusion detection configuration properties.
     * 
     */
    public Optional> configuration() {
        return Optional.ofNullable(this.configuration);
    }

    /**
     * Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
     * 
     */
    @Import(name="profile")
    private @Nullable Output> profile;

    /**
     * @return IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
     * 
     */
    public Optional>> profile() {
        return Optional.ofNullable(this.profile);
    }

    private FirewallPolicyIntrusionDetectionArgs() {}

    private FirewallPolicyIntrusionDetectionArgs(FirewallPolicyIntrusionDetectionArgs $) {
        this.configuration = $.configuration;
        this.mode = $.mode;
        this.profile = $.profile;
    }

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

    public static final class Builder {
        private FirewallPolicyIntrusionDetectionArgs $;

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

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

        /**
         * @param configuration Intrusion detection configuration properties.
         * 
         * @return builder
         * 
         */
        public Builder configuration(@Nullable Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration Intrusion detection configuration properties.
         * 
         * @return builder
         * 
         */
        public Builder configuration(FirewallPolicyIntrusionDetectionConfigurationArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param mode Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
         * 
         * @return builder
         * 
         */
        public Builder mode(FirewallPolicyIntrusionDetectionStateType mode) {
            return mode(Either.ofRight(mode));
        }

        /**
         * @param profile IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
         * 
         * @return builder
         * 
         */
        public Builder profile(@Nullable Output> profile) {
            $.profile = profile;
            return this;
        }

        /**
         * @param profile IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
         * 
         * @return builder
         * 
         */
        public Builder profile(Either profile) {
            return profile(Output.of(profile));
        }

        /**
         * @param profile IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
         * 
         * @return builder
         * 
         */
        public Builder profile(String profile) {
            return profile(Either.ofLeft(profile));
        }

        /**
         * @param profile IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
         * 
         * @return builder
         * 
         */
        public Builder profile(FirewallPolicyIntrusionDetectionProfileType profile) {
            return profile(Either.ofRight(profile));
        }

        public FirewallPolicyIntrusionDetectionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy