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

commonMain.aws.sdk.kotlin.services.eventbridge.model.CreateConnectionResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.eventbridge.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class CreateConnectionResponse private constructor(builder: Builder) {
    /**
     * The ARN of the connection that was created by the request.
     */
    public val connectionArn: kotlin.String? = builder.connectionArn
    /**
     * The state of the connection that was created by the request.
     */
    public val connectionState: aws.sdk.kotlin.services.eventbridge.model.ConnectionState? = builder.connectionState
    /**
     * A time stamp for the time that the connection was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * A time stamp for the time that the connection was last updated.
     */
    public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime

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

    override fun toString(): kotlin.String = buildString {
        append("CreateConnectionResponse(")
        append("connectionArn=$connectionArn,")
        append("connectionState=$connectionState,")
        append("creationTime=$creationTime,")
        append("lastModifiedTime=$lastModifiedTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = connectionArn?.hashCode() ?: 0
        result = 31 * result + (connectionState?.hashCode() ?: 0)
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTime?.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 CreateConnectionResponse

        if (connectionArn != other.connectionArn) return false
        if (connectionState != other.connectionState) return false
        if (creationTime != other.creationTime) return false
        if (lastModifiedTime != other.lastModifiedTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ARN of the connection that was created by the request.
         */
        public var connectionArn: kotlin.String? = null
        /**
         * The state of the connection that was created by the request.
         */
        public var connectionState: aws.sdk.kotlin.services.eventbridge.model.ConnectionState? = null
        /**
         * A time stamp for the time that the connection was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A time stamp for the time that the connection was last updated.
         */
        public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.CreateConnectionResponse) : this() {
            this.connectionArn = x.connectionArn
            this.connectionState = x.connectionState
            this.creationTime = x.creationTime
            this.lastModifiedTime = x.lastModifiedTime
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy