commonMain.aws.sdk.kotlin.services.xray.model.ResponseTimeRootCauseEntity.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
/**
* A collection of segments and corresponding subsegments associated to a response time warning.
*/
public class ResponseTimeRootCauseEntity private constructor(builder: Builder) {
/**
* The type and messages of the exceptions.
*/
public val coverage: kotlin.Double? = builder.coverage
/**
* The name of the entity.
*/
public val name: kotlin.String? = builder.name
/**
* A flag that denotes a remote subsegment.
*/
public val remote: kotlin.Boolean? = builder.remote
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.ResponseTimeRootCauseEntity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResponseTimeRootCauseEntity(")
append("coverage=$coverage,")
append("name=$name,")
append("remote=$remote")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = coverage?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (remote?.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 ResponseTimeRootCauseEntity
if (!(coverage?.equals(other.coverage) ?: (other.coverage == null))) return false
if (name != other.name) return false
if (remote != other.remote) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.ResponseTimeRootCauseEntity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type and messages of the exceptions.
*/
public var coverage: kotlin.Double? = null
/**
* The name of the entity.
*/
public var name: kotlin.String? = null
/**
* A flag that denotes a remote subsegment.
*/
public var remote: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.ResponseTimeRootCauseEntity) : this() {
this.coverage = x.coverage
this.name = x.name
this.remote = x.remote
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.ResponseTimeRootCauseEntity = ResponseTimeRootCauseEntity(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy