
commonMain.aws.sdk.kotlin.services.dynamodb.model.DisableKinesisStreamingDestinationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
public class DisableKinesisStreamingDestinationResponse private constructor(builder: Builder) {
/**
* The current status of the replication.
*/
public val destinationStatus: aws.sdk.kotlin.services.dynamodb.model.DestinationStatus? = builder.destinationStatus
/**
* The destination for the Kinesis streaming information that is being enabled.
*/
public val enableKinesisStreamingConfiguration: aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingConfiguration? = builder.enableKinesisStreamingConfiguration
/**
* The ARN for the specific Kinesis data stream.
*/
public val streamArn: kotlin.String? = builder.streamArn
/**
* The name of the table being modified.
*/
public val tableName: kotlin.String? = builder.tableName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.DisableKinesisStreamingDestinationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisableKinesisStreamingDestinationResponse(")
append("destinationStatus=$destinationStatus,")
append("enableKinesisStreamingConfiguration=$enableKinesisStreamingConfiguration,")
append("streamArn=$streamArn,")
append("tableName=$tableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationStatus?.hashCode() ?: 0
result = 31 * result + (enableKinesisStreamingConfiguration?.hashCode() ?: 0)
result = 31 * result + (streamArn?.hashCode() ?: 0)
result = 31 * result + (tableName?.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 DisableKinesisStreamingDestinationResponse
if (destinationStatus != other.destinationStatus) return false
if (enableKinesisStreamingConfiguration != other.enableKinesisStreamingConfiguration) return false
if (streamArn != other.streamArn) return false
if (tableName != other.tableName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.DisableKinesisStreamingDestinationResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The current status of the replication.
*/
public var destinationStatus: aws.sdk.kotlin.services.dynamodb.model.DestinationStatus? = null
/**
* The destination for the Kinesis streaming information that is being enabled.
*/
public var enableKinesisStreamingConfiguration: aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingConfiguration? = null
/**
* The ARN for the specific Kinesis data stream.
*/
public var streamArn: kotlin.String? = null
/**
* The name of the table being modified.
*/
public var tableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.DisableKinesisStreamingDestinationResponse) : this() {
this.destinationStatus = x.destinationStatus
this.enableKinesisStreamingConfiguration = x.enableKinesisStreamingConfiguration
this.streamArn = x.streamArn
this.tableName = x.tableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.DisableKinesisStreamingDestinationResponse = DisableKinesisStreamingDestinationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingConfiguration] inside the given [block]
*/
public fun enableKinesisStreamingConfiguration(block: aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingConfiguration.Builder.() -> kotlin.Unit) {
this.enableKinesisStreamingConfiguration = aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy