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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaStreamPipeline.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.chimesdkmediapipelines.model

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

/**
 * Structure that contains the settings for a media stream pipeline.
 */
public class MediaStreamPipeline private constructor(builder: Builder) {
    /**
     * The time at which the media stream pipeline was created.
     */
    public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
    /**
     * The ARN of the media stream pipeline.
     */
    public val mediaPipelineArn: kotlin.String? = builder.mediaPipelineArn
    /**
     * The ID of the media stream pipeline
     */
    public val mediaPipelineId: kotlin.String? = builder.mediaPipelineId
    /**
     * The media stream pipeline's data sinks.
     */
    public val sinks: List? = builder.sinks
    /**
     * The media stream pipeline's data sources.
     */
    public val sources: List? = builder.sources
    /**
     * The status of the media stream pipeline.
     */
    public val status: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipelineStatus? = builder.status
    /**
     * The time at which the media stream pipeline was updated.
     */
    public val updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedTimestamp

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

    override fun toString(): kotlin.String = buildString {
        append("MediaStreamPipeline(")
        append("createdTimestamp=$createdTimestamp,")
        append("mediaPipelineArn=$mediaPipelineArn,")
        append("mediaPipelineId=$mediaPipelineId,")
        append("sinks=$sinks,")
        append("sources=$sources,")
        append("status=$status,")
        append("updatedTimestamp=$updatedTimestamp")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdTimestamp?.hashCode() ?: 0
        result = 31 * result + (mediaPipelineArn?.hashCode() ?: 0)
        result = 31 * result + (mediaPipelineId?.hashCode() ?: 0)
        result = 31 * result + (sinks?.hashCode() ?: 0)
        result = 31 * result + (sources?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (updatedTimestamp?.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 MediaStreamPipeline

        if (createdTimestamp != other.createdTimestamp) return false
        if (mediaPipelineArn != other.mediaPipelineArn) return false
        if (mediaPipelineId != other.mediaPipelineId) return false
        if (sinks != other.sinks) return false
        if (sources != other.sources) return false
        if (status != other.status) return false
        if (updatedTimestamp != other.updatedTimestamp) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The time at which the media stream pipeline was created.
         */
        public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARN of the media stream pipeline.
         */
        public var mediaPipelineArn: kotlin.String? = null
        /**
         * The ID of the media stream pipeline
         */
        public var mediaPipelineId: kotlin.String? = null
        /**
         * The media stream pipeline's data sinks.
         */
        public var sinks: List? = null
        /**
         * The media stream pipeline's data sources.
         */
        public var sources: List? = null
        /**
         * The status of the media stream pipeline.
         */
        public var status: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipelineStatus? = null
        /**
         * The time at which the media stream pipeline was updated.
         */
        public var updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaStreamPipeline) : this() {
            this.createdTimestamp = x.createdTimestamp
            this.mediaPipelineArn = x.mediaPipelineArn
            this.mediaPipelineId = x.mediaPipelineId
            this.sinks = x.sinks
            this.sources = x.sources
            this.status = x.status
            this.updatedTimestamp = x.updatedTimestamp
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy