
commonMain.aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingDestinationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
public class EnableKinesisStreamingDestinationRequest private constructor(builder: Builder) {
/**
* The source for the Kinesis streaming information that is being enabled.
*/
public val enableKinesisStreamingConfiguration: aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingConfiguration? = builder.enableKinesisStreamingConfiguration
/**
* The ARN for a Kinesis data stream.
*/
public val streamArn: kotlin.String = requireNotNull(builder.streamArn) { "A non-null value must be provided for streamArn" }
/**
* The name of the DynamoDB table.
*/
public val tableName: kotlin.String = requireNotNull(builder.tableName) { "A non-null value must be provided for tableName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingDestinationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EnableKinesisStreamingDestinationRequest(")
append("enableKinesisStreamingConfiguration=$enableKinesisStreamingConfiguration,")
append("streamArn=$streamArn,")
append("tableName=$tableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enableKinesisStreamingConfiguration?.hashCode() ?: 0
result = 31 * result + (streamArn.hashCode())
result = 31 * result + (tableName.hashCode())
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 EnableKinesisStreamingDestinationRequest
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.EnableKinesisStreamingDestinationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The source for the Kinesis streaming information that is being enabled.
*/
public var enableKinesisStreamingConfiguration: aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingConfiguration? = null
/**
* The ARN for a Kinesis data stream.
*/
public var streamArn: kotlin.String? = null
/**
* The name of the DynamoDB table.
*/
public var tableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingDestinationRequest) : this() {
this.enableKinesisStreamingConfiguration = x.enableKinesisStreamingConfiguration
this.streamArn = x.streamArn
this.tableName = x.tableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.EnableKinesisStreamingDestinationRequest = EnableKinesisStreamingDestinationRequest(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 {
if (streamArn == null) streamArn = ""
if (tableName == null) tableName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy