
commonMain.aws.sdk.kotlin.services.lightsail.model.CreateGuiSessionAccessDetailsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class CreateGuiSessionAccessDetailsResponse private constructor(builder: Builder) {
/**
* The reason the operation failed.
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* The percentage of completion for the operation.
*/
public val percentageComplete: kotlin.Int? = builder.percentageComplete
/**
* The resource name.
*/
public val resourceName: kotlin.String? = builder.resourceName
/**
* Returns information about the specified NICE DCV GUI session.
*/
public val sessions: List? = builder.sessions
/**
* The status of the operation.
*/
public val status: aws.sdk.kotlin.services.lightsail.model.Status? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.CreateGuiSessionAccessDetailsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateGuiSessionAccessDetailsResponse(")
append("failureReason=$failureReason,")
append("percentageComplete=$percentageComplete,")
append("resourceName=$resourceName,")
append("sessions=$sessions,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failureReason?.hashCode() ?: 0
result = 31 * result + (percentageComplete ?: 0)
result = 31 * result + (resourceName?.hashCode() ?: 0)
result = 31 * result + (sessions?.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 CreateGuiSessionAccessDetailsResponse
if (failureReason != other.failureReason) return false
if (percentageComplete != other.percentageComplete) return false
if (resourceName != other.resourceName) return false
if (sessions != other.sessions) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.CreateGuiSessionAccessDetailsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The reason the operation failed.
*/
public var failureReason: kotlin.String? = null
/**
* The percentage of completion for the operation.
*/
public var percentageComplete: kotlin.Int? = null
/**
* The resource name.
*/
public var resourceName: kotlin.String? = null
/**
* Returns information about the specified NICE DCV GUI session.
*/
public var sessions: List? = null
/**
* The status of the operation.
*/
public var status: aws.sdk.kotlin.services.lightsail.model.Status? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.CreateGuiSessionAccessDetailsResponse) : this() {
this.failureReason = x.failureReason
this.percentageComplete = x.percentageComplete
this.resourceName = x.resourceName
this.sessions = x.sessions
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.CreateGuiSessionAccessDetailsResponse = CreateGuiSessionAccessDetailsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy