
commonMain.aws.sdk.kotlin.services.voiceid.model.FraudsterRegistrationJobSummary.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 fraudster registration job.
*/
public class FraudsterRegistrationJobSummary private constructor(builder: Builder) {
/**
* A timestamp of when the fraudster registration job was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The identifier of the domain that contains the fraudster registration job.
*/
public val domainId: kotlin.String? = builder.domainId
/**
* A timestamp of when the fraudster registration 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 fraudster registration job.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* The client-provided name for the fraudster registration job.
*/
public val jobName: kotlin.String? = builder.jobName
/**
* Shows the completed percentage of registration requests listed in the input file.
*/
public val jobProgress: aws.sdk.kotlin.services.voiceid.model.JobProgress? = builder.jobProgress
/**
* The current status of the fraudster registration job.
*/
public val jobStatus: aws.sdk.kotlin.services.voiceid.model.FraudsterRegistrationJobStatus? = builder.jobStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.voiceid.model.FraudsterRegistrationJobSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FraudsterRegistrationJobSummary(")
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 FraudsterRegistrationJobSummary
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.FraudsterRegistrationJobSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A timestamp of when the fraudster registration job was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The identifier of the domain that contains the fraudster registration job.
*/
public var domainId: kotlin.String? = null
/**
* A timestamp of when the fraudster registration 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 fraudster registration job.
*/
public var jobId: kotlin.String? = null
/**
* The client-provided name for the fraudster registration job.
*/
public var jobName: kotlin.String? = null
/**
* Shows the completed percentage of registration requests listed in the input file.
*/
public var jobProgress: aws.sdk.kotlin.services.voiceid.model.JobProgress? = null
/**
* The current status of the fraudster registration job.
*/
public var jobStatus: aws.sdk.kotlin.services.voiceid.model.FraudsterRegistrationJobStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.voiceid.model.FraudsterRegistrationJobSummary) : 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.FraudsterRegistrationJobSummary = FraudsterRegistrationJobSummary(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