
commonMain.aws.sdk.kotlin.services.qapps.model.UpdateQAppRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qapps.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateQAppRequest private constructor(builder: Builder) {
/**
* The new definition specifying the cards and flow for the Q App.
*/
public val appDefinition: aws.sdk.kotlin.services.qapps.model.AppDefinitionInput? = builder.appDefinition
/**
* The unique identifier of the Q App to update.
*/
public val appId: kotlin.String? = builder.appId
/**
* The new description for the Q App.
*/
public val description: kotlin.String? = builder.description
/**
* The unique identifier of the Amazon Q Business application environment instance.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The new title for the Q App.
*/
public val title: kotlin.String? = builder.title
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qapps.model.UpdateQAppRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateQAppRequest(")
append("appDefinition=$appDefinition,")
append("appId=$appId,")
append("description=$description,")
append("instanceId=$instanceId,")
append("title=$title")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appDefinition?.hashCode() ?: 0
result = 31 * result + (appId?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (title?.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 UpdateQAppRequest
if (appDefinition != other.appDefinition) return false
if (appId != other.appId) return false
if (description != other.description) return false
if (instanceId != other.instanceId) return false
if (title != other.title) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qapps.model.UpdateQAppRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The new definition specifying the cards and flow for the Q App.
*/
public var appDefinition: aws.sdk.kotlin.services.qapps.model.AppDefinitionInput? = null
/**
* The unique identifier of the Q App to update.
*/
public var appId: kotlin.String? = null
/**
* The new description for the Q App.
*/
public var description: kotlin.String? = null
/**
* The unique identifier of the Amazon Q Business application environment instance.
*/
public var instanceId: kotlin.String? = null
/**
* The new title for the Q App.
*/
public var title: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qapps.model.UpdateQAppRequest) : this() {
this.appDefinition = x.appDefinition
this.appId = x.appId
this.description = x.description
this.instanceId = x.instanceId
this.title = x.title
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qapps.model.UpdateQAppRequest = UpdateQAppRequest(this)
/**
* construct an [aws.sdk.kotlin.services.qapps.model.AppDefinitionInput] inside the given [block]
*/
public fun appDefinition(block: aws.sdk.kotlin.services.qapps.model.AppDefinitionInput.Builder.() -> kotlin.Unit) {
this.appDefinition = aws.sdk.kotlin.services.qapps.model.AppDefinitionInput.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy