commonMain.aws.sdk.kotlin.services.xray.model.BackendConnectionErrors.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
/**
*
*/
public class BackendConnectionErrors private constructor(builder: Builder) {
/**
*
*/
public val connectionRefusedCount: kotlin.Int? = builder.connectionRefusedCount
/**
*
*/
public val httpCode4XxCount: kotlin.Int? = builder.httpCode4XxCount
/**
*
*/
public val httpCode5XxCount: kotlin.Int? = builder.httpCode5XxCount
/**
*
*/
public val otherCount: kotlin.Int? = builder.otherCount
/**
*
*/
public val timeoutCount: kotlin.Int? = builder.timeoutCount
/**
*
*/
public val unknownHostCount: kotlin.Int? = builder.unknownHostCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.BackendConnectionErrors = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BackendConnectionErrors(")
append("connectionRefusedCount=$connectionRefusedCount,")
append("httpCode4XxCount=$httpCode4XxCount,")
append("httpCode5XxCount=$httpCode5XxCount,")
append("otherCount=$otherCount,")
append("timeoutCount=$timeoutCount,")
append("unknownHostCount=$unknownHostCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionRefusedCount ?: 0
result = 31 * result + (httpCode4XxCount ?: 0)
result = 31 * result + (httpCode5XxCount ?: 0)
result = 31 * result + (otherCount ?: 0)
result = 31 * result + (timeoutCount ?: 0)
result = 31 * result + (unknownHostCount ?: 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 BackendConnectionErrors
if (connectionRefusedCount != other.connectionRefusedCount) return false
if (httpCode4XxCount != other.httpCode4XxCount) return false
if (httpCode5XxCount != other.httpCode5XxCount) return false
if (otherCount != other.otherCount) return false
if (timeoutCount != other.timeoutCount) return false
if (unknownHostCount != other.unknownHostCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.BackendConnectionErrors = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
*
*/
public var connectionRefusedCount: kotlin.Int? = null
/**
*
*/
public var httpCode4XxCount: kotlin.Int? = null
/**
*
*/
public var httpCode5XxCount: kotlin.Int? = null
/**
*
*/
public var otherCount: kotlin.Int? = null
/**
*
*/
public var timeoutCount: kotlin.Int? = null
/**
*
*/
public var unknownHostCount: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.BackendConnectionErrors) : this() {
this.connectionRefusedCount = x.connectionRefusedCount
this.httpCode4XxCount = x.httpCode4XxCount
this.httpCode5XxCount = x.httpCode5XxCount
this.otherCount = x.otherCount
this.timeoutCount = x.timeoutCount
this.unknownHostCount = x.unknownHostCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.BackendConnectionErrors = BackendConnectionErrors(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy