commonMain.aws.sdk.kotlin.services.waf.model.DeleteIpSetRequest.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 DeleteIpSetRequest private constructor(builder: Builder) {
/**
* The value returned by the most recent call to GetChangeToken.
*/
public val changeToken: kotlin.String? = builder.changeToken
/**
* The `IPSetId` of the IPSet that you want to delete. `IPSetId` is returned by CreateIPSet and by ListIPSets.
*/
public val ipSetId: kotlin.String? = builder.ipSetId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.waf.model.DeleteIpSetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteIpSetRequest(")
append("changeToken=$changeToken,")
append("ipSetId=$ipSetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changeToken?.hashCode() ?: 0
result = 31 * result + (ipSetId?.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 DeleteIpSetRequest
if (changeToken != other.changeToken) return false
if (ipSetId != other.ipSetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.waf.model.DeleteIpSetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The value returned by the most recent call to GetChangeToken.
*/
public var changeToken: kotlin.String? = null
/**
* The `IPSetId` of the IPSet that you want to delete. `IPSetId` is returned by CreateIPSet and by ListIPSets.
*/
public var ipSetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.waf.model.DeleteIpSetRequest) : this() {
this.changeToken = x.changeToken
this.ipSetId = x.ipSetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.waf.model.DeleteIpSetRequest = DeleteIpSetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}