
commonMain.aws.sdk.kotlin.services.qapps.model.StartQAppSessionRequest.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 StartQAppSessionRequest private constructor(builder: Builder) {
/**
* The unique identifier of the Q App to start a session for.
*/
public val appId: kotlin.String? = builder.appId
/**
* The version of the Q App to use for the session.
*/
public val appVersion: kotlin.Int? = builder.appVersion
/**
* Optional initial input values to provide for the Q App session.
*/
public val initialValues: List? = builder.initialValues
/**
* The unique identifier of the Amazon Q Business application environment instance.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The unique identifier of the a Q App session.
*/
public val sessionId: kotlin.String? = builder.sessionId
/**
* Optional tags to associate with the new Q App session.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qapps.model.StartQAppSessionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartQAppSessionRequest(")
append("appId=$appId,")
append("appVersion=$appVersion,")
append("initialValues=$initialValues,")
append("instanceId=$instanceId,")
append("sessionId=$sessionId,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appId?.hashCode() ?: 0
result = 31 * result + (appVersion ?: 0)
result = 31 * result + (initialValues?.hashCode() ?: 0)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (sessionId?.hashCode() ?: 0)
result = 31 * result + (tags?.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 StartQAppSessionRequest
if (appId != other.appId) return false
if (appVersion != other.appVersion) return false
if (initialValues != other.initialValues) return false
if (instanceId != other.instanceId) return false
if (sessionId != other.sessionId) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qapps.model.StartQAppSessionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the Q App to start a session for.
*/
public var appId: kotlin.String? = null
/**
* The version of the Q App to use for the session.
*/
public var appVersion: kotlin.Int? = null
/**
* Optional initial input values to provide for the Q App session.
*/
public var initialValues: List? = null
/**
* The unique identifier of the Amazon Q Business application environment instance.
*/
public var instanceId: kotlin.String? = null
/**
* The unique identifier of the a Q App session.
*/
public var sessionId: kotlin.String? = null
/**
* Optional tags to associate with the new Q App session.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qapps.model.StartQAppSessionRequest) : this() {
this.appId = x.appId
this.appVersion = x.appVersion
this.initialValues = x.initialValues
this.instanceId = x.instanceId
this.sessionId = x.sessionId
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qapps.model.StartQAppSessionRequest = StartQAppSessionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy