commonMain.aws.sdk.kotlin.services.appstream.model.Entitlement.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Specifies an entitlement. Entitlements control access to specific applications within a stack, based on user attributes. Entitlements apply to SAML 2.0 federated user identities. Amazon AppStream 2.0 user pool and streaming URL users are entitled to all applications in a stack. Entitlements don't apply to the desktop stream view application, or to applications managed by a dynamic app provider using the Dynamic Application Framework.
*/
public class Entitlement private constructor(builder: Builder) {
/**
* Specifies whether all or selected apps are entitled.
*/
public val appVisibility: aws.sdk.kotlin.services.appstream.model.AppVisibility? = builder.appVisibility
/**
* The attributes of the entitlement.
*/
public val attributes: List? = builder.attributes
/**
* The time when the entitlement was created.
*/
public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
/**
* The description of the entitlement.
*/
public val description: kotlin.String? = builder.description
/**
* The time when the entitlement was last modified.
*/
public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
/**
* The name of the entitlement.
*/
public val name: kotlin.String? = builder.name
/**
* The name of the stack with which the entitlement is associated.
*/
public val stackName: kotlin.String? = builder.stackName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.Entitlement = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Entitlement(")
append("appVisibility=$appVisibility,")
append("attributes=$attributes,")
append("createdTime=$createdTime,")
append("description=$description,")
append("lastModifiedTime=$lastModifiedTime,")
append("name=$name,")
append("stackName=$stackName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appVisibility?.hashCode() ?: 0
result = 31 * result + (attributes?.hashCode() ?: 0)
result = 31 * result + (createdTime?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (stackName?.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 Entitlement
if (appVisibility != other.appVisibility) return false
if (attributes != other.attributes) return false
if (createdTime != other.createdTime) return false
if (description != other.description) return false
if (lastModifiedTime != other.lastModifiedTime) return false
if (name != other.name) return false
if (stackName != other.stackName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.Entitlement = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies whether all or selected apps are entitled.
*/
public var appVisibility: aws.sdk.kotlin.services.appstream.model.AppVisibility? = null
/**
* The attributes of the entitlement.
*/
public var attributes: List? = null
/**
* The time when the entitlement was created.
*/
public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the entitlement.
*/
public var description: kotlin.String? = null
/**
* The time when the entitlement was last modified.
*/
public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the entitlement.
*/
public var name: kotlin.String? = null
/**
* The name of the stack with which the entitlement is associated.
*/
public var stackName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.Entitlement) : this() {
this.appVisibility = x.appVisibility
this.attributes = x.attributes
this.createdTime = x.createdTime
this.description = x.description
this.lastModifiedTime = x.lastModifiedTime
this.name = x.name
this.stackName = x.stackName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.Entitlement = Entitlement(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy