
commonMain.aws.sdk.kotlin.services.emr.model.DescribeJobFlowsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* The input for the DescribeJobFlows operation.
*/
public class DescribeJobFlowsRequest private constructor(builder: Builder) {
/**
* Return only job flows created after this date and time.
*/
public val createdAfter: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAfter
/**
* Return only job flows created before this date and time.
*/
public val createdBefore: aws.smithy.kotlin.runtime.time.Instant? = builder.createdBefore
/**
* Return only job flows whose job flow ID is contained in this list.
*/
public val jobFlowIds: List? = builder.jobFlowIds
/**
* Return only job flows whose state is contained in this list.
*/
public val jobFlowStates: List? = builder.jobFlowStates
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.DescribeJobFlowsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeJobFlowsRequest(")
append("createdAfter=$createdAfter,")
append("createdBefore=$createdBefore,")
append("jobFlowIds=$jobFlowIds,")
append("jobFlowStates=$jobFlowStates)")
}
override fun hashCode(): kotlin.Int {
var result = createdAfter?.hashCode() ?: 0
result = 31 * result + (createdBefore?.hashCode() ?: 0)
result = 31 * result + (jobFlowIds?.hashCode() ?: 0)
result = 31 * result + (jobFlowStates?.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 DescribeJobFlowsRequest
if (createdAfter != other.createdAfter) return false
if (createdBefore != other.createdBefore) return false
if (jobFlowIds != other.jobFlowIds) return false
if (jobFlowStates != other.jobFlowStates) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.DescribeJobFlowsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Return only job flows created after this date and time.
*/
public var createdAfter: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Return only job flows created before this date and time.
*/
public var createdBefore: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Return only job flows whose job flow ID is contained in this list.
*/
public var jobFlowIds: List? = null
/**
* Return only job flows whose state is contained in this list.
*/
public var jobFlowStates: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.DescribeJobFlowsRequest) : this() {
this.createdAfter = x.createdAfter
this.createdBefore = x.createdBefore
this.jobFlowIds = x.jobFlowIds
this.jobFlowStates = x.jobFlowStates
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.DescribeJobFlowsRequest = DescribeJobFlowsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy