
commonMain.aws.sdk.kotlin.services.lightsail.model.Session.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes a web-based, remote graphical user interface (GUI), NICE DCV session. The session is used to access a virtual computer’s operating system or application.
*/
public class Session private constructor(builder: Builder) {
/**
* When true, this Boolean value indicates the primary session for the specified resource.
*/
public val isPrimary: kotlin.Boolean? = builder.isPrimary
/**
* The session name.
*/
public val name: kotlin.String? = builder.name
/**
* The session URL.
*/
public val url: kotlin.String? = builder.url
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.Session = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Session(")
append("isPrimary=$isPrimary,")
append("name=$name,")
append("url=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = isPrimary?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (url?.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 Session
if (isPrimary != other.isPrimary) return false
if (name != other.name) return false
if (url != other.url) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.Session = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* When true, this Boolean value indicates the primary session for the specified resource.
*/
public var isPrimary: kotlin.Boolean? = null
/**
* The session name.
*/
public var name: kotlin.String? = null
/**
* The session URL.
*/
public var url: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.Session) : this() {
this.isPrimary = x.isPrimary
this.name = x.name
this.url = x.url
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.Session = Session(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy