
commonMain.aws.sdk.kotlin.services.rekognition.model.GetTextDetectionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
public class GetTextDetectionResponse private constructor(builder: Builder) {
/**
* Job identifier for the text detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartTextDetection.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* Current status of the text detection job.
*/
public val jobStatus: aws.sdk.kotlin.services.rekognition.model.VideoJobStatus? = builder.jobStatus
/**
* A job identifier specified in the call to StartTextDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.
*/
public val jobTag: kotlin.String? = builder.jobTag
/**
* If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of text.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* If the job fails, `StatusMessage` provides a descriptive error message.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.
*/
public val textDetections: List? = builder.textDetections
/**
* Version number of the text detection model that was used to detect text.
*/
public val textModelVersion: kotlin.String? = builder.textModelVersion
/**
* Video file stored in an Amazon S3 bucket. Amazon Rekognition video start operations such as StartLabelDetection use `Video` to specify a video for analysis. The supported file formats are .mp4, .mov and .avi.
*/
public val video: aws.sdk.kotlin.services.rekognition.model.Video? = builder.video
/**
* Information about a video that Amazon Rekognition analyzed. `Videometadata` is returned in every page of paginated responses from a Amazon Rekognition video operation.
*/
public val videoMetadata: aws.sdk.kotlin.services.rekognition.model.VideoMetadata? = builder.videoMetadata
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.GetTextDetectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetTextDetectionResponse(")
append("jobId=$jobId,")
append("jobStatus=$jobStatus,")
append("jobTag=$jobTag,")
append("nextToken=$nextToken,")
append("statusMessage=$statusMessage,")
append("textDetections=$textDetections,")
append("textModelVersion=$textModelVersion,")
append("video=$video,")
append("videoMetadata=$videoMetadata")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobId?.hashCode() ?: 0
result = 31 * result + (jobStatus?.hashCode() ?: 0)
result = 31 * result + (jobTag?.hashCode() ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.hashCode() ?: 0)
result = 31 * result + (textDetections?.hashCode() ?: 0)
result = 31 * result + (textModelVersion?.hashCode() ?: 0)
result = 31 * result + (video?.hashCode() ?: 0)
result = 31 * result + (videoMetadata?.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 GetTextDetectionResponse
if (jobId != other.jobId) return false
if (jobStatus != other.jobStatus) return false
if (jobTag != other.jobTag) return false
if (nextToken != other.nextToken) return false
if (statusMessage != other.statusMessage) return false
if (textDetections != other.textDetections) return false
if (textModelVersion != other.textModelVersion) return false
if (video != other.video) return false
if (videoMetadata != other.videoMetadata) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.GetTextDetectionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Job identifier for the text detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartTextDetection.
*/
public var jobId: kotlin.String? = null
/**
* Current status of the text detection job.
*/
public var jobStatus: aws.sdk.kotlin.services.rekognition.model.VideoJobStatus? = null
/**
* A job identifier specified in the call to StartTextDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.
*/
public var jobTag: kotlin.String? = null
/**
* If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of text.
*/
public var nextToken: kotlin.String? = null
/**
* If the job fails, `StatusMessage` provides a descriptive error message.
*/
public var statusMessage: kotlin.String? = null
/**
* An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.
*/
public var textDetections: List? = null
/**
* Version number of the text detection model that was used to detect text.
*/
public var textModelVersion: kotlin.String? = null
/**
* Video file stored in an Amazon S3 bucket. Amazon Rekognition video start operations such as StartLabelDetection use `Video` to specify a video for analysis. The supported file formats are .mp4, .mov and .avi.
*/
public var video: aws.sdk.kotlin.services.rekognition.model.Video? = null
/**
* Information about a video that Amazon Rekognition analyzed. `Videometadata` is returned in every page of paginated responses from a Amazon Rekognition video operation.
*/
public var videoMetadata: aws.sdk.kotlin.services.rekognition.model.VideoMetadata? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.GetTextDetectionResponse) : this() {
this.jobId = x.jobId
this.jobStatus = x.jobStatus
this.jobTag = x.jobTag
this.nextToken = x.nextToken
this.statusMessage = x.statusMessage
this.textDetections = x.textDetections
this.textModelVersion = x.textModelVersion
this.video = x.video
this.videoMetadata = x.videoMetadata
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.GetTextDetectionResponse = GetTextDetectionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.Video] inside the given [block]
*/
public fun video(block: aws.sdk.kotlin.services.rekognition.model.Video.Builder.() -> kotlin.Unit) {
this.video = aws.sdk.kotlin.services.rekognition.model.Video.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.VideoMetadata] inside the given [block]
*/
public fun videoMetadata(block: aws.sdk.kotlin.services.rekognition.model.VideoMetadata.Builder.() -> kotlin.Unit) {
this.videoMetadata = aws.sdk.kotlin.services.rekognition.model.VideoMetadata.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy