commonMain.aws.sdk.kotlin.services.appstream.model.UserSetting.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appstream-jvm Show documentation
Show all versions of appstream-jvm Show documentation
The AWS SDK for Kotlin client for AppStream
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
/**
* Describes an action and whether the action is enabled or disabled for users during their streaming sessions.
*/
public class UserSetting private constructor(builder: Builder) {
/**
* The action that is enabled or disabled.
*/
public val action: aws.sdk.kotlin.services.appstream.model.Action? = builder.action
/**
* Indicates whether the action is enabled or disabled.
*/
public val permission: aws.sdk.kotlin.services.appstream.model.Permission? = builder.permission
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.UserSetting = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UserSetting(")
append("action=$action,")
append("permission=$permission")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (permission?.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 UserSetting
if (action != other.action) return false
if (permission != other.permission) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.UserSetting = Builder(this).apply(block).build()
public class Builder {
/**
* The action that is enabled or disabled.
*/
public var action: aws.sdk.kotlin.services.appstream.model.Action? = null
/**
* Indicates whether the action is enabled or disabled.
*/
public var permission: aws.sdk.kotlin.services.appstream.model.Permission? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.UserSetting) : this() {
this.action = x.action
this.permission = x.permission
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.UserSetting = UserSetting(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy