
commonMain.aws.sdk.kotlin.services.dynamodb.model.UpdateTimeToLiveResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
public class UpdateTimeToLiveResponse private constructor(builder: Builder) {
/**
* Represents the output of an `UpdateTimeToLive` operation.
*/
public val timeToLiveSpecification: aws.sdk.kotlin.services.dynamodb.model.TimeToLiveSpecification? = builder.timeToLiveSpecification
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.UpdateTimeToLiveResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateTimeToLiveResponse(")
append("timeToLiveSpecification=$timeToLiveSpecification")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = timeToLiveSpecification?.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 UpdateTimeToLiveResponse
if (timeToLiveSpecification != other.timeToLiveSpecification) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.UpdateTimeToLiveResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Represents the output of an `UpdateTimeToLive` operation.
*/
public var timeToLiveSpecification: aws.sdk.kotlin.services.dynamodb.model.TimeToLiveSpecification? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.UpdateTimeToLiveResponse) : this() {
this.timeToLiveSpecification = x.timeToLiveSpecification
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.UpdateTimeToLiveResponse = UpdateTimeToLiveResponse(this)
/**
* construct an [aws.sdk.kotlin.services.dynamodb.model.TimeToLiveSpecification] inside the given [block]
*/
public fun timeToLiveSpecification(block: aws.sdk.kotlin.services.dynamodb.model.TimeToLiveSpecification.Builder.() -> kotlin.Unit) {
this.timeToLiveSpecification = aws.sdk.kotlin.services.dynamodb.model.TimeToLiveSpecification.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy