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

commonMain.aws.sdk.kotlin.services.codecatalyst.model.DevEnvironmentAccessDetails.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.codecatalyst.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about connection details for a Dev Environment.
 */
public class DevEnvironmentAccessDetails private constructor(builder: Builder) {
    /**
     * The URL used to send commands to and from the Dev Environment.
     */
    public val streamUrl: kotlin.String = requireNotNull(builder.streamUrl) { "A non-null value must be provided for streamUrl" }
    /**
     * An encrypted token value that contains session and caller information used to authenticate the connection.
     */
    public val tokenValue: kotlin.String = requireNotNull(builder.tokenValue) { "A non-null value must be provided for tokenValue" }

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

    override fun toString(): kotlin.String = buildString {
        append("DevEnvironmentAccessDetails(")
        append("*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = streamUrl.hashCode()
        result = 31 * result + (tokenValue.hashCode())
        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 DevEnvironmentAccessDetails

        if (streamUrl != other.streamUrl) return false
        if (tokenValue != other.tokenValue) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The URL used to send commands to and from the Dev Environment.
         */
        public var streamUrl: kotlin.String? = null
        /**
         * An encrypted token value that contains session and caller information used to authenticate the connection.
         */
        public var tokenValue: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codecatalyst.model.DevEnvironmentAccessDetails) : this() {
            this.streamUrl = x.streamUrl
            this.tokenValue = x.tokenValue
        }

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

        internal fun correctErrors(): Builder {
            if (streamUrl == null) streamUrl = ""
            if (tokenValue == null) tokenValue = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy