commonMain.aws.sdk.kotlin.services.xray.model.BatchGetTracesResponse.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
public class BatchGetTracesResponse private constructor(builder: Builder) {
/**
* Pagination token.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* Full traces for the specified requests.
*/
public val traces: List? = builder.traces
/**
* Trace IDs of requests that haven't been processed.
*/
public val unprocessedTraceIds: List? = builder.unprocessedTraceIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.BatchGetTracesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetTracesResponse(")
append("nextToken=$nextToken,")
append("traces=$traces,")
append("unprocessedTraceIds=$unprocessedTraceIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (traces?.hashCode() ?: 0)
result = 31 * result + (unprocessedTraceIds?.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 BatchGetTracesResponse
if (nextToken != other.nextToken) return false
if (traces != other.traces) return false
if (unprocessedTraceIds != other.unprocessedTraceIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.BatchGetTracesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Pagination token.
*/
public var nextToken: kotlin.String? = null
/**
* Full traces for the specified requests.
*/
public var traces: List? = null
/**
* Trace IDs of requests that haven't been processed.
*/
public var unprocessedTraceIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.BatchGetTracesResponse) : this() {
this.nextToken = x.nextToken
this.traces = x.traces
this.unprocessedTraceIds = x.unprocessedTraceIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.BatchGetTracesResponse = BatchGetTracesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}