
commonMain.aws.sdk.kotlin.services.qapps.model.GetQAppSessionMetadataResponse.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 GetQAppSessionMetadataResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the 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 Q App session.
*/
public val sessionId: kotlin.String = requireNotNull(builder.sessionId) { "A non-null value must be provided for sessionId" }
/**
* The name of the Q App session.
*/
public val sessionName: kotlin.String? = builder.sessionName
/**
* Indicates whether the current user is the owner of the Q App session.
*/
public val sessionOwner: kotlin.Boolean? = builder.sessionOwner
/**
* The sharing configuration of the Q App data collection session.
*/
public val sharingConfiguration: aws.sdk.kotlin.services.qapps.model.SessionSharingConfiguration? = builder.sharingConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qapps.model.GetQAppSessionMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetQAppSessionMetadataResponse(")
append("sessionArn=$sessionArn,")
append("sessionId=$sessionId,")
append("sessionName=$sessionName,")
append("sessionOwner=$sessionOwner,")
append("sharingConfiguration=$sharingConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sessionArn.hashCode()
result = 31 * result + (sessionId.hashCode())
result = 31 * result + (sessionName?.hashCode() ?: 0)
result = 31 * result + (sessionOwner?.hashCode() ?: 0)
result = 31 * result + (sharingConfiguration?.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 GetQAppSessionMetadataResponse
if (sessionArn != other.sessionArn) return false
if (sessionId != other.sessionId) return false
if (sessionName != other.sessionName) return false
if (sessionOwner != other.sessionOwner) return false
if (sharingConfiguration != other.sharingConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qapps.model.GetQAppSessionMetadataResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the Q App session.
*/
public var sessionArn: kotlin.String? = null
/**
* The unique identifier of the Q App session.
*/
public var sessionId: kotlin.String? = null
/**
* The name of the Q App session.
*/
public var sessionName: kotlin.String? = null
/**
* Indicates whether the current user is the owner of the Q App session.
*/
public var sessionOwner: kotlin.Boolean? = null
/**
* The sharing configuration of the Q App data collection session.
*/
public var sharingConfiguration: aws.sdk.kotlin.services.qapps.model.SessionSharingConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qapps.model.GetQAppSessionMetadataResponse) : this() {
this.sessionArn = x.sessionArn
this.sessionId = x.sessionId
this.sessionName = x.sessionName
this.sessionOwner = x.sessionOwner
this.sharingConfiguration = x.sharingConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qapps.model.GetQAppSessionMetadataResponse = GetQAppSessionMetadataResponse(this)
/**
* construct an [aws.sdk.kotlin.services.qapps.model.SessionSharingConfiguration] inside the given [block]
*/
public fun sharingConfiguration(block: aws.sdk.kotlin.services.qapps.model.SessionSharingConfiguration.Builder.() -> kotlin.Unit) {
this.sharingConfiguration = aws.sdk.kotlin.services.qapps.model.SessionSharingConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
if (sessionArn == null) sessionArn = ""
if (sessionId == null) sessionId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy