commonMain.aws.sdk.kotlin.services.computeoptimizer.model.UpdateEnrollmentStatusResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of computeoptimizer-jvm Show documentation
Show all versions of computeoptimizer-jvm Show documentation
The AWS SDK for Kotlin client for Compute Optimizer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.computeoptimizer.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateEnrollmentStatusResponse private constructor(builder: Builder) {
/**
* The enrollment status of the account.
*/
public val status: aws.sdk.kotlin.services.computeoptimizer.model.Status? = builder.status
/**
* The reason for the enrollment status of the account. For example, an account might show a status of `Pending` because member accounts of an organization require more time to be enrolled in the service.
*/
public val statusReason: kotlin.String? = builder.statusReason
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.computeoptimizer.model.UpdateEnrollmentStatusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateEnrollmentStatusResponse(")
append("status=$status,")
append("statusReason=$statusReason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = status?.hashCode() ?: 0
result = 31 * result + (statusReason?.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 UpdateEnrollmentStatusResponse
if (status != other.status) return false
if (statusReason != other.statusReason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.computeoptimizer.model.UpdateEnrollmentStatusResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The enrollment status of the account.
*/
public var status: aws.sdk.kotlin.services.computeoptimizer.model.Status? = null
/**
* The reason for the enrollment status of the account. For example, an account might show a status of `Pending` because member accounts of an organization require more time to be enrolled in the service.
*/
public var statusReason: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.computeoptimizer.model.UpdateEnrollmentStatusResponse) : this() {
this.status = x.status
this.statusReason = x.statusReason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.computeoptimizer.model.UpdateEnrollmentStatusResponse = UpdateEnrollmentStatusResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}