
commonMain.aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudcontrol.model
public class GetResourceRequestStatusRequest private constructor(builder: Builder) {
/**
* A unique token used to track the progress of the resource operation request.
*
* Request tokens are included in the `ProgressEvent` type returned by a resource operation request.
*/
public val requestToken: kotlin.String = requireNotNull(builder.requestToken) { "A non-null value must be provided for requestToken" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetResourceRequestStatusRequest(")
append("requestToken=$requestToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = requestToken.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 GetResourceRequestStatusRequest
if (requestToken != other.requestToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique token used to track the progress of the resource operation request.
*
* Request tokens are included in the `ProgressEvent` type returned by a resource operation request.
*/
public var requestToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusRequest) : this() {
this.requestToken = x.requestToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudcontrol.model.GetResourceRequestStatusRequest = GetResourceRequestStatusRequest(this)
internal fun correctErrors(): Builder {
if (requestToken == null) requestToken = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy