commonMain.aws.sdk.kotlin.services.applicationsignals.model.GetServiceLevelObjectiveResponse.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
public class GetServiceLevelObjectiveResponse private constructor(builder: Builder) {
/**
* A structure containing the information about the SLO.
*/
public val slo: aws.sdk.kotlin.services.applicationsignals.model.ServiceLevelObjective? = builder.slo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationsignals.model.GetServiceLevelObjectiveResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetServiceLevelObjectiveResponse(")
append("slo=$slo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = slo?.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 GetServiceLevelObjectiveResponse
if (slo != other.slo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationsignals.model.GetServiceLevelObjectiveResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A structure containing the information about the SLO.
*/
public var slo: aws.sdk.kotlin.services.applicationsignals.model.ServiceLevelObjective? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationsignals.model.GetServiceLevelObjectiveResponse) : this() {
this.slo = x.slo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationsignals.model.GetServiceLevelObjectiveResponse = GetServiceLevelObjectiveResponse(this)
/**
* construct an [aws.sdk.kotlin.services.applicationsignals.model.ServiceLevelObjective] inside the given [block]
*/
public fun slo(block: aws.sdk.kotlin.services.applicationsignals.model.ServiceLevelObjective.Builder.() -> kotlin.Unit) {
this.slo = aws.sdk.kotlin.services.applicationsignals.model.ServiceLevelObjective.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy