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

commonMain.aws.sdk.kotlin.services.kinesisvideo.model.LastUploaderStatus.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.kinesisvideo.model

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

/**
 * The latest status of a stream’s edge to cloud uploader job.
 */
public class LastUploaderStatus private constructor(builder: Builder) {
    /**
     * A description of an uploader job’s latest status.
     */
    public val jobStatusDetails: kotlin.String? = builder.jobStatusDetails
    /**
     * The timestamp at which the uploader job was last executed and media collected to the cloud.
     */
    public val lastCollectedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastCollectedTime
    /**
     * The timestamp at which the uploader status was last updated.
     */
    public val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
    /**
     * The status of the latest uploader job.
     */
    public val uploaderStatus: aws.sdk.kotlin.services.kinesisvideo.model.UploaderStatus? = builder.uploaderStatus

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

    override fun toString(): kotlin.String = buildString {
        append("LastUploaderStatus(")
        append("jobStatusDetails=$jobStatusDetails,")
        append("lastCollectedTime=$lastCollectedTime,")
        append("lastUpdatedTime=$lastUpdatedTime,")
        append("uploaderStatus=$uploaderStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = jobStatusDetails?.hashCode() ?: 0
        result = 31 * result + (lastCollectedTime?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
        result = 31 * result + (uploaderStatus?.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 LastUploaderStatus

        if (jobStatusDetails != other.jobStatusDetails) return false
        if (lastCollectedTime != other.lastCollectedTime) return false
        if (lastUpdatedTime != other.lastUpdatedTime) return false
        if (uploaderStatus != other.uploaderStatus) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A description of an uploader job’s latest status.
         */
        public var jobStatusDetails: kotlin.String? = null
        /**
         * The timestamp at which the uploader job was last executed and media collected to the cloud.
         */
        public var lastCollectedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The timestamp at which the uploader status was last updated.
         */
        public var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status of the latest uploader job.
         */
        public var uploaderStatus: aws.sdk.kotlin.services.kinesisvideo.model.UploaderStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kinesisvideo.model.LastUploaderStatus) : this() {
            this.jobStatusDetails = x.jobStatusDetails
            this.lastCollectedTime = x.lastCollectedTime
            this.lastUpdatedTime = x.lastUpdatedTime
            this.uploaderStatus = x.uploaderStatus
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy