commonMain.aws.sdk.kotlin.services.autoscaling.model.CapacityForecast.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoscaling-jvm Show documentation
Show all versions of autoscaling-jvm Show documentation
The AWS SDK for Kotlin client for Auto Scaling
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.autoscaling.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* A `GetPredictiveScalingForecast` call returns the capacity forecast for a predictive scaling policy. This structure includes the data points for that capacity forecast, along with the timestamps of those data points.
*/
public class CapacityForecast private constructor(builder: Builder) {
/**
* The timestamps for the data points, in UTC format.
*/
public val timestamps: List? = builder.timestamps
/**
* The values of the data points.
*/
public val values: List? = builder.values
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.autoscaling.model.CapacityForecast = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CapacityForecast(")
append("timestamps=$timestamps,")
append("values=$values")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = timestamps?.hashCode() ?: 0
result = 31 * result + (values?.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 CapacityForecast
if (timestamps != other.timestamps) return false
if (values != other.values) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.autoscaling.model.CapacityForecast = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamps for the data points, in UTC format.
*/
public var timestamps: List? = null
/**
* The values of the data points.
*/
public var values: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.autoscaling.model.CapacityForecast) : this() {
this.timestamps = x.timestamps
this.values = x.values
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.autoscaling.model.CapacityForecast = CapacityForecast(this)
internal fun correctErrors(): Builder {
return this
}
}
}