
commonMain.aws.sdk.kotlin.services.xray.model.GetTraceSummariesRequest.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 GetTraceSummariesRequest private constructor(builder: Builder) {
/**
* The end of the time frame for which to retrieve traces.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* Specify a filter expression to retrieve trace summaries for services or requests that meet certain requirements.
*/
public val filterExpression: kotlin.String? = builder.filterExpression
/**
* Specify the pagination token returned by a previous request to retrieve the next page of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* Set to `true` to get summaries for only a subset of available traces.
*/
public val sampling: kotlin.Boolean? = builder.sampling
/**
* A parameter to indicate whether to enable sampling on trace summaries. Input parameters are Name and Value.
*/
public val samplingStrategy: aws.sdk.kotlin.services.xray.model.SamplingStrategy? = builder.samplingStrategy
/**
* The start of the time frame for which to retrieve traces.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time).
*/
public val timeRangeType: aws.sdk.kotlin.services.xray.model.TimeRangeType? = builder.timeRangeType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.GetTraceSummariesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetTraceSummariesRequest(")
append("endTime=$endTime,")
append("filterExpression=$filterExpression,")
append("nextToken=$nextToken,")
append("sampling=$sampling,")
append("samplingStrategy=$samplingStrategy,")
append("startTime=$startTime,")
append("timeRangeType=$timeRangeType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endTime?.hashCode() ?: 0
result = 31 * result + (filterExpression?.hashCode() ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (sampling?.hashCode() ?: 0)
result = 31 * result + (samplingStrategy?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (timeRangeType?.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 GetTraceSummariesRequest
if (endTime != other.endTime) return false
if (filterExpression != other.filterExpression) return false
if (nextToken != other.nextToken) return false
if (sampling != other.sampling) return false
if (samplingStrategy != other.samplingStrategy) return false
if (startTime != other.startTime) return false
if (timeRangeType != other.timeRangeType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.GetTraceSummariesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The end of the time frame for which to retrieve traces.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Specify a filter expression to retrieve trace summaries for services or requests that meet certain requirements.
*/
public var filterExpression: kotlin.String? = null
/**
* Specify the pagination token returned by a previous request to retrieve the next page of results.
*/
public var nextToken: kotlin.String? = null
/**
* Set to `true` to get summaries for only a subset of available traces.
*/
public var sampling: kotlin.Boolean? = null
/**
* A parameter to indicate whether to enable sampling on trace summaries. Input parameters are Name and Value.
*/
public var samplingStrategy: aws.sdk.kotlin.services.xray.model.SamplingStrategy? = null
/**
* The start of the time frame for which to retrieve traces.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time).
*/
public var timeRangeType: aws.sdk.kotlin.services.xray.model.TimeRangeType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.GetTraceSummariesRequest) : this() {
this.endTime = x.endTime
this.filterExpression = x.filterExpression
this.nextToken = x.nextToken
this.sampling = x.sampling
this.samplingStrategy = x.samplingStrategy
this.startTime = x.startTime
this.timeRangeType = x.timeRangeType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.GetTraceSummariesRequest = GetTraceSummariesRequest(this)
/**
* construct an [aws.sdk.kotlin.services.xray.model.SamplingStrategy] inside the given [block]
*/
public fun samplingStrategy(block: aws.sdk.kotlin.services.xray.model.SamplingStrategy.Builder.() -> kotlin.Unit) {
this.samplingStrategy = aws.sdk.kotlin.services.xray.model.SamplingStrategy.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy