
commonMain.aws.sdk.kotlin.services.qbusiness.model.UpdateApplicationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
public class UpdateApplicationRequest private constructor(builder: Builder) {
/**
* The identifier of the Amazon Q Business application.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* An option to allow end users to upload files directly during chat.
*/
public val attachmentsConfiguration: aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration? = builder.attachmentsConfiguration
/**
* A description for the Amazon Q Business application.
*/
public val description: kotlin.String? = builder.description
/**
* A name for the Amazon Q Business application.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* An Amazon Web Services Identity and Access Management (IAM) role that gives Amazon Q Business permission to access Amazon CloudWatch logs and metrics.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.UpdateApplicationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateApplicationRequest(")
append("applicationId=$applicationId,")
append("attachmentsConfiguration=$attachmentsConfiguration,")
append("description=$description,")
append("displayName=$displayName,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (attachmentsConfiguration?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (displayName?.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 UpdateApplicationRequest
if (applicationId != other.applicationId) return false
if (attachmentsConfiguration != other.attachmentsConfiguration) return false
if (description != other.description) return false
if (displayName != other.displayName) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.UpdateApplicationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Q Business application.
*/
public var applicationId: kotlin.String? = null
/**
* An option to allow end users to upload files directly during chat.
*/
public var attachmentsConfiguration: aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration? = null
/**
* A description for the Amazon Q Business application.
*/
public var description: kotlin.String? = null
/**
* A name for the Amazon Q Business application.
*/
public var displayName: kotlin.String? = null
/**
* An Amazon Web Services Identity and Access Management (IAM) role that gives Amazon Q Business permission to access Amazon CloudWatch logs and metrics.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.UpdateApplicationRequest) : this() {
this.applicationId = x.applicationId
this.attachmentsConfiguration = x.attachmentsConfiguration
this.description = x.description
this.displayName = x.displayName
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.UpdateApplicationRequest = UpdateApplicationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration] inside the given [block]
*/
public fun attachmentsConfiguration(block: aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration.Builder.() -> kotlin.Unit) {
this.attachmentsConfiguration = aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy