commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.AddApplicationInputProcessingConfigurationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisanalytics-jvm Show documentation
Show all versions of kinesisanalytics-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Analytics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisanalytics.model
import aws.smithy.kotlin.runtime.SdkDsl
public class AddApplicationInputProcessingConfigurationRequest private constructor(builder: Builder) {
/**
* Name of the application to which you want to add the input processing configuration.
*/
public val applicationName: kotlin.String? = builder.applicationName
/**
* Version of the application to which you want to add the input processing configuration. You can use the [DescribeApplication](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html) operation to get the current application version. If the version specified is not the current version, the `ConcurrentModificationException` is returned.
*/
public val currentApplicationVersionId: kotlin.Long? = builder.currentApplicationVersionId
/**
* The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the [DescribeApplication](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html) operation.
*/
public val inputId: kotlin.String? = builder.inputId
/**
* The [InputProcessingConfiguration](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_InputProcessingConfiguration.html) to add to the application.
*/
public val inputProcessingConfiguration: aws.sdk.kotlin.services.kinesisanalytics.model.InputProcessingConfiguration? = builder.inputProcessingConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.AddApplicationInputProcessingConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AddApplicationInputProcessingConfigurationRequest(")
append("applicationName=$applicationName,")
append("currentApplicationVersionId=$currentApplicationVersionId,")
append("inputId=$inputId,")
append("inputProcessingConfiguration=$inputProcessingConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationName?.hashCode() ?: 0
result = 31 * result + (currentApplicationVersionId?.hashCode() ?: 0)
result = 31 * result + (inputId?.hashCode() ?: 0)
result = 31 * result + (inputProcessingConfiguration?.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 AddApplicationInputProcessingConfigurationRequest
if (applicationName != other.applicationName) return false
if (currentApplicationVersionId != other.currentApplicationVersionId) return false
if (inputId != other.inputId) return false
if (inputProcessingConfiguration != other.inputProcessingConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.AddApplicationInputProcessingConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Name of the application to which you want to add the input processing configuration.
*/
public var applicationName: kotlin.String? = null
/**
* Version of the application to which you want to add the input processing configuration. You can use the [DescribeApplication](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html) operation to get the current application version. If the version specified is not the current version, the `ConcurrentModificationException` is returned.
*/
public var currentApplicationVersionId: kotlin.Long? = null
/**
* The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the [DescribeApplication](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html) operation.
*/
public var inputId: kotlin.String? = null
/**
* The [InputProcessingConfiguration](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_InputProcessingConfiguration.html) to add to the application.
*/
public var inputProcessingConfiguration: aws.sdk.kotlin.services.kinesisanalytics.model.InputProcessingConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.AddApplicationInputProcessingConfigurationRequest) : this() {
this.applicationName = x.applicationName
this.currentApplicationVersionId = x.currentApplicationVersionId
this.inputId = x.inputId
this.inputProcessingConfiguration = x.inputProcessingConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.AddApplicationInputProcessingConfigurationRequest = AddApplicationInputProcessingConfigurationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisanalytics.model.InputProcessingConfiguration] inside the given [block]
*/
public fun inputProcessingConfiguration(block: aws.sdk.kotlin.services.kinesisanalytics.model.InputProcessingConfiguration.Builder.() -> kotlin.Unit) {
this.inputProcessingConfiguration = aws.sdk.kotlin.services.kinesisanalytics.model.InputProcessingConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}