
commonMain.aws.sdk.kotlin.services.kendra.model.OneDriveUsers.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* User accounts whose documents should be indexed.
*/
public class OneDriveUsers private constructor(builder: Builder) {
/**
* A list of users whose documents should be indexed. Specify the user names in email format, for example, `username@tenantdomain`. If you need to index the documents of more than 100 users, use the `OneDriveUserS3Path` field to specify the location of a file containing a list of users.
*/
public val oneDriveUserList: List? = builder.oneDriveUserList
/**
* The S3 bucket location of a file containing a list of users whose documents should be indexed.
*/
public val oneDriveUserS3Path: aws.sdk.kotlin.services.kendra.model.S3Path? = builder.oneDriveUserS3Path
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.OneDriveUsers = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OneDriveUsers(")
append("oneDriveUserList=$oneDriveUserList,")
append("oneDriveUserS3Path=$oneDriveUserS3Path")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = oneDriveUserList?.hashCode() ?: 0
result = 31 * result + (oneDriveUserS3Path?.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 OneDriveUsers
if (oneDriveUserList != other.oneDriveUserList) return false
if (oneDriveUserS3Path != other.oneDriveUserS3Path) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.OneDriveUsers = Builder(this).apply(block).build()
public class Builder {
/**
* A list of users whose documents should be indexed. Specify the user names in email format, for example, `username@tenantdomain`. If you need to index the documents of more than 100 users, use the `OneDriveUserS3Path` field to specify the location of a file containing a list of users.
*/
public var oneDriveUserList: List? = null
/**
* The S3 bucket location of a file containing a list of users whose documents should be indexed.
*/
public var oneDriveUserS3Path: aws.sdk.kotlin.services.kendra.model.S3Path? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.OneDriveUsers) : this() {
this.oneDriveUserList = x.oneDriveUserList
this.oneDriveUserS3Path = x.oneDriveUserS3Path
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.OneDriveUsers = OneDriveUsers(this)
/**
* construct an [aws.sdk.kotlin.services.kendra.model.S3Path] inside the given [block]
*/
public fun oneDriveUserS3Path(block: aws.sdk.kotlin.services.kendra.model.S3Path.Builder.() -> kotlin.Unit) {
this.oneDriveUserS3Path = aws.sdk.kotlin.services.kendra.model.S3Path.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy