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

commonMain.aws.sdk.kotlin.services.elastictranscoder.model.Notifications.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elastictranscoder.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify in order to report job status.
 *
 * To receive notifications, you must also subscribe to the new topic in the Amazon SNS console.
 */
public class Notifications private constructor(builder: Builder) {
    /**
     * The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.
     */
    public val completed: kotlin.String? = builder.completed
    /**
     * The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.
     */
    public val error: kotlin.String? = builder.error
    /**
     * The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.
     */
    public val progressing: kotlin.String? = builder.progressing
    /**
     * The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.
     */
    public val warning: kotlin.String? = builder.warning

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

    override fun toString(): kotlin.String = buildString {
        append("Notifications(")
        append("completed=$completed,")
        append("error=$error,")
        append("progressing=$progressing,")
        append("warning=$warning")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = completed?.hashCode() ?: 0
        result = 31 * result + (error?.hashCode() ?: 0)
        result = 31 * result + (progressing?.hashCode() ?: 0)
        result = 31 * result + (warning?.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 Notifications

        if (completed != other.completed) return false
        if (error != other.error) return false
        if (progressing != other.progressing) return false
        if (warning != other.warning) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job.
         */
        public var completed: kotlin.String? = null
        /**
         * The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition.
         */
        public var error: kotlin.String? = null
        /**
         * The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job.
         */
        public var progressing: kotlin.String? = null
        /**
         * The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition.
         */
        public var warning: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.Notifications) : this() {
            this.completed = x.completed
            this.error = x.error
            this.progressing = x.progressing
            this.warning = x.warning
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy