commonMain.aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationsignals.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class BatchGetServiceLevelObjectiveBudgetReportRequest private constructor(builder: Builder) {
/**
* An array containing the IDs of the service level objectives that you want to include in the report.
*/
public val sloIds: List? = builder.sloIds
/**
* The date and time that you want the report to be for. It is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
*/
public val timestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.timestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetServiceLevelObjectiveBudgetReportRequest(")
append("sloIds=$sloIds,")
append("timestamp=$timestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sloIds?.hashCode() ?: 0
result = 31 * result + (timestamp?.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 BatchGetServiceLevelObjectiveBudgetReportRequest
if (sloIds != other.sloIds) return false
if (timestamp != other.timestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array containing the IDs of the service level objectives that you want to include in the report.
*/
public var sloIds: List? = null
/**
* The date and time that you want the report to be for. It is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
*/
public var timestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportRequest) : this() {
this.sloIds = x.sloIds
this.timestamp = x.timestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportRequest = BatchGetServiceLevelObjectiveBudgetReportRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy