commonMain.aws.sdk.kotlin.services.applicationsignals.model.CreateServiceLevelObjectiveResponse.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
public class CreateServiceLevelObjectiveResponse private constructor(builder: Builder) {
/**
* A structure that contains information about the SLO that you just created.
*/
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.CreateServiceLevelObjectiveResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateServiceLevelObjectiveResponse(")
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 CreateServiceLevelObjectiveResponse
if (slo != other.slo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationsignals.model.CreateServiceLevelObjectiveResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A structure that contains information about the SLO that you just created.
*/
public var slo: aws.sdk.kotlin.services.applicationsignals.model.ServiceLevelObjective? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationsignals.model.CreateServiceLevelObjectiveResponse) : this() {
this.slo = x.slo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationsignals.model.CreateServiceLevelObjectiveResponse = CreateServiceLevelObjectiveResponse(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