
commonMain.aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudcontrol.model
public class GetResourceRequestStatusResponse private constructor(builder: Builder) {
/**
* Represents the current status of the resource operation request.
*/
public val progressEvent: aws.sdk.kotlin.services.cloudcontrol.model.ProgressEvent? = builder.progressEvent
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetResourceRequestStatusResponse(")
append("progressEvent=$progressEvent")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = progressEvent?.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 GetResourceRequestStatusResponse
if (progressEvent != other.progressEvent) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Represents the current status of the resource operation request.
*/
public var progressEvent: aws.sdk.kotlin.services.cloudcontrol.model.ProgressEvent? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusResponse) : this() {
this.progressEvent = x.progressEvent
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusResponse = GetResourceRequestStatusResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cloudcontrol.model.ProgressEvent] inside the given [block]
*/
public fun progressEvent(block: aws.sdk.kotlin.services.cloudcontrol.model.ProgressEvent.Builder.() -> kotlin.Unit) {
this.progressEvent = aws.sdk.kotlin.services.cloudcontrol.model.ProgressEvent.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy