commonMain.aws.sdk.kotlin.services.kendra.model.GroupSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kendra-jvm Show documentation
Show all versions of kendra-jvm Show documentation
The AWS SDK for Kotlin client for kendra
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Summary information for groups.
*/
public class GroupSummary private constructor(builder: Builder) {
/**
* The identifier of the group you want group summary information on.
*/
public val groupId: kotlin.String? = builder.groupId
/**
* The timestamp identifier used for the latest `PUT` or `DELETE` action.
*/
public val orderingId: kotlin.Long? = builder.orderingId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.GroupSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GroupSummary(")
append("groupId=$groupId,")
append("orderingId=$orderingId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupId?.hashCode() ?: 0
result = 31 * result + (orderingId?.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 GroupSummary
if (groupId != other.groupId) return false
if (orderingId != other.orderingId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.GroupSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the group you want group summary information on.
*/
public var groupId: kotlin.String? = null
/**
* The timestamp identifier used for the latest `PUT` or `DELETE` action.
*/
public var orderingId: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.GroupSummary) : this() {
this.groupId = x.groupId
this.orderingId = x.orderingId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.GroupSummary = GroupSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}