commonMain.aws.sdk.kotlin.services.appstream.model.DescribeSessionsRequest.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
public class DescribeSessionsRequest private constructor(builder: Builder) {
/**
* The authentication method. Specify `API` for a user authenticated using a streaming URL or `SAML` for a SAML federated user. The default is to authenticate users using a streaming URL.
*/
public val authenticationType: aws.sdk.kotlin.services.appstream.model.AuthenticationType? = builder.authenticationType
/**
* The name of the fleet. This value is case-sensitive.
*/
public val fleetName: kotlin.String? = builder.fleetName
/**
* The identifier for the instance hosting the session.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The size of each page of results. The default value is 20 and the maximum value is 50.
*/
public val limit: kotlin.Int? = builder.limit
/**
* The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The name of the stack. This value is case-sensitive.
*/
public val stackName: kotlin.String? = builder.stackName
/**
* The user identifier (ID). If you specify a user ID, you must also specify the authentication type.
*/
public val userId: kotlin.String? = builder.userId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.DescribeSessionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeSessionsRequest(")
append("authenticationType=$authenticationType,")
append("fleetName=$fleetName,")
append("instanceId=$instanceId,")
append("limit=$limit,")
append("nextToken=$nextToken,")
append("stackName=$stackName,")
append("userId=$userId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authenticationType?.hashCode() ?: 0
result = 31 * result + (fleetName?.hashCode() ?: 0)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (limit ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (stackName?.hashCode() ?: 0)
result = 31 * result + (userId?.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 DescribeSessionsRequest
if (authenticationType != other.authenticationType) return false
if (fleetName != other.fleetName) return false
if (instanceId != other.instanceId) return false
if (limit != other.limit) return false
if (nextToken != other.nextToken) return false
if (stackName != other.stackName) return false
if (userId != other.userId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.DescribeSessionsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The authentication method. Specify `API` for a user authenticated using a streaming URL or `SAML` for a SAML federated user. The default is to authenticate users using a streaming URL.
*/
public var authenticationType: aws.sdk.kotlin.services.appstream.model.AuthenticationType? = null
/**
* The name of the fleet. This value is case-sensitive.
*/
public var fleetName: kotlin.String? = null
/**
* The identifier for the instance hosting the session.
*/
public var instanceId: kotlin.String? = null
/**
* The size of each page of results. The default value is 20 and the maximum value is 50.
*/
public var limit: kotlin.Int? = null
/**
* The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
*/
public var nextToken: kotlin.String? = null
/**
* The name of the stack. This value is case-sensitive.
*/
public var stackName: kotlin.String? = null
/**
* The user identifier (ID). If you specify a user ID, you must also specify the authentication type.
*/
public var userId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.DescribeSessionsRequest) : this() {
this.authenticationType = x.authenticationType
this.fleetName = x.fleetName
this.instanceId = x.instanceId
this.limit = x.limit
this.nextToken = x.nextToken
this.stackName = x.stackName
this.userId = x.userId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.DescribeSessionsRequest = DescribeSessionsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy