commonMain.aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationsignals-jvm Show documentation
Show all versions of applicationsignals-jvm Show documentation
The AWS SDK for Kotlin client for Application Signals
// 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 BatchGetServiceLevelObjectiveBudgetReportResponse private constructor(builder: Builder) {
/**
* An array of structures, where each structure includes an error indicating that one of the requests in the array was not valid.
*/
public val errors: List = requireNotNull(builder.errors) { "A non-null value must be provided for errors" }
/**
* An array of structures, where each structure is one budget report.
*/
public val reports: List = requireNotNull(builder.reports) { "A non-null value must be provided for reports" }
/**
* The date and time that the report is 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 = requireNotNull(builder.timestamp) { "A non-null value must be provided for timestamp" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetServiceLevelObjectiveBudgetReportResponse(")
append("errors=$errors,")
append("reports=$reports,")
append("timestamp=$timestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errors.hashCode()
result = 31 * result + (reports.hashCode())
result = 31 * result + (timestamp.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 BatchGetServiceLevelObjectiveBudgetReportResponse
if (errors != other.errors) return false
if (reports != other.reports) return false
if (timestamp != other.timestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of structures, where each structure includes an error indicating that one of the requests in the array was not valid.
*/
public var errors: List? = null
/**
* An array of structures, where each structure is one budget report.
*/
public var reports: List? = null
/**
* The date and time that the report is 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.BatchGetServiceLevelObjectiveBudgetReportResponse) : this() {
this.errors = x.errors
this.reports = x.reports
this.timestamp = x.timestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationsignals.model.BatchGetServiceLevelObjectiveBudgetReportResponse = BatchGetServiceLevelObjectiveBudgetReportResponse(this)
internal fun correctErrors(): Builder {
if (errors == null) errors = emptyList()
if (reports == null) reports = emptyList()
if (timestamp == null) timestamp = Instant.fromEpochSeconds(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy