commonMain.aws.sdk.kotlin.services.xray.model.UnprocessedStatistics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xray-jvm Show documentation
Show all versions of xray-jvm Show documentation
The AWS SDK for Kotlin client for XRay
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.xray.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Sampling statistics from a call to [GetSamplingTargets](https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html) that X-Ray could not process.
*/
public class UnprocessedStatistics private constructor(builder: Builder) {
/**
* The error code.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* The error message.
*/
public val message: kotlin.String? = builder.message
/**
* The name of the sampling rule.
*/
public val ruleName: kotlin.String? = builder.ruleName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.UnprocessedStatistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UnprocessedStatistics(")
append("errorCode=$errorCode,")
append("message=$message,")
append("ruleName=$ruleName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (ruleName?.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 UnprocessedStatistics
if (errorCode != other.errorCode) return false
if (message != other.message) return false
if (ruleName != other.ruleName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.UnprocessedStatistics = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The error code.
*/
public var errorCode: kotlin.String? = null
/**
* The error message.
*/
public var message: kotlin.String? = null
/**
* The name of the sampling rule.
*/
public var ruleName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.UnprocessedStatistics) : this() {
this.errorCode = x.errorCode
this.message = x.message
this.ruleName = x.ruleName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.UnprocessedStatistics = UnprocessedStatistics(this)
internal fun correctErrors(): Builder {
return this
}
}
}