commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.Latency.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticbeanstalk-jvm Show documentation
Show all versions of elasticbeanstalk-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Beanstalk
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the average latency for the slowest X percent of requests over the last 10 seconds.
*/
public class Latency private constructor(builder: Builder) {
/**
* The average latency for the slowest 90 percent of requests over the last 10 seconds.
*/
public val p10: kotlin.Double? = builder.p10
/**
* The average latency for the slowest 50 percent of requests over the last 10 seconds.
*/
public val p50: kotlin.Double? = builder.p50
/**
* The average latency for the slowest 25 percent of requests over the last 10 seconds.
*/
public val p75: kotlin.Double? = builder.p75
/**
* The average latency for the slowest 15 percent of requests over the last 10 seconds.
*/
public val p85: kotlin.Double? = builder.p85
/**
* The average latency for the slowest 10 percent of requests over the last 10 seconds.
*/
public val p90: kotlin.Double? = builder.p90
/**
* The average latency for the slowest 5 percent of requests over the last 10 seconds.
*/
public val p95: kotlin.Double? = builder.p95
/**
* The average latency for the slowest 1 percent of requests over the last 10 seconds.
*/
public val p99: kotlin.Double? = builder.p99
/**
* The average latency for the slowest 0.1 percent of requests over the last 10 seconds.
*/
public val p999: kotlin.Double? = builder.p999
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.Latency = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Latency(")
append("p10=$p10,")
append("p50=$p50,")
append("p75=$p75,")
append("p85=$p85,")
append("p90=$p90,")
append("p95=$p95,")
append("p99=$p99,")
append("p999=$p999")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = p10?.hashCode() ?: 0
result = 31 * result + (p50?.hashCode() ?: 0)
result = 31 * result + (p75?.hashCode() ?: 0)
result = 31 * result + (p85?.hashCode() ?: 0)
result = 31 * result + (p90?.hashCode() ?: 0)
result = 31 * result + (p95?.hashCode() ?: 0)
result = 31 * result + (p99?.hashCode() ?: 0)
result = 31 * result + (p999?.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 Latency
if (!(p10?.equals(other.p10) ?: (other.p10 == null))) return false
if (!(p50?.equals(other.p50) ?: (other.p50 == null))) return false
if (!(p75?.equals(other.p75) ?: (other.p75 == null))) return false
if (!(p85?.equals(other.p85) ?: (other.p85 == null))) return false
if (!(p90?.equals(other.p90) ?: (other.p90 == null))) return false
if (!(p95?.equals(other.p95) ?: (other.p95 == null))) return false
if (!(p99?.equals(other.p99) ?: (other.p99 == null))) return false
if (!(p999?.equals(other.p999) ?: (other.p999 == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.Latency = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The average latency for the slowest 90 percent of requests over the last 10 seconds.
*/
public var p10: kotlin.Double? = null
/**
* The average latency for the slowest 50 percent of requests over the last 10 seconds.
*/
public var p50: kotlin.Double? = null
/**
* The average latency for the slowest 25 percent of requests over the last 10 seconds.
*/
public var p75: kotlin.Double? = null
/**
* The average latency for the slowest 15 percent of requests over the last 10 seconds.
*/
public var p85: kotlin.Double? = null
/**
* The average latency for the slowest 10 percent of requests over the last 10 seconds.
*/
public var p90: kotlin.Double? = null
/**
* The average latency for the slowest 5 percent of requests over the last 10 seconds.
*/
public var p95: kotlin.Double? = null
/**
* The average latency for the slowest 1 percent of requests over the last 10 seconds.
*/
public var p99: kotlin.Double? = null
/**
* The average latency for the slowest 0.1 percent of requests over the last 10 seconds.
*/
public var p999: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.Latency) : this() {
this.p10 = x.p10
this.p50 = x.p50
this.p75 = x.p75
this.p85 = x.p85
this.p90 = x.p90
this.p95 = x.p95
this.p99 = x.p99
this.p999 = x.p999
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.Latency = Latency(this)
internal fun correctErrors(): Builder {
return this
}
}
}