commonMain.aws.sdk.kotlin.services.wafv2.model.LabelNameCondition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wafv2-jvm Show documentation
Show all versions of wafv2-jvm Show documentation
The AWS Kotlin client for WAFV2
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wafv2.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A single label name condition for a Condition in a logging filter.
*/
public class LabelNameCondition private constructor(builder: Builder) {
/**
* The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
*/
public val labelName: kotlin.String = requireNotNull(builder.labelName) { "A non-null value must be provided for labelName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wafv2.model.LabelNameCondition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LabelNameCondition(")
append("labelName=$labelName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = labelName.hashCode()
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as LabelNameCondition
if (labelName != other.labelName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wafv2.model.LabelNameCondition = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
*/
public var labelName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wafv2.model.LabelNameCondition) : this() {
this.labelName = x.labelName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wafv2.model.LabelNameCondition = LabelNameCondition(this)
internal fun correctErrors(): Builder {
if (labelName == null) labelName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy