commonMain.aws.sdk.kotlin.services.shield.model.ProtectionGroupArbitraryPatternLimits.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.shield.model
/**
* Limits settings on protection groups with arbitrary pattern type.
*/
class ProtectionGroupArbitraryPatternLimits private constructor(builder: Builder) {
/**
* The maximum number of resources you can specify for a single arbitrary pattern in a protection group.
*/
val maxMembers: kotlin.Long = builder.maxMembers
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.shield.model.ProtectionGroupArbitraryPatternLimits = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProtectionGroupArbitraryPatternLimits(")
append("maxMembers=$maxMembers)")
}
override fun hashCode(): kotlin.Int {
var result = maxMembers.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 ProtectionGroupArbitraryPatternLimits
if (maxMembers != other.maxMembers) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.shield.model.ProtectionGroupArbitraryPatternLimits = Builder(this).apply(block).build()
class Builder {
/**
* The maximum number of resources you can specify for a single arbitrary pattern in a protection group.
*/
var maxMembers: kotlin.Long = 0L
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.shield.model.ProtectionGroupArbitraryPatternLimits) : this() {
this.maxMembers = x.maxMembers
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.shield.model.ProtectionGroupArbitraryPatternLimits = ProtectionGroupArbitraryPatternLimits(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy