
commonMain.aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionMetadataResponse.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 UpdateQAppSessionMetadataResponse 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" }
/**
* The new name of the updated Q App session.
*/
public val sessionName: kotlin.String? = builder.sessionName
/**
* The new sharing configuration of the updated 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.UpdateQAppSessionMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateQAppSessionMetadataResponse(")
append("sessionArn=$sessionArn,")
append("sessionId=$sessionId,")
append("sessionName=$sessionName,")
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 + (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 UpdateQAppSessionMetadataResponse
if (sessionArn != other.sessionArn) return false
if (sessionId != other.sessionId) return false
if (sessionName != other.sessionName) return false
if (sharingConfiguration != other.sharingConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionMetadataResponse = 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
/**
* The new name of the updated Q App session.
*/
public var sessionName: kotlin.String? = null
/**
* The new sharing configuration of the updated 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.UpdateQAppSessionMetadataResponse) : this() {
this.sessionArn = x.sessionArn
this.sessionId = x.sessionId
this.sessionName = x.sessionName
this.sharingConfiguration = x.sharingConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qapps.model.UpdateQAppSessionMetadataResponse = UpdateQAppSessionMetadataResponse(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