
commonMain.aws.sdk.kotlin.services.codestar.model.ProjectStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestar.model
/**
* An indication of whether a project creation or deletion is failed or successful.
*/
public class ProjectStatus private constructor(builder: Builder) {
/**
* In the case of a project creation or deletion failure, a reason for the failure.
*/
public val reason: kotlin.String? = builder.reason
/**
* The phase of completion for a project creation or deletion.
*/
public val state: kotlin.String? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestar.model.ProjectStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProjectStatus(")
append("reason=$reason,")
append("state=$state")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = reason?.hashCode() ?: 0
result = 31 * result + (state?.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 ProjectStatus
if (reason != other.reason) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestar.model.ProjectStatus = Builder(this).apply(block).build()
public class Builder {
/**
* In the case of a project creation or deletion failure, a reason for the failure.
*/
public var reason: kotlin.String? = null
/**
* The phase of completion for a project creation or deletion.
*/
public var state: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestar.model.ProjectStatus) : this() {
this.reason = x.reason
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestar.model.ProjectStatus = ProjectStatus(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy