
commonMain.aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qapps.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateQAppSessionResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the updated Q App session.
*/
public val sessionArn: kotlin.String = requireNotNull(builder.sessionArn) { "A non-null value must be provided for sessionArn" }
/**
* The unique identifier of the updated Q App session.
*/
public val sessionId: kotlin.String = requireNotNull(builder.sessionId) { "A non-null value must be provided for sessionId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateQAppSessionResponse(")
append("sessionArn=$sessionArn,")
append("sessionId=$sessionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sessionArn.hashCode()
result = 31 * result + (sessionId.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 UpdateQAppSessionResponse
if (sessionArn != other.sessionArn) return false
if (sessionId != other.sessionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the updated Q App session.
*/
public var sessionArn: kotlin.String? = null
/**
* The unique identifier of the updated Q App session.
*/
public var sessionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionResponse) : this() {
this.sessionArn = x.sessionArn
this.sessionId = x.sessionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionResponse = UpdateQAppSessionResponse(this)
internal fun correctErrors(): Builder {
if (sessionArn == null) sessionArn = ""
if (sessionId == null) sessionId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy