
commonMain.aws.sdk.kotlin.services.qapps.model.CreateQAppRequest.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 CreateQAppRequest private constructor(builder: Builder) {
/**
* The definition of the new Q App, specifying the cards and flow.
*/
public val appDefinition: aws.sdk.kotlin.services.qapps.model.AppDefinitionInput? = builder.appDefinition
/**
* The description of the new 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
/**
* Optional tags to associate with the new Q App.
*/
public val tags: Map? = builder.tags
/**
* The title of the new 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.CreateQAppRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateQAppRequest(")
append("appDefinition=$appDefinition,")
append("description=$description,")
append("instanceId=$instanceId,")
append("tags=$tags,")
append("title=$title")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appDefinition?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateQAppRequest
if (appDefinition != other.appDefinition) return false
if (description != other.description) return false
if (instanceId != other.instanceId) return false
if (tags != other.tags) return false
if (title != other.title) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qapps.model.CreateQAppRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The definition of the new Q App, specifying the cards and flow.
*/
public var appDefinition: aws.sdk.kotlin.services.qapps.model.AppDefinitionInput? = null
/**
* The description of the new 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
/**
* Optional tags to associate with the new Q App.
*/
public var tags: Map? = null
/**
* The title of the new Q App.
*/
public var title: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qapps.model.CreateQAppRequest) : this() {
this.appDefinition = x.appDefinition
this.description = x.description
this.instanceId = x.instanceId
this.tags = x.tags
this.title = x.title
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qapps.model.CreateQAppRequest = CreateQAppRequest(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