
commonMain.aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Ingress address of AgentEndpoint with a port range and an optional mtu.
*/
public class RangedConnectionDetails private constructor(builder: Builder) {
/**
* Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.
*/
public val mtu: kotlin.Int? = builder.mtu
/**
* A ranged socket address.
*/
public val socketAddress: aws.sdk.kotlin.services.groundstation.model.RangedSocketAddress? = builder.socketAddress
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RangedConnectionDetails(")
append("mtu=$mtu,")
append("socketAddress=$socketAddress")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mtu ?: 0
result = 31 * result + (socketAddress?.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 RangedConnectionDetails
if (mtu != other.mtu) return false
if (socketAddress != other.socketAddress) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.
*/
public var mtu: kotlin.Int? = null
/**
* A ranged socket address.
*/
public var socketAddress: aws.sdk.kotlin.services.groundstation.model.RangedSocketAddress? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails) : this() {
this.mtu = x.mtu
this.socketAddress = x.socketAddress
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.RangedConnectionDetails = RangedConnectionDetails(this)
/**
* construct an [aws.sdk.kotlin.services.groundstation.model.RangedSocketAddress] inside the given [block]
*/
public fun socketAddress(block: aws.sdk.kotlin.services.groundstation.model.RangedSocketAddress.Builder.() -> kotlin.Unit) {
this.socketAddress = aws.sdk.kotlin.services.groundstation.model.RangedSocketAddress.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy