
commonMain.aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartSessionsStatisticsAggregationResponse private constructor(builder: Builder) {
/**
* A unique identifier for the aggregated statistics. Use this identifier with the `GetAggregatedStatisticsForSessions` operation to return the statistics.
*/
public val aggregationId: kotlin.String = requireNotNull(builder.aggregationId) { "A non-null value must be provided for aggregationId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartSessionsStatisticsAggregationResponse(")
append("aggregationId=$aggregationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregationId.hashCode()
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 StartSessionsStatisticsAggregationResponse
if (aggregationId != other.aggregationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the aggregated statistics. Use this identifier with the `GetAggregatedStatisticsForSessions` operation to return the statistics.
*/
public var aggregationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationResponse) : this() {
this.aggregationId = x.aggregationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationResponse = StartSessionsStatisticsAggregationResponse(this)
internal fun correctErrors(): Builder {
if (aggregationId == null) aggregationId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy