commonMain.aws.sdk.kotlin.services.outposts.model.ConnectionDetails.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
/**
* Information about a connection.
*/
public class ConnectionDetails private constructor(builder: Builder) {
/**
* The allowed IP addresses.
*/
public val allowedIps: List? = builder.allowedIps
/**
* The public key of the client.
*/
public val clientPublicKey: kotlin.String? = builder.clientPublicKey
/**
* The client tunnel address.
*/
public val clientTunnelAddress: kotlin.String? = builder.clientTunnelAddress
/**
* The endpoint for the server.
*/
public val serverEndpoint: kotlin.String? = builder.serverEndpoint
/**
* The public key of the server.
*/
public val serverPublicKey: kotlin.String? = builder.serverPublicKey
/**
* The server tunnel address.
*/
public val serverTunnelAddress: kotlin.String? = builder.serverTunnelAddress
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.ConnectionDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectionDetails(")
append("allowedIps=$allowedIps,")
append("clientPublicKey=$clientPublicKey,")
append("clientTunnelAddress=$clientTunnelAddress,")
append("serverEndpoint=$serverEndpoint,")
append("serverPublicKey=$serverPublicKey,")
append("serverTunnelAddress=$serverTunnelAddress")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allowedIps?.hashCode() ?: 0
result = 31 * result + (clientPublicKey?.hashCode() ?: 0)
result = 31 * result + (clientTunnelAddress?.hashCode() ?: 0)
result = 31 * result + (serverEndpoint?.hashCode() ?: 0)
result = 31 * result + (serverPublicKey?.hashCode() ?: 0)
result = 31 * result + (serverTunnelAddress?.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 ConnectionDetails
if (allowedIps != other.allowedIps) return false
if (clientPublicKey != other.clientPublicKey) return false
if (clientTunnelAddress != other.clientTunnelAddress) return false
if (serverEndpoint != other.serverEndpoint) return false
if (serverPublicKey != other.serverPublicKey) return false
if (serverTunnelAddress != other.serverTunnelAddress) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.ConnectionDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The allowed IP addresses.
*/
public var allowedIps: List? = null
/**
* The public key of the client.
*/
public var clientPublicKey: kotlin.String? = null
/**
* The client tunnel address.
*/
public var clientTunnelAddress: kotlin.String? = null
/**
* The endpoint for the server.
*/
public var serverEndpoint: kotlin.String? = null
/**
* The public key of the server.
*/
public var serverPublicKey: kotlin.String? = null
/**
* The server tunnel address.
*/
public var serverTunnelAddress: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.outposts.model.ConnectionDetails) : this() {
this.allowedIps = x.allowedIps
this.clientPublicKey = x.clientPublicKey
this.clientTunnelAddress = x.clientTunnelAddress
this.serverEndpoint = x.serverEndpoint
this.serverPublicKey = x.serverPublicKey
this.serverTunnelAddress = x.serverTunnelAddress
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.outposts.model.ConnectionDetails = ConnectionDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy