All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.groundstation.model.DataflowEndpoint.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

/**
 * Information about a dataflow endpoint.
 */
public class DataflowEndpoint private constructor(builder: Builder) {
    /**
     * Socket address of a dataflow endpoint.
     */
    public val address: aws.sdk.kotlin.services.groundstation.model.SocketAddress? = builder.address
    /**
     * Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.
     */
    public val mtu: kotlin.Int? = builder.mtu
    /**
     * Name of a dataflow endpoint.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Status of a dataflow endpoint.
     */
    public val status: aws.sdk.kotlin.services.groundstation.model.EndpointStatus? = builder.status

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.DataflowEndpoint = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DataflowEndpoint(")
        append("address=$address,")
        append("mtu=$mtu,")
        append("name=$name,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = address?.hashCode() ?: 0
        result = 31 * result + (mtu ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (status?.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 DataflowEndpoint

        if (address != other.address) return false
        if (mtu != other.mtu) return false
        if (name != other.name) return false
        if (status != other.status) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.DataflowEndpoint = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Socket address of a dataflow endpoint.
         */
        public var address: aws.sdk.kotlin.services.groundstation.model.SocketAddress? = null
        /**
         * Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.
         */
        public var mtu: kotlin.Int? = null
        /**
         * Name of a dataflow endpoint.
         */
        public var name: kotlin.String? = null
        /**
         * Status of a dataflow endpoint.
         */
        public var status: aws.sdk.kotlin.services.groundstation.model.EndpointStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.groundstation.model.DataflowEndpoint) : this() {
            this.address = x.address
            this.mtu = x.mtu
            this.name = x.name
            this.status = x.status
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.groundstation.model.DataflowEndpoint = DataflowEndpoint(this)

        /**
         * construct an [aws.sdk.kotlin.services.groundstation.model.SocketAddress] inside the given [block]
         */
        public fun address(block: aws.sdk.kotlin.services.groundstation.model.SocketAddress.Builder.() -> kotlin.Unit) {
            this.address = aws.sdk.kotlin.services.groundstation.model.SocketAddress.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy