commonMain.aws.sdk.kotlin.services.waf.model.GetRateBasedRuleManagedKeysResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waf-jvm Show documentation
Show all versions of waf-jvm Show documentation
The AWS SDK for Kotlin client for WAF
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.waf.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetRateBasedRuleManagedKeysResponse private constructor(builder: Builder) {
/**
* An array of IP addresses that currently are blocked by the specified RateBasedRule.
*/
public val managedKeys: List? = builder.managedKeys
/**
* A null value and not currently used.
*/
public val nextMarker: kotlin.String? = builder.nextMarker
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.waf.model.GetRateBasedRuleManagedKeysResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRateBasedRuleManagedKeysResponse(")
append("managedKeys=$managedKeys,")
append("nextMarker=$nextMarker")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = managedKeys?.hashCode() ?: 0
result = 31 * result + (nextMarker?.hashCode() ?: 0)
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 GetRateBasedRuleManagedKeysResponse
if (managedKeys != other.managedKeys) return false
if (nextMarker != other.nextMarker) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.waf.model.GetRateBasedRuleManagedKeysResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of IP addresses that currently are blocked by the specified RateBasedRule.
*/
public var managedKeys: List? = null
/**
* A null value and not currently used.
*/
public var nextMarker: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.waf.model.GetRateBasedRuleManagedKeysResponse) : this() {
this.managedKeys = x.managedKeys
this.nextMarker = x.nextMarker
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.waf.model.GetRateBasedRuleManagedKeysResponse = GetRateBasedRuleManagedKeysResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}