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

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

public class UpdateMediaInsightsPipelineConfigurationRequest private constructor(builder: Builder) {
    /**
     * 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 unique identifier for the resource to be updated. Valid values include the name and ARN of the media insights pipeline configuration.
     */
    public val identifier: kotlin.String? = builder.identifier
    /**
     * The configuration settings for real-time alerts for the media insights pipeline.
     */
    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.
     */
    public val resourceAccessRoleArn: kotlin.String? = builder.resourceAccessRoleArn

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

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

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

        if (elements != other.elements) return false
        if (identifier != other.identifier) return false
        if (realTimeAlertConfiguration != other.realTimeAlertConfiguration) return false
        if (resourceAccessRoleArn != other.resourceAccessRoleArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * 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 unique identifier for the resource to be updated. Valid values include the name and ARN of the media insights pipeline configuration.
         */
        public var identifier: kotlin.String? = null
        /**
         * The configuration settings for real-time alerts for the media insights pipeline.
         */
        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.
         */
        public var resourceAccessRoleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.UpdateMediaInsightsPipelineConfigurationRequest) : this() {
            this.elements = x.elements
            this.identifier = x.identifier
            this.realTimeAlertConfiguration = x.realTimeAlertConfiguration
            this.resourceAccessRoleArn = x.resourceAccessRoleArn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.UpdateMediaInsightsPipelineConfigurationRequest = UpdateMediaInsightsPipelineConfigurationRequest(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