
commonMain.aws.sdk.kotlin.services.swf.model.CountClosedWorkflowExecutionsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.swf.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the count of workflow executions returned from CountOpenWorkflowExecutions or CountClosedWorkflowExecutions
*/
public class CountClosedWorkflowExecutionsResponse private constructor(builder: Builder) {
/**
* The number of workflow executions.
*/
public val count: kotlin.Int = builder.count
/**
* If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
*/
public val truncated: kotlin.Boolean = builder.truncated
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.CountClosedWorkflowExecutionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CountClosedWorkflowExecutionsResponse(")
append("count=$count,")
append("truncated=$truncated")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = count
result = 31 * result + (truncated.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 CountClosedWorkflowExecutionsResponse
if (count != other.count) return false
if (truncated != other.truncated) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.CountClosedWorkflowExecutionsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of workflow executions.
*/
public var count: kotlin.Int = 0
/**
* If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
*/
public var truncated: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.CountClosedWorkflowExecutionsResponse) : this() {
this.count = x.count
this.truncated = x.truncated
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.CountClosedWorkflowExecutionsResponse = CountClosedWorkflowExecutionsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy