
commonMain.aws.sdk.kotlin.services.dynamodbstreams.model.Identity.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodbstreams.model
/**
* Contains details about the type of identity that made the request.
*/
public class Identity private constructor(builder: Builder) {
/**
* A unique identifier for the entity that made the call. For Time To Live, the principalId is "dynamodb.amazonaws.com".
*/
public val principalId: kotlin.String? = builder.principalId
/**
* The type of the identity. For Time To Live, the type is "Service".
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodbstreams.model.Identity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Identity(")
append("principalId=$principalId,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = principalId?.hashCode() ?: 0
result = 31 * result + (type?.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 Identity
if (principalId != other.principalId) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodbstreams.model.Identity = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier for the entity that made the call. For Time To Live, the principalId is "dynamodb.amazonaws.com".
*/
public var principalId: kotlin.String? = null
/**
* The type of the identity. For Time To Live, the type is "Service".
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodbstreams.model.Identity) : this() {
this.principalId = x.principalId
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodbstreams.model.Identity = Identity(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy