commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationUpdate.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
/**
* Describes updates to apply to an existing Amazon Kinesis Analytics application.
*/
public class ApplicationUpdate private constructor(builder: Builder) {
/**
* Describes application code updates.
*/
public val applicationCodeUpdate: kotlin.String? = builder.applicationCodeUpdate
/**
* Describes application CloudWatch logging option updates.
*/
public val cloudWatchLoggingOptionUpdates: List? = builder.cloudWatchLoggingOptionUpdates
/**
* Describes application input configuration updates.
*/
public val inputUpdates: List? = builder.inputUpdates
/**
* Describes application output configuration updates.
*/
public val outputUpdates: List? = builder.outputUpdates
/**
* Describes application reference data source updates.
*/
public val referenceDataSourceUpdates: List? = builder.referenceDataSourceUpdates
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApplicationUpdate(")
append("applicationCodeUpdate=$applicationCodeUpdate,")
append("cloudWatchLoggingOptionUpdates=$cloudWatchLoggingOptionUpdates,")
append("inputUpdates=$inputUpdates,")
append("outputUpdates=$outputUpdates,")
append("referenceDataSourceUpdates=$referenceDataSourceUpdates")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationCodeUpdate?.hashCode() ?: 0
result = 31 * result + (cloudWatchLoggingOptionUpdates?.hashCode() ?: 0)
result = 31 * result + (inputUpdates?.hashCode() ?: 0)
result = 31 * result + (outputUpdates?.hashCode() ?: 0)
result = 31 * result + (referenceDataSourceUpdates?.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 ApplicationUpdate
if (applicationCodeUpdate != other.applicationCodeUpdate) return false
if (cloudWatchLoggingOptionUpdates != other.cloudWatchLoggingOptionUpdates) return false
if (inputUpdates != other.inputUpdates) return false
if (outputUpdates != other.outputUpdates) return false
if (referenceDataSourceUpdates != other.referenceDataSourceUpdates) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationUpdate = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Describes application code updates.
*/
public var applicationCodeUpdate: kotlin.String? = null
/**
* Describes application CloudWatch logging option updates.
*/
public var cloudWatchLoggingOptionUpdates: List? = null
/**
* Describes application input configuration updates.
*/
public var inputUpdates: List? = null
/**
* Describes application output configuration updates.
*/
public var outputUpdates: List? = null
/**
* Describes application reference data source updates.
*/
public var referenceDataSourceUpdates: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationUpdate) : this() {
this.applicationCodeUpdate = x.applicationCodeUpdate
this.cloudWatchLoggingOptionUpdates = x.cloudWatchLoggingOptionUpdates
this.inputUpdates = x.inputUpdates
this.outputUpdates = x.outputUpdates
this.referenceDataSourceUpdates = x.referenceDataSourceUpdates
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationUpdate = ApplicationUpdate(this)
internal fun correctErrors(): Builder {
return this
}
}
}