commonMain.aws.sdk.kotlin.services.outposts.model.GetConnectionResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of outposts-jvm Show documentation
Show all versions of outposts-jvm Show documentation
The AWS SDK for Kotlin client for Outposts
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.outposts.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetConnectionResponse private constructor(builder: Builder) {
/**
* Information about the connection.
*/
public val connectionDetails: aws.sdk.kotlin.services.outposts.model.ConnectionDetails? = builder.connectionDetails
/**
* The ID of the connection.
*/
public val connectionId: kotlin.String? = builder.connectionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.GetConnectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConnectionResponse(")
append("connectionDetails=$connectionDetails,")
append("connectionId=$connectionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionDetails?.hashCode() ?: 0
result = 31 * result + (connectionId?.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 GetConnectionResponse
if (connectionDetails != other.connectionDetails) return false
if (connectionId != other.connectionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.GetConnectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the connection.
*/
public var connectionDetails: aws.sdk.kotlin.services.outposts.model.ConnectionDetails? = null
/**
* The ID of the connection.
*/
public var connectionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.outposts.model.GetConnectionResponse) : this() {
this.connectionDetails = x.connectionDetails
this.connectionId = x.connectionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.outposts.model.GetConnectionResponse = GetConnectionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.outposts.model.ConnectionDetails] inside the given [block]
*/
public fun connectionDetails(block: aws.sdk.kotlin.services.outposts.model.ConnectionDetails.Builder.() -> kotlin.Unit) {
this.connectionDetails = aws.sdk.kotlin.services.outposts.model.ConnectionDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy