
commonMain.aws.sdk.kotlin.services.swf.model.CountOpenWorkflowExecutionsRequest.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
public class CountOpenWorkflowExecutionsRequest private constructor(builder: Builder) {
/**
* The name of the domain containing the workflow executions to count.
*/
public val domain: kotlin.String? = builder.domain
/**
* If specified, only workflow executions matching the `WorkflowId` in the filter are counted.
*
* `executionFilter`, `typeFilter` and `tagFilter` are mutually exclusive. You can specify at most one of these in a request.
*/
public val executionFilter: aws.sdk.kotlin.services.swf.model.WorkflowExecutionFilter? = builder.executionFilter
/**
* Specifies the start time criteria that workflow executions must meet in order to be counted.
*/
public val startTimeFilter: aws.sdk.kotlin.services.swf.model.ExecutionTimeFilter? = builder.startTimeFilter
/**
* If specified, only executions that have a tag that matches the filter are counted.
*
* `executionFilter`, `typeFilter` and `tagFilter` are mutually exclusive. You can specify at most one of these in a request.
*/
public val tagFilter: aws.sdk.kotlin.services.swf.model.TagFilter? = builder.tagFilter
/**
* Specifies the type of the workflow executions to be counted.
*
* `executionFilter`, `typeFilter` and `tagFilter` are mutually exclusive. You can specify at most one of these in a request.
*/
public val typeFilter: aws.sdk.kotlin.services.swf.model.WorkflowTypeFilter? = builder.typeFilter
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.CountOpenWorkflowExecutionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CountOpenWorkflowExecutionsRequest(")
append("domain=$domain,")
append("executionFilter=$executionFilter,")
append("startTimeFilter=$startTimeFilter,")
append("tagFilter=$tagFilter,")
append("typeFilter=$typeFilter")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domain?.hashCode() ?: 0
result = 31 * result + (executionFilter?.hashCode() ?: 0)
result = 31 * result + (startTimeFilter?.hashCode() ?: 0)
result = 31 * result + (tagFilter?.hashCode() ?: 0)
result = 31 * result + (typeFilter?.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 CountOpenWorkflowExecutionsRequest
if (domain != other.domain) return false
if (executionFilter != other.executionFilter) return false
if (startTimeFilter != other.startTimeFilter) return false
if (tagFilter != other.tagFilter) return false
if (typeFilter != other.typeFilter) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.CountOpenWorkflowExecutionsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the domain containing the workflow executions to count.
*/
public var domain: kotlin.String? = null
/**
* If specified, only workflow executions matching the `WorkflowId` in the filter are counted.
*
* `executionFilter`, `typeFilter` and `tagFilter` are mutually exclusive. You can specify at most one of these in a request.
*/
public var executionFilter: aws.sdk.kotlin.services.swf.model.WorkflowExecutionFilter? = null
/**
* Specifies the start time criteria that workflow executions must meet in order to be counted.
*/
public var startTimeFilter: aws.sdk.kotlin.services.swf.model.ExecutionTimeFilter? = null
/**
* If specified, only executions that have a tag that matches the filter are counted.
*
* `executionFilter`, `typeFilter` and `tagFilter` are mutually exclusive. You can specify at most one of these in a request.
*/
public var tagFilter: aws.sdk.kotlin.services.swf.model.TagFilter? = null
/**
* Specifies the type of the workflow executions to be counted.
*
* `executionFilter`, `typeFilter` and `tagFilter` are mutually exclusive. You can specify at most one of these in a request.
*/
public var typeFilter: aws.sdk.kotlin.services.swf.model.WorkflowTypeFilter? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.CountOpenWorkflowExecutionsRequest) : this() {
this.domain = x.domain
this.executionFilter = x.executionFilter
this.startTimeFilter = x.startTimeFilter
this.tagFilter = x.tagFilter
this.typeFilter = x.typeFilter
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.CountOpenWorkflowExecutionsRequest = CountOpenWorkflowExecutionsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.swf.model.WorkflowExecutionFilter] inside the given [block]
*/
public fun executionFilter(block: aws.sdk.kotlin.services.swf.model.WorkflowExecutionFilter.Builder.() -> kotlin.Unit) {
this.executionFilter = aws.sdk.kotlin.services.swf.model.WorkflowExecutionFilter.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.swf.model.ExecutionTimeFilter] inside the given [block]
*/
public fun startTimeFilter(block: aws.sdk.kotlin.services.swf.model.ExecutionTimeFilter.Builder.() -> kotlin.Unit) {
this.startTimeFilter = aws.sdk.kotlin.services.swf.model.ExecutionTimeFilter.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.swf.model.TagFilter] inside the given [block]
*/
public fun tagFilter(block: aws.sdk.kotlin.services.swf.model.TagFilter.Builder.() -> kotlin.Unit) {
this.tagFilter = aws.sdk.kotlin.services.swf.model.TagFilter.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.swf.model.WorkflowTypeFilter] inside the given [block]
*/
public fun typeFilter(block: aws.sdk.kotlin.services.swf.model.WorkflowTypeFilter.Builder.() -> kotlin.Unit) {
this.typeFilter = aws.sdk.kotlin.services.swf.model.WorkflowTypeFilter.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy