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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaInsightsPipelineRequest.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

public class CreateMediaInsightsPipelineRequest private constructor(builder: Builder) {
    /**
     * The unique identifier for the media insights pipeline request.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The runtime configuration for the Kinesis video recording stream source.
     */
    public val kinesisVideoStreamRecordingSourceRuntimeConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamRecordingSourceRuntimeConfiguration? = builder.kinesisVideoStreamRecordingSourceRuntimeConfiguration
    /**
     * The runtime configuration for the Kinesis video stream source of the media insights pipeline.
     */
    public val kinesisVideoStreamSourceRuntimeConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceRuntimeConfiguration? = builder.kinesisVideoStreamSourceRuntimeConfiguration
    /**
     * The ARN of the pipeline's configuration.
     */
    public val mediaInsightsPipelineConfigurationArn: kotlin.String? = builder.mediaInsightsPipelineConfigurationArn
    /**
     * The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
     */
    public val mediaInsightsRuntimeMetadata: Map? = builder.mediaInsightsRuntimeMetadata
    /**
     * The runtime configuration for the S3 recording sink. If specified, the settings in this structure override any settings in `S3RecordingSinkConfiguration`.
     */
    public val s3RecordingSinkRuntimeConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.S3RecordingSinkRuntimeConfiguration? = builder.s3RecordingSinkRuntimeConfiguration
    /**
     * The tags assigned to the media insights pipeline.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateMediaInsightsPipelineRequest(")
        append("clientRequestToken=*** Sensitive Data Redacted ***,")
        append("kinesisVideoStreamRecordingSourceRuntimeConfiguration=$kinesisVideoStreamRecordingSourceRuntimeConfiguration,")
        append("kinesisVideoStreamSourceRuntimeConfiguration=$kinesisVideoStreamSourceRuntimeConfiguration,")
        append("mediaInsightsPipelineConfigurationArn=*** Sensitive Data Redacted ***,")
        append("mediaInsightsRuntimeMetadata=*** Sensitive Data Redacted ***,")
        append("s3RecordingSinkRuntimeConfiguration=$s3RecordingSinkRuntimeConfiguration,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (kinesisVideoStreamRecordingSourceRuntimeConfiguration?.hashCode() ?: 0)
        result = 31 * result + (kinesisVideoStreamSourceRuntimeConfiguration?.hashCode() ?: 0)
        result = 31 * result + (mediaInsightsPipelineConfigurationArn?.hashCode() ?: 0)
        result = 31 * result + (mediaInsightsRuntimeMetadata?.hashCode() ?: 0)
        result = 31 * result + (s3RecordingSinkRuntimeConfiguration?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateMediaInsightsPipelineRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (kinesisVideoStreamRecordingSourceRuntimeConfiguration != other.kinesisVideoStreamRecordingSourceRuntimeConfiguration) return false
        if (kinesisVideoStreamSourceRuntimeConfiguration != other.kinesisVideoStreamSourceRuntimeConfiguration) return false
        if (mediaInsightsPipelineConfigurationArn != other.mediaInsightsPipelineConfigurationArn) return false
        if (mediaInsightsRuntimeMetadata != other.mediaInsightsRuntimeMetadata) return false
        if (s3RecordingSinkRuntimeConfiguration != other.s3RecordingSinkRuntimeConfiguration) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier for the media insights pipeline request.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The runtime configuration for the Kinesis video recording stream source.
         */
        public var kinesisVideoStreamRecordingSourceRuntimeConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamRecordingSourceRuntimeConfiguration? = null
        /**
         * The runtime configuration for the Kinesis video stream source of the media insights pipeline.
         */
        public var kinesisVideoStreamSourceRuntimeConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceRuntimeConfiguration? = null
        /**
         * The ARN of the pipeline's configuration.
         */
        public var mediaInsightsPipelineConfigurationArn: kotlin.String? = null
        /**
         * The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
         */
        public var mediaInsightsRuntimeMetadata: Map? = null
        /**
         * The runtime configuration for the S3 recording sink. If specified, the settings in this structure override any settings in `S3RecordingSinkConfiguration`.
         */
        public var s3RecordingSinkRuntimeConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.S3RecordingSinkRuntimeConfiguration? = null
        /**
         * The tags assigned to the media insights pipeline.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaInsightsPipelineRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.kinesisVideoStreamRecordingSourceRuntimeConfiguration = x.kinesisVideoStreamRecordingSourceRuntimeConfiguration
            this.kinesisVideoStreamSourceRuntimeConfiguration = x.kinesisVideoStreamSourceRuntimeConfiguration
            this.mediaInsightsPipelineConfigurationArn = x.mediaInsightsPipelineConfigurationArn
            this.mediaInsightsRuntimeMetadata = x.mediaInsightsRuntimeMetadata
            this.s3RecordingSinkRuntimeConfiguration = x.s3RecordingSinkRuntimeConfiguration
            this.tags = x.tags
        }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy