All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.voiceid.model.SpeakerEnrollmentJobSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.voiceid.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Contains a summary of information about a speaker enrollment job.
 */
public class SpeakerEnrollmentJobSummary private constructor(builder: Builder) {
    /**
     * A timestamp of when of the speaker enrollment job was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The identifier of the domain that contains the speaker enrollment job.
     */
    public val domainId: kotlin.String? = builder.domainId
    /**
     * A timestamp of when the speaker enrollment job ended.
     */
    public val endedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.endedAt
    /**
     * Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a `JobStatus` of `COMPLETED_WITH_ERRORS`. You can use the job output file to identify the individual registration requests that failed.
     */
    public val failureDetails: aws.sdk.kotlin.services.voiceid.model.FailureDetails? = builder.failureDetails
    /**
     * The service-generated identifier for the speaker enrollment job.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * The client-provided name for the speaker enrollment job.
     */
    public val jobName: kotlin.String? = builder.jobName
    /**
     * Provides details regarding job progress. This field shows the completed percentage of enrollment requests listed in the input file.
     */
    public val jobProgress: aws.sdk.kotlin.services.voiceid.model.JobProgress? = builder.jobProgress
    /**
     * The current status of the speaker enrollment job.
     */
    public val jobStatus: aws.sdk.kotlin.services.voiceid.model.SpeakerEnrollmentJobStatus? = builder.jobStatus

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.voiceid.model.SpeakerEnrollmentJobSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SpeakerEnrollmentJobSummary(")
        append("createdAt=$createdAt,")
        append("domainId=$domainId,")
        append("endedAt=$endedAt,")
        append("failureDetails=$failureDetails,")
        append("jobId=$jobId,")
        append("jobName=*** Sensitive Data Redacted ***,")
        append("jobProgress=$jobProgress,")
        append("jobStatus=$jobStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (domainId?.hashCode() ?: 0)
        result = 31 * result + (endedAt?.hashCode() ?: 0)
        result = 31 * result + (failureDetails?.hashCode() ?: 0)
        result = 31 * result + (jobId?.hashCode() ?: 0)
        result = 31 * result + (jobName?.hashCode() ?: 0)
        result = 31 * result + (jobProgress?.hashCode() ?: 0)
        result = 31 * result + (jobStatus?.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 SpeakerEnrollmentJobSummary

        if (createdAt != other.createdAt) return false
        if (domainId != other.domainId) return false
        if (endedAt != other.endedAt) return false
        if (failureDetails != other.failureDetails) return false
        if (jobId != other.jobId) return false
        if (jobName != other.jobName) return false
        if (jobProgress != other.jobProgress) return false
        if (jobStatus != other.jobStatus) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.voiceid.model.SpeakerEnrollmentJobSummary = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A timestamp of when of the speaker enrollment job was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The identifier of the domain that contains the speaker enrollment job.
         */
        public var domainId: kotlin.String? = null
        /**
         * A timestamp of when the speaker enrollment job ended.
         */
        public var endedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a `JobStatus` of `COMPLETED_WITH_ERRORS`. You can use the job output file to identify the individual registration requests that failed.
         */
        public var failureDetails: aws.sdk.kotlin.services.voiceid.model.FailureDetails? = null
        /**
         * The service-generated identifier for the speaker enrollment job.
         */
        public var jobId: kotlin.String? = null
        /**
         * The client-provided name for the speaker enrollment job.
         */
        public var jobName: kotlin.String? = null
        /**
         * Provides details regarding job progress. This field shows the completed percentage of enrollment requests listed in the input file.
         */
        public var jobProgress: aws.sdk.kotlin.services.voiceid.model.JobProgress? = null
        /**
         * The current status of the speaker enrollment job.
         */
        public var jobStatus: aws.sdk.kotlin.services.voiceid.model.SpeakerEnrollmentJobStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.voiceid.model.SpeakerEnrollmentJobSummary) : this() {
            this.createdAt = x.createdAt
            this.domainId = x.domainId
            this.endedAt = x.endedAt
            this.failureDetails = x.failureDetails
            this.jobId = x.jobId
            this.jobName = x.jobName
            this.jobProgress = x.jobProgress
            this.jobStatus = x.jobStatus
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.voiceid.model.SpeakerEnrollmentJobSummary = SpeakerEnrollmentJobSummary(this)

        /**
         * construct an [aws.sdk.kotlin.services.voiceid.model.FailureDetails] inside the given [block]
         */
        public fun failureDetails(block: aws.sdk.kotlin.services.voiceid.model.FailureDetails.Builder.() -> kotlin.Unit) {
            this.failureDetails = aws.sdk.kotlin.services.voiceid.model.FailureDetails.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.voiceid.model.JobProgress] inside the given [block]
         */
        public fun jobProgress(block: aws.sdk.kotlin.services.voiceid.model.JobProgress.Builder.() -> kotlin.Unit) {
            this.jobProgress = aws.sdk.kotlin.services.voiceid.model.JobProgress.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy