
commonMain.aws.sdk.kotlin.services.kendra.model.UpdateExperienceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
public class UpdateExperienceRequest private constructor(builder: Builder) {
/**
* Configuration information you want to update for your Amazon Kendra experience.
*/
public val configuration: aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration? = builder.configuration
/**
* A new description for your Amazon Kendra experience.
*/
public val description: kotlin.String? = builder.description
/**
* The identifier of your Amazon Kendra experience you want to update.
*/
public val id: kotlin.String? = builder.id
/**
* The identifier of the index for your Amazon Kendra experience.
*/
public val indexId: kotlin.String? = builder.indexId
/**
* A new name for your Amazon Kendra experience.
*/
public val name: kotlin.String? = builder.name
/**
* The Amazon Resource Name (ARN) of a role with permission to access `Query` API, `QuerySuggestions` API, `SubmitFeedback` API, and IAM Identity Center that stores your user and group information. For more information, see [IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html).
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.UpdateExperienceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateExperienceRequest(")
append("configuration=$configuration,")
append("description=$description,")
append("id=$id,")
append("indexId=$indexId,")
append("name=$name,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configuration?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (indexId?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 UpdateExperienceRequest
if (configuration != other.configuration) return false
if (description != other.description) return false
if (id != other.id) return false
if (indexId != other.indexId) return false
if (name != other.name) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.UpdateExperienceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Configuration information you want to update for your Amazon Kendra experience.
*/
public var configuration: aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration? = null
/**
* A new description for your Amazon Kendra experience.
*/
public var description: kotlin.String? = null
/**
* The identifier of your Amazon Kendra experience you want to update.
*/
public var id: kotlin.String? = null
/**
* The identifier of the index for your Amazon Kendra experience.
*/
public var indexId: kotlin.String? = null
/**
* A new name for your Amazon Kendra experience.
*/
public var name: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of a role with permission to access `Query` API, `QuerySuggestions` API, `SubmitFeedback` API, and IAM Identity Center that stores your user and group information. For more information, see [IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html).
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.UpdateExperienceRequest) : this() {
this.configuration = x.configuration
this.description = x.description
this.id = x.id
this.indexId = x.indexId
this.name = x.name
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.UpdateExperienceRequest = UpdateExperienceRequest(this)
/**
* construct an [aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration] inside the given [block]
*/
public fun configuration(block: aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration.Builder.() -> kotlin.Unit) {
this.configuration = aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy