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

commonMain.aws.sdk.kotlin.services.mediapackage.model.DescribeHarvestJobResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mediapackage.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeHarvestJobResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) assigned to the HarvestJob.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The ID of the Channel that the HarvestJob will harvest from.
     */
    public val channelId: kotlin.String? = builder.channelId
    /**
     * The date and time the HarvestJob was submitted.
     */
    public val createdAt: kotlin.String? = builder.createdAt
    /**
     * The end of the time-window which will be harvested.
     */
    public val endTime: kotlin.String? = builder.endTime
    /**
     * The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted.
     */
    public val originEndpointId: kotlin.String? = builder.originEndpointId
    /**
     * Configuration parameters for where in an S3 bucket to place the harvested content
     */
    public val s3Destination: aws.sdk.kotlin.services.mediapackage.model.S3Destination? = builder.s3Destination
    /**
     * The start of the time-window which will be harvested.
     */
    public val startTime: kotlin.String? = builder.startTime
    /**
     * The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will include an explanation of why the HarvestJob failed.
     */
    public val status: aws.sdk.kotlin.services.mediapackage.model.Status? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeHarvestJobResponse(")
        append("arn=$arn,")
        append("channelId=$channelId,")
        append("createdAt=$createdAt,")
        append("endTime=$endTime,")
        append("id=$id,")
        append("originEndpointId=$originEndpointId,")
        append("s3Destination=$s3Destination,")
        append("startTime=$startTime,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (channelId?.hashCode() ?: 0)
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (originEndpointId?.hashCode() ?: 0)
        result = 31 * result + (s3Destination?.hashCode() ?: 0)
        result = 31 * result + (startTime?.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 DescribeHarvestJobResponse

        if (arn != other.arn) return false
        if (channelId != other.channelId) return false
        if (createdAt != other.createdAt) return false
        if (endTime != other.endTime) return false
        if (id != other.id) return false
        if (originEndpointId != other.originEndpointId) return false
        if (s3Destination != other.s3Destination) return false
        if (startTime != other.startTime) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) assigned to the HarvestJob.
         */
        public var arn: kotlin.String? = null
        /**
         * The ID of the Channel that the HarvestJob will harvest from.
         */
        public var channelId: kotlin.String? = null
        /**
         * The date and time the HarvestJob was submitted.
         */
        public var createdAt: kotlin.String? = null
        /**
         * The end of the time-window which will be harvested.
         */
        public var endTime: kotlin.String? = null
        /**
         * The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted.
         */
        public var id: kotlin.String? = null
        /**
         * The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted.
         */
        public var originEndpointId: kotlin.String? = null
        /**
         * Configuration parameters for where in an S3 bucket to place the harvested content
         */
        public var s3Destination: aws.sdk.kotlin.services.mediapackage.model.S3Destination? = null
        /**
         * The start of the time-window which will be harvested.
         */
        public var startTime: kotlin.String? = null
        /**
         * The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will include an explanation of why the HarvestJob failed.
         */
        public var status: aws.sdk.kotlin.services.mediapackage.model.Status? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediapackage.model.DescribeHarvestJobResponse) : this() {
            this.arn = x.arn
            this.channelId = x.channelId
            this.createdAt = x.createdAt
            this.endTime = x.endTime
            this.id = x.id
            this.originEndpointId = x.originEndpointId
            this.s3Destination = x.s3Destination
            this.startTime = x.startTime
            this.status = x.status
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy