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

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

The 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

/**
 * The video stream pool configuration object.
 */
public class KinesisVideoStreamPoolConfiguration private constructor(builder: Builder) {
    /**
     * The time at which the configuration was created.
     */
    public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
    /**
     * The ARN of the video stream pool configuration.
     */
    public val poolArn: kotlin.String? = builder.poolArn
    /**
     * The ID of the video stream pool in the configuration.
     */
    public val poolId: kotlin.String? = builder.poolId
    /**
     * The name of the video stream pool configuration.
     */
    public val poolName: kotlin.String? = builder.poolName
    /**
     * The size of the video stream pool in the configuration.
     */
    public val poolSize: kotlin.Int? = builder.poolSize
    /**
     * The status of the video stream pool in the configuration.
     */
    public val poolStatus: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamPoolStatus? = builder.poolStatus
    /**
     * The Kinesis video stream pool configuration object.
     */
    public val streamConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration? = builder.streamConfiguration
    /**
     * The time at which the configuration 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.KinesisVideoStreamPoolConfiguration = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("KinesisVideoStreamPoolConfiguration(")
        append("createdTimestamp=$createdTimestamp,")
        append("poolArn=*** Sensitive Data Redacted ***,")
        append("poolId=$poolId,")
        append("poolName=$poolName,")
        append("poolSize=$poolSize,")
        append("poolStatus=$poolStatus,")
        append("streamConfiguration=$streamConfiguration,")
        append("updatedTimestamp=$updatedTimestamp")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdTimestamp?.hashCode() ?: 0
        result = 31 * result + (poolArn?.hashCode() ?: 0)
        result = 31 * result + (poolId?.hashCode() ?: 0)
        result = 31 * result + (poolName?.hashCode() ?: 0)
        result = 31 * result + (poolSize ?: 0)
        result = 31 * result + (poolStatus?.hashCode() ?: 0)
        result = 31 * result + (streamConfiguration?.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 KinesisVideoStreamPoolConfiguration

        if (createdTimestamp != other.createdTimestamp) return false
        if (poolArn != other.poolArn) return false
        if (poolId != other.poolId) return false
        if (poolName != other.poolName) return false
        if (poolSize != other.poolSize) return false
        if (poolStatus != other.poolStatus) return false
        if (streamConfiguration != other.streamConfiguration) return false
        if (updatedTimestamp != other.updatedTimestamp) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The time at which the configuration was created.
         */
        public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARN of the video stream pool configuration.
         */
        public var poolArn: kotlin.String? = null
        /**
         * The ID of the video stream pool in the configuration.
         */
        public var poolId: kotlin.String? = null
        /**
         * The name of the video stream pool configuration.
         */
        public var poolName: kotlin.String? = null
        /**
         * The size of the video stream pool in the configuration.
         */
        public var poolSize: kotlin.Int? = null
        /**
         * The status of the video stream pool in the configuration.
         */
        public var poolStatus: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamPoolStatus? = null
        /**
         * The Kinesis video stream pool configuration object.
         */
        public var streamConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration? = null
        /**
         * The time at which the configuration 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.KinesisVideoStreamPoolConfiguration) : this() {
            this.createdTimestamp = x.createdTimestamp
            this.poolArn = x.poolArn
            this.poolId = x.poolId
            this.poolName = x.poolName
            this.poolSize = x.poolSize
            this.poolStatus = x.poolStatus
            this.streamConfiguration = x.streamConfiguration
            this.updatedTimestamp = x.updatedTimestamp
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy