commonMain.aws.sdk.kotlin.services.appstream.model.DescribeEntitlementsRequest.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
class DescribeEntitlementsRequest private constructor(builder: Builder) {
/**
* The maximum size of each page of results.
*/
val maxResults: kotlin.Int? = builder.maxResults
/**
* The name of the entitlement.
*/
val name: kotlin.String? = builder.name
/**
* The pagination token used to retrieve the next page of results for this operation.
*/
val nextToken: kotlin.String? = builder.nextToken
/**
* The name of the stack with which the entitlement is associated.
*/
val stackName: kotlin.String? = builder.stackName
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.DescribeEntitlementsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeEntitlementsRequest(")
append("maxResults=$maxResults,")
append("name=$name,")
append("nextToken=$nextToken,")
append("stackName=$stackName)")
}
override fun hashCode(): kotlin.Int {
var result = maxResults ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (nextToken?.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 DescribeEntitlementsRequest
if (maxResults != other.maxResults) return false
if (name != other.name) return false
if (nextToken != other.nextToken) return false
if (stackName != other.stackName) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.DescribeEntitlementsRequest = Builder(this).apply(block).build()
class Builder {
/**
* The maximum size of each page of results.
*/
var maxResults: kotlin.Int? = null
/**
* The name of the entitlement.
*/
var name: kotlin.String? = null
/**
* The pagination token used to retrieve the next page of results for this operation.
*/
var nextToken: kotlin.String? = null
/**
* The name of the stack with which the entitlement is associated.
*/
var stackName: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.DescribeEntitlementsRequest) : this() {
this.maxResults = x.maxResults
this.name = x.name
this.nextToken = x.nextToken
this.stackName = x.stackName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.DescribeEntitlementsRequest = DescribeEntitlementsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy