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

commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.AddApplicationInputRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kinesisanalytics.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 *
 */
public class AddApplicationInputRequest private constructor(builder: Builder) {
    /**
     * Name of your existing Amazon Kinesis Analytics application to which you want to add the streaming source.
     */
    public val applicationName: kotlin.String? = builder.applicationName
    /**
     * Current version of your Amazon Kinesis Analytics application. You can use the [DescribeApplication](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html) operation to find the current application version.
     */
    public val currentApplicationVersionId: kotlin.Long? = builder.currentApplicationVersionId
    /**
     * The [Input](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_Input.html) to add.
     */
    public val input: aws.sdk.kotlin.services.kinesisanalytics.model.Input? = builder.input

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

    override fun toString(): kotlin.String = buildString {
        append("AddApplicationInputRequest(")
        append("applicationName=$applicationName,")
        append("currentApplicationVersionId=$currentApplicationVersionId,")
        append("input=$input")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationName?.hashCode() ?: 0
        result = 31 * result + (currentApplicationVersionId?.hashCode() ?: 0)
        result = 31 * result + (input?.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 AddApplicationInputRequest

        if (applicationName != other.applicationName) return false
        if (currentApplicationVersionId != other.currentApplicationVersionId) return false
        if (input != other.input) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Name of your existing Amazon Kinesis Analytics application to which you want to add the streaming source.
         */
        public var applicationName: kotlin.String? = null
        /**
         * Current version of your Amazon Kinesis Analytics application. You can use the [DescribeApplication](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html) operation to find the current application version.
         */
        public var currentApplicationVersionId: kotlin.Long? = null
        /**
         * The [Input](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_Input.html) to add.
         */
        public var input: aws.sdk.kotlin.services.kinesisanalytics.model.Input? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.AddApplicationInputRequest) : this() {
            this.applicationName = x.applicationName
            this.currentApplicationVersionId = x.currentApplicationVersionId
            this.input = x.input
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy