commonMain.aws.sdk.kotlin.services.deadline.model.SearchJobsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SearchJobsRequest private constructor(builder: Builder) {
/**
* The farm ID of the job.
*/
public val farmId: kotlin.String? = builder.farmId
/**
* The filter expression, `AND` or `OR`, to use when searching among a group of search strings in a resource. You can use two groupings per search each within parenthesis `()`.
*/
public val filterExpressions: aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions? = builder.filterExpressions
/**
* Defines how far into the scrollable list to start the return of results.
*/
public val itemOffset: kotlin.Int? = builder.itemOffset
/**
* Specifies the number of items per page for the resource.
*/
public val pageSize: kotlin.Int? = builder.pageSize
/**
* The queue ID to use in the job search.
*/
public val queueIds: List? = builder.queueIds
/**
* The search terms for a resource.
*/
public val sortExpressions: List? = builder.sortExpressions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.SearchJobsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchJobsRequest(")
append("farmId=$farmId,")
append("filterExpressions=$filterExpressions,")
append("itemOffset=$itemOffset,")
append("pageSize=$pageSize,")
append("queueIds=$queueIds,")
append("sortExpressions=$sortExpressions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = farmId?.hashCode() ?: 0
result = 31 * result + (filterExpressions?.hashCode() ?: 0)
result = 31 * result + (itemOffset ?: 0)
result = 31 * result + (pageSize ?: 0)
result = 31 * result + (queueIds?.hashCode() ?: 0)
result = 31 * result + (sortExpressions?.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 SearchJobsRequest
if (farmId != other.farmId) return false
if (filterExpressions != other.filterExpressions) return false
if (itemOffset != other.itemOffset) return false
if (pageSize != other.pageSize) return false
if (queueIds != other.queueIds) return false
if (sortExpressions != other.sortExpressions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.SearchJobsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The farm ID of the job.
*/
public var farmId: kotlin.String? = null
/**
* The filter expression, `AND` or `OR`, to use when searching among a group of search strings in a resource. You can use two groupings per search each within parenthesis `()`.
*/
public var filterExpressions: aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions? = null
/**
* Defines how far into the scrollable list to start the return of results.
*/
public var itemOffset: kotlin.Int? = null
/**
* Specifies the number of items per page for the resource.
*/
public var pageSize: kotlin.Int? = null
/**
* The queue ID to use in the job search.
*/
public var queueIds: List? = null
/**
* The search terms for a resource.
*/
public var sortExpressions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.SearchJobsRequest) : this() {
this.farmId = x.farmId
this.filterExpressions = x.filterExpressions
this.itemOffset = x.itemOffset
this.pageSize = x.pageSize
this.queueIds = x.queueIds
this.sortExpressions = x.sortExpressions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.SearchJobsRequest = SearchJobsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions] inside the given [block]
*/
public fun filterExpressions(block: aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions.Builder.() -> kotlin.Unit) {
this.filterExpressions = aws.sdk.kotlin.services.deadline.model.SearchGroupedFilterExpressions.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}