commonMain.aws.sdk.kotlin.services.codebuild.model.FleetStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The status of the compute fleet.
*/
public class FleetStatus private constructor(builder: Builder) {
/**
* Additional information about a compute fleet. Valid values include:
* + `CREATE_FAILED`: The compute fleet has failed to create.
* + `UPDATE_FAILED`: The compute fleet has failed to update.
*/
public val context: aws.sdk.kotlin.services.codebuild.model.FleetContextCode? = builder.context
/**
* A message associated with the status of a compute fleet.
*/
public val message: kotlin.String? = builder.message
/**
* The status code of the compute fleet. Valid values include:
* + `CREATING`: The compute fleet is being created.
* + `UPDATING`: The compute fleet is being updated.
* + `ROTATING`: The compute fleet is being rotated.
* + `PENDING_DELETION`: The compute fleet is pending deletion.
* + `DELETING`: The compute fleet is being deleted.
* + `CREATE_FAILED`: The compute fleet has failed to create.
* + `UPDATE_ROLLBACK_FAILED`: The compute fleet has failed to update and could not rollback to previous state.
* + `ACTIVE`: The compute fleet has succeeded and is active.
*/
public val statusCode: aws.sdk.kotlin.services.codebuild.model.FleetStatusCode? = builder.statusCode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.FleetStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FleetStatus(")
append("context=$context,")
append("message=$message,")
append("statusCode=$statusCode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = context?.hashCode() ?: 0
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (statusCode?.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 FleetStatus
if (context != other.context) return false
if (message != other.message) return false
if (statusCode != other.statusCode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.FleetStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Additional information about a compute fleet. Valid values include:
* + `CREATE_FAILED`: The compute fleet has failed to create.
* + `UPDATE_FAILED`: The compute fleet has failed to update.
*/
public var context: aws.sdk.kotlin.services.codebuild.model.FleetContextCode? = null
/**
* A message associated with the status of a compute fleet.
*/
public var message: kotlin.String? = null
/**
* The status code of the compute fleet. Valid values include:
* + `CREATING`: The compute fleet is being created.
* + `UPDATING`: The compute fleet is being updated.
* + `ROTATING`: The compute fleet is being rotated.
* + `PENDING_DELETION`: The compute fleet is pending deletion.
* + `DELETING`: The compute fleet is being deleted.
* + `CREATE_FAILED`: The compute fleet has failed to create.
* + `UPDATE_ROLLBACK_FAILED`: The compute fleet has failed to update and could not rollback to previous state.
* + `ACTIVE`: The compute fleet has succeeded and is active.
*/
public var statusCode: aws.sdk.kotlin.services.codebuild.model.FleetStatusCode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.FleetStatus) : this() {
this.context = x.context
this.message = x.message
this.statusCode = x.statusCode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.FleetStatus = FleetStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}