aws.sdk.kotlin.services.transcribe.model.ListTranscriptionJobsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transcribe Show documentation
Show all versions of transcribe Show documentation
Amazon Transcribe Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transcribe.model
class ListTranscriptionJobsRequest private constructor(builder: Builder) {
/**
* When specified, the jobs returned in the list are limited to jobs whose name contains the specified string.
*/
val jobNameContains: kotlin.String? = builder.jobNameContains
/**
* The maximum number of jobs to return in each page of results. If there are fewer results than the value you
* specify, only the actual results are returned. If you do not specify a value, the default of 5 is used.
*/
val maxResults: kotlin.Int? = builder.maxResults
/**
* If the result of the previous request to ListTranscriptionJobs is truncated, include the
* NextToken to fetch the next set of jobs.
*/
val nextToken: kotlin.String? = builder.nextToken
/**
* When specified, returns only transcription jobs with the specified status. Jobs are ordered by creation date, with
* the newest jobs returned first. If you don’t specify a status, Amazon Transcribe returns all transcription jobs ordered by creation
* date.
*/
val status: aws.sdk.kotlin.services.transcribe.model.TranscriptionJobStatus? = builder.status
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribe.model.ListTranscriptionJobsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ListTranscriptionJobsRequest(")
append("jobNameContains=$jobNameContains,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("status=$status)")
}
override fun hashCode(): kotlin.Int {
var result = jobNameContains?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (status?.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 ListTranscriptionJobsRequest
if (jobNameContains != other.jobNameContains) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (status != other.status) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribe.model.ListTranscriptionJobsRequest = Builder(this).apply(block).build()
class Builder {
/**
* When specified, the jobs returned in the list are limited to jobs whose name contains the specified string.
*/
var jobNameContains: kotlin.String? = null
/**
* The maximum number of jobs to return in each page of results. If there are fewer results than the value you
* specify, only the actual results are returned. If you do not specify a value, the default of 5 is used.
*/
var maxResults: kotlin.Int? = null
/**
* If the result of the previous request to ListTranscriptionJobs is truncated, include the
* NextToken to fetch the next set of jobs.
*/
var nextToken: kotlin.String? = null
/**
* When specified, returns only transcription jobs with the specified status. Jobs are ordered by creation date, with
* the newest jobs returned first. If you don’t specify a status, Amazon Transcribe returns all transcription jobs ordered by creation
* date.
*/
var status: aws.sdk.kotlin.services.transcribe.model.TranscriptionJobStatus? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribe.model.ListTranscriptionJobsRequest) : this() {
this.jobNameContains = x.jobNameContains
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transcribe.model.ListTranscriptionJobsRequest = ListTranscriptionJobsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy