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

com.pulumi.gcp.logging.kotlin.inputs.BillingAccountSinkExclusionArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.logging.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.logging.inputs.BillingAccountSinkExclusionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property description A description of this exclusion.
 * @property disabled If set to True, then this exclusion is disabled and it does not exclude any log entries.
 * @property filter An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
 * write a filter.
 * @property name A client-assigned identifier, such as `load-balancer-exclusion`. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
 */
public data class BillingAccountSinkExclusionArgs(
    public val description: Output? = null,
    public val disabled: Output? = null,
    public val filter: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.logging.inputs.BillingAccountSinkExclusionArgs =
        com.pulumi.gcp.logging.inputs.BillingAccountSinkExclusionArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .disabled(disabled?.applyValue({ args0 -> args0 }))
            .filter(filter.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BillingAccountSinkExclusionArgs].
 */
@PulumiTagMarker
public class BillingAccountSinkExclusionArgsBuilder internal constructor() {
    private var description: Output? = null

    private var disabled: Output? = null

    private var filter: Output? = null

    private var name: Output? = null

    /**
     * @param value A description of this exclusion.
     */
    @JvmName("scdrjoaqevsoaipf")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value If set to True, then this exclusion is disabled and it does not exclude any log entries.
     */
    @JvmName("tandgvjbmhpmisiw")
    public suspend fun disabled(`value`: Output) {
        this.disabled = value
    }

    /**
     * @param value An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
     * write a filter.
     */
    @JvmName("hgjnxxvpjicslsxx")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value A client-assigned identifier, such as `load-balancer-exclusion`. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
     */
    @JvmName("mgmlknvghepccoss")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A description of this exclusion.
     */
    @JvmName("disfsbjrmhycidor")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value If set to True, then this exclusion is disabled and it does not exclude any log entries.
     */
    @JvmName("kcesglncitfbgxrj")
    public suspend fun disabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disabled = mapped
    }

    /**
     * @param value An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
     * write a filter.
     */
    @JvmName("yrcryumefhumbdgu")
    public suspend fun filter(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param value A client-assigned identifier, such as `load-balancer-exclusion`. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
     */
    @JvmName("yxlmnfelnihwrujn")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): BillingAccountSinkExclusionArgs = BillingAccountSinkExclusionArgs(
        description = description,
        disabled = disabled,
        filter = filter ?: throw PulumiNullFieldException("filter"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy