
commonMain.aws.sdk.kotlin.services.ssm.model.GetConnectionStatusResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetConnectionStatusResponse private constructor(builder: Builder) {
/**
* The status of the connection to the managed node.
*/
public val status: aws.sdk.kotlin.services.ssm.model.ConnectionStatus? = builder.status
/**
* The ID of the managed node to check connection status.
*/
public val target: kotlin.String? = builder.target
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetConnectionStatusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConnectionStatusResponse(")
append("status=$status,")
append("target=$target")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = status?.hashCode() ?: 0
result = 31 * result + (target?.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 GetConnectionStatusResponse
if (status != other.status) return false
if (target != other.target) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetConnectionStatusResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The status of the connection to the managed node.
*/
public var status: aws.sdk.kotlin.services.ssm.model.ConnectionStatus? = null
/**
* The ID of the managed node to check connection status.
*/
public var target: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetConnectionStatusResponse) : this() {
this.status = x.status
this.target = x.target
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetConnectionStatusResponse = GetConnectionStatusResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy