commonMain.aws.sdk.kotlin.services.xray.model.UpdateSamplingRuleRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.xray.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateSamplingRuleRequest private constructor(builder: Builder) {
/**
* The rule and fields to change.
*/
public val samplingRuleUpdate: aws.sdk.kotlin.services.xray.model.SamplingRuleUpdate? = builder.samplingRuleUpdate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.UpdateSamplingRuleRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSamplingRuleRequest(")
append("samplingRuleUpdate=$samplingRuleUpdate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = samplingRuleUpdate?.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 UpdateSamplingRuleRequest
if (samplingRuleUpdate != other.samplingRuleUpdate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.UpdateSamplingRuleRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The rule and fields to change.
*/
public var samplingRuleUpdate: aws.sdk.kotlin.services.xray.model.SamplingRuleUpdate? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.UpdateSamplingRuleRequest) : this() {
this.samplingRuleUpdate = x.samplingRuleUpdate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.UpdateSamplingRuleRequest = UpdateSamplingRuleRequest(this)
/**
* construct an [aws.sdk.kotlin.services.xray.model.SamplingRuleUpdate] inside the given [block]
*/
public fun samplingRuleUpdate(block: aws.sdk.kotlin.services.xray.model.SamplingRuleUpdate.Builder.() -> kotlin.Unit) {
this.samplingRuleUpdate = aws.sdk.kotlin.services.xray.model.SamplingRuleUpdate.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy