
commonMain.aws.sdk.kotlin.services.groundstation.model.AggregateStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Aggregate status of Agent components.
*/
public class AggregateStatus private constructor(builder: Builder) {
/**
* Sparse map of failure signatures.
*/
public val signatureMap: Map? = builder.signatureMap
/**
* Aggregate status.
*/
public val status: aws.sdk.kotlin.services.groundstation.model.AgentStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.AggregateStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AggregateStatus(")
append("signatureMap=$signatureMap,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = signatureMap?.hashCode() ?: 0
result = 31 * result + (status.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 AggregateStatus
if (signatureMap != other.signatureMap) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.AggregateStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Sparse map of failure signatures.
*/
public var signatureMap: Map? = null
/**
* Aggregate status.
*/
public var status: aws.sdk.kotlin.services.groundstation.model.AgentStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.AggregateStatus) : this() {
this.signatureMap = x.signatureMap
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.AggregateStatus = AggregateStatus(this)
internal fun correctErrors(): Builder {
if (status == null) status = AgentStatus.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy