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

com.pulumi.azure.securitycenter.kotlin.inputs.AutomationSourceRuleSetRuleArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.securitycenter.kotlin.inputs

import com.pulumi.azure.securitycenter.inputs.AutomationSourceRuleSetRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property expectedValue A value that will be compared with the value in `property_path`.
 * @property operator The comparison operator to use, must be one of: `Contains`, `EndsWith`, `Equals`, `GreaterThan`, `GreaterThanOrEqualTo`, `LesserThan`, `LesserThanOrEqualTo`, `NotEquals`, `StartsWith`
 * @property propertyPath The JPath of the entity model property that should be checked.
 * @property propertyType The data type of the compared operands, must be one of: `Integer`, `String`, `Boolean` or `Number`.
 * > **NOTE:** The schema for Security Center alerts (when `event_source` is "Alerts") [can be found here](https://docs.microsoft.com/azure/security-center/alerts-schemas?tabs=schema-continuousexport)
 */
public data class AutomationSourceRuleSetRuleArgs(
    public val expectedValue: Output,
    public val `operator`: Output,
    public val propertyPath: Output,
    public val propertyType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.securitycenter.inputs.AutomationSourceRuleSetRuleArgs =
        com.pulumi.azure.securitycenter.inputs.AutomationSourceRuleSetRuleArgs.builder()
            .expectedValue(expectedValue.applyValue({ args0 -> args0 }))
            .`operator`(`operator`.applyValue({ args0 -> args0 }))
            .propertyPath(propertyPath.applyValue({ args0 -> args0 }))
            .propertyType(propertyType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutomationSourceRuleSetRuleArgs].
 */
@PulumiTagMarker
public class AutomationSourceRuleSetRuleArgsBuilder internal constructor() {
    private var expectedValue: Output? = null

    private var `operator`: Output? = null

    private var propertyPath: Output? = null

    private var propertyType: Output? = null

    /**
     * @param value A value that will be compared with the value in `property_path`.
     */
    @JvmName("glbhvvagokmdheqd")
    public suspend fun expectedValue(`value`: Output) {
        this.expectedValue = value
    }

    /**
     * @param value The comparison operator to use, must be one of: `Contains`, `EndsWith`, `Equals`, `GreaterThan`, `GreaterThanOrEqualTo`, `LesserThan`, `LesserThanOrEqualTo`, `NotEquals`, `StartsWith`
     */
    @JvmName("rfcgohkfuknomwoo")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value The JPath of the entity model property that should be checked.
     */
    @JvmName("wuytbodbdnpxriua")
    public suspend fun propertyPath(`value`: Output) {
        this.propertyPath = value
    }

    /**
     * @param value The data type of the compared operands, must be one of: `Integer`, `String`, `Boolean` or `Number`.
     * > **NOTE:** The schema for Security Center alerts (when `event_source` is "Alerts") [can be found here](https://docs.microsoft.com/azure/security-center/alerts-schemas?tabs=schema-continuousexport)
     */
    @JvmName("slfgnxkcfhbqshpa")
    public suspend fun propertyType(`value`: Output) {
        this.propertyType = value
    }

    /**
     * @param value A value that will be compared with the value in `property_path`.
     */
    @JvmName("cmopyugukofvddqq")
    public suspend fun expectedValue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.expectedValue = mapped
    }

    /**
     * @param value The comparison operator to use, must be one of: `Contains`, `EndsWith`, `Equals`, `GreaterThan`, `GreaterThanOrEqualTo`, `LesserThan`, `LesserThanOrEqualTo`, `NotEquals`, `StartsWith`
     */
    @JvmName("feavmdfdpknjbnqu")
    public suspend fun `operator`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value The JPath of the entity model property that should be checked.
     */
    @JvmName("ccahfmslrspgmsip")
    public suspend fun propertyPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.propertyPath = mapped
    }

    /**
     * @param value The data type of the compared operands, must be one of: `Integer`, `String`, `Boolean` or `Number`.
     * > **NOTE:** The schema for Security Center alerts (when `event_source` is "Alerts") [can be found here](https://docs.microsoft.com/azure/security-center/alerts-schemas?tabs=schema-continuousexport)
     */
    @JvmName("iqlrshjwxidmlrxi")
    public suspend fun propertyType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.propertyType = mapped
    }

    internal fun build(): AutomationSourceRuleSetRuleArgs = AutomationSourceRuleSetRuleArgs(
        expectedValue = expectedValue ?: throw PulumiNullFieldException("expectedValue"),
        `operator` = `operator` ?: throw PulumiNullFieldException("operator"),
        propertyPath = propertyPath ?: throw PulumiNullFieldException("propertyPath"),
        propertyType = propertyType ?: throw PulumiNullFieldException("propertyType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy