commonMain.aws.sdk.kotlin.services.xray.model.GetTraceSummariesResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetTraceSummariesResponse private constructor(builder: Builder) {
/**
* The start time of this page of results.
*/
public val approximateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.approximateTime
/**
* If the requested time frame contained more than one page of results, you can use this token to retrieve the next page. The first page contains the most recent results, closest to the end of the time frame.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* Trace IDs and annotations for traces that were found in the specified time frame.
*/
public val traceSummaries: List? = builder.traceSummaries
/**
* The total number of traces processed, including traces that did not match the specified filter expression.
*/
public val tracesProcessedCount: kotlin.Long? = builder.tracesProcessedCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.GetTraceSummariesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetTraceSummariesResponse(")
append("approximateTime=$approximateTime,")
append("nextToken=$nextToken,")
append("traceSummaries=$traceSummaries,")
append("tracesProcessedCount=$tracesProcessedCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = approximateTime?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (traceSummaries?.hashCode() ?: 0)
result = 31 * result + (tracesProcessedCount?.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 GetTraceSummariesResponse
if (approximateTime != other.approximateTime) return false
if (nextToken != other.nextToken) return false
if (traceSummaries != other.traceSummaries) return false
if (tracesProcessedCount != other.tracesProcessedCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.GetTraceSummariesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The start time of this page of results.
*/
public var approximateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* If the requested time frame contained more than one page of results, you can use this token to retrieve the next page. The first page contains the most recent results, closest to the end of the time frame.
*/
public var nextToken: kotlin.String? = null
/**
* Trace IDs and annotations for traces that were found in the specified time frame.
*/
public var traceSummaries: List? = null
/**
* The total number of traces processed, including traces that did not match the specified filter expression.
*/
public var tracesProcessedCount: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.GetTraceSummariesResponse) : this() {
this.approximateTime = x.approximateTime
this.nextToken = x.nextToken
this.traceSummaries = x.traceSummaries
this.tracesProcessedCount = x.tracesProcessedCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.GetTraceSummariesResponse = GetTraceSummariesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy