commonMain.aws.sdk.kotlin.services.deadline.model.GetSessionsStatisticsAggregationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetSessionsStatisticsAggregationRequest private constructor(builder: Builder) {
/**
* The identifier returned by the `StartSessionsStatisticsAggregation` operation that identifies the aggregated statistics.
*/
public val aggregationId: kotlin.String? = builder.aggregationId
/**
* The identifier of the farm to include in the statistics. This should be the same as the farm ID used in the call to the `StartSessionsStatisticsAggregation` operation.
*/
public val farmId: kotlin.String? = builder.farmId
/**
* The maximum number of results to return. Use this parameter with `NextToken` to get results as a set of sequential pages.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The token for the next set of results, or `null` to start from the beginning.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.GetSessionsStatisticsAggregationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSessionsStatisticsAggregationRequest(")
append("aggregationId=$aggregationId,")
append("farmId=$farmId,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregationId?.hashCode() ?: 0
result = 31 * result + (farmId?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.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 GetSessionsStatisticsAggregationRequest
if (aggregationId != other.aggregationId) return false
if (farmId != other.farmId) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.GetSessionsStatisticsAggregationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier returned by the `StartSessionsStatisticsAggregation` operation that identifies the aggregated statistics.
*/
public var aggregationId: kotlin.String? = null
/**
* The identifier of the farm to include in the statistics. This should be the same as the farm ID used in the call to the `StartSessionsStatisticsAggregation` operation.
*/
public var farmId: kotlin.String? = null
/**
* The maximum number of results to return. Use this parameter with `NextToken` to get results as a set of sequential pages.
*/
public var maxResults: kotlin.Int? = null
/**
* The token for the next set of results, or `null` to start from the beginning.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.GetSessionsStatisticsAggregationRequest) : this() {
this.aggregationId = x.aggregationId
this.farmId = x.farmId
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.GetSessionsStatisticsAggregationRequest = GetSessionsStatisticsAggregationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}