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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaInsightsPipelineConfigurationRequest.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 CreateMediaInsightsPipelineConfigurationRequest private constructor(builder: Builder) {
    /**
     * The unique identifier for the media insights pipeline configuration request.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The elements in the request, such as a processor for Amazon Transcribe or a sink for a Kinesis Data Stream.
     */
    public val elements: List? = builder.elements
    /**
     * The name of the media insights pipeline configuration.
     */
    public val mediaInsightsPipelineConfigurationName: kotlin.String? = builder.mediaInsightsPipelineConfigurationName
    /**
     * The configuration settings for the real-time alerts in a media insights pipeline configuration.
     */
    public val realTimeAlertConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.RealTimeAlertConfiguration? = builder.realTimeAlertConfiguration
    /**
     * The ARN of the role used by the service to access Amazon Web Services resources, including `Transcribe` and `Transcribe Call Analytics`, on the caller’s behalf.
     */
    public val resourceAccessRoleArn: kotlin.String? = builder.resourceAccessRoleArn
    /**
     * The tags assigned to the media insights pipeline configuration.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateMediaInsightsPipelineConfigurationRequest(")
        append("clientRequestToken=*** Sensitive Data Redacted ***,")
        append("elements=$elements,")
        append("mediaInsightsPipelineConfigurationName=$mediaInsightsPipelineConfigurationName,")
        append("realTimeAlertConfiguration=$realTimeAlertConfiguration,")
        append("resourceAccessRoleArn=*** Sensitive Data Redacted ***,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (elements?.hashCode() ?: 0)
        result = 31 * result + (mediaInsightsPipelineConfigurationName?.hashCode() ?: 0)
        result = 31 * result + (realTimeAlertConfiguration?.hashCode() ?: 0)
        result = 31 * result + (resourceAccessRoleArn?.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 CreateMediaInsightsPipelineConfigurationRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (elements != other.elements) return false
        if (mediaInsightsPipelineConfigurationName != other.mediaInsightsPipelineConfigurationName) return false
        if (realTimeAlertConfiguration != other.realTimeAlertConfiguration) return false
        if (resourceAccessRoleArn != other.resourceAccessRoleArn) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier for the media insights pipeline configuration request.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The elements in the request, such as a processor for Amazon Transcribe or a sink for a Kinesis Data Stream.
         */
        public var elements: List? = null
        /**
         * The name of the media insights pipeline configuration.
         */
        public var mediaInsightsPipelineConfigurationName: kotlin.String? = null
        /**
         * The configuration settings for the real-time alerts in a media insights pipeline configuration.
         */
        public var realTimeAlertConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.RealTimeAlertConfiguration? = null
        /**
         * The ARN of the role used by the service to access Amazon Web Services resources, including `Transcribe` and `Transcribe Call Analytics`, on the caller’s behalf.
         */
        public var resourceAccessRoleArn: kotlin.String? = null
        /**
         * The tags assigned to the media insights pipeline configuration.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaInsightsPipelineConfigurationRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.elements = x.elements
            this.mediaInsightsPipelineConfigurationName = x.mediaInsightsPipelineConfigurationName
            this.realTimeAlertConfiguration = x.realTimeAlertConfiguration
            this.resourceAccessRoleArn = x.resourceAccessRoleArn
            this.tags = x.tags
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy