
commonMain.aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationRequest.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
import aws.smithy.kotlin.runtime.time.Instant
public class StartSessionsStatisticsAggregationRequest private constructor(builder: Builder) {
/**
* The Linux timestamp of the date and time that the statistics end.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* The identifier of the farm that contains queues or fleets to return statistics for.
*/
public val farmId: kotlin.String? = builder.farmId
/**
* The field to use to group the statistics.
*/
public val groupBy: List? = builder.groupBy
/**
* The period to aggregate the statistics.
*/
public val period: aws.sdk.kotlin.services.deadline.model.Period? = builder.period
/**
* A list of fleet IDs or queue IDs to gather statistics for.
*/
public val resourceIds: aws.sdk.kotlin.services.deadline.model.SessionsStatisticsResources? = builder.resourceIds
/**
* The Linux timestamp of the date and time that the statistics start.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* One to four statistics to return.
*/
public val statistics: List? = builder.statistics
/**
* The timezone to use for the statistics. Use UTC notation such as "UTC+8."
*/
public val timezone: kotlin.String? = builder.timezone
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartSessionsStatisticsAggregationRequest(")
append("endTime=$endTime,")
append("farmId=$farmId,")
append("groupBy=$groupBy,")
append("period=$period,")
append("resourceIds=$resourceIds,")
append("startTime=$startTime,")
append("statistics=$statistics,")
append("timezone=$timezone")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endTime?.hashCode() ?: 0
result = 31 * result + (farmId?.hashCode() ?: 0)
result = 31 * result + (groupBy?.hashCode() ?: 0)
result = 31 * result + (period?.hashCode() ?: 0)
result = 31 * result + (resourceIds?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (statistics?.hashCode() ?: 0)
result = 31 * result + (timezone?.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 StartSessionsStatisticsAggregationRequest
if (endTime != other.endTime) return false
if (farmId != other.farmId) return false
if (groupBy != other.groupBy) return false
if (period != other.period) return false
if (resourceIds != other.resourceIds) return false
if (startTime != other.startTime) return false
if (statistics != other.statistics) return false
if (timezone != other.timezone) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Linux timestamp of the date and time that the statistics end.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The identifier of the farm that contains queues or fleets to return statistics for.
*/
public var farmId: kotlin.String? = null
/**
* The field to use to group the statistics.
*/
public var groupBy: List? = null
/**
* The period to aggregate the statistics.
*/
public var period: aws.sdk.kotlin.services.deadline.model.Period? = null
/**
* A list of fleet IDs or queue IDs to gather statistics for.
*/
public var resourceIds: aws.sdk.kotlin.services.deadline.model.SessionsStatisticsResources? = null
/**
* The Linux timestamp of the date and time that the statistics start.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* One to four statistics to return.
*/
public var statistics: List? = null
/**
* The timezone to use for the statistics. Use UTC notation such as "UTC+8."
*/
public var timezone: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationRequest) : this() {
this.endTime = x.endTime
this.farmId = x.farmId
this.groupBy = x.groupBy
this.period = x.period
this.resourceIds = x.resourceIds
this.startTime = x.startTime
this.statistics = x.statistics
this.timezone = x.timezone
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.StartSessionsStatisticsAggregationRequest = StartSessionsStatisticsAggregationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy