
commonMain.aws.sdk.kotlin.services.waf.model.GetRuleRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.waf.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetRuleRequest private constructor(builder: Builder) {
/**
* The `RuleId` of the Rule that you want to get. `RuleId` is returned by CreateRule and by ListRules.
*/
public val ruleId: kotlin.String? = builder.ruleId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.waf.model.GetRuleRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRuleRequest(")
append("ruleId=$ruleId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ruleId?.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 GetRuleRequest
if (ruleId != other.ruleId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.waf.model.GetRuleRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The `RuleId` of the Rule that you want to get. `RuleId` is returned by CreateRule and by ListRules.
*/
public var ruleId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.waf.model.GetRuleRequest) : this() {
this.ruleId = x.ruleId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.waf.model.GetRuleRequest = GetRuleRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy