
commonMain.aws.sdk.kotlin.services.qapps.model.CreateLibraryItemRequest.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 CreateLibraryItemRequest private constructor(builder: Builder) {
/**
* The unique identifier of the Amazon Q App to publish to the library.
*/
public val appId: kotlin.String? = builder.appId
/**
* The version of the Amazon Q App to publish to the library.
*/
public val appVersion: kotlin.Int? = builder.appVersion
/**
* The categories to associate with the library item for easier discovery.
*/
public val categories: List? = builder.categories
/**
* The unique identifier of the Amazon Q Business application environment instance.
*/
public val instanceId: kotlin.String? = builder.instanceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qapps.model.CreateLibraryItemRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateLibraryItemRequest(")
append("appId=$appId,")
append("appVersion=$appVersion,")
append("categories=$categories,")
append("instanceId=$instanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appId?.hashCode() ?: 0
result = 31 * result + (appVersion ?: 0)
result = 31 * result + (categories?.hashCode() ?: 0)
result = 31 * result + (instanceId?.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 CreateLibraryItemRequest
if (appId != other.appId) return false
if (appVersion != other.appVersion) return false
if (categories != other.categories) return false
if (instanceId != other.instanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qapps.model.CreateLibraryItemRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the Amazon Q App to publish to the library.
*/
public var appId: kotlin.String? = null
/**
* The version of the Amazon Q App to publish to the library.
*/
public var appVersion: kotlin.Int? = null
/**
* The categories to associate with the library item for easier discovery.
*/
public var categories: List? = null
/**
* The unique identifier of the Amazon Q Business application environment instance.
*/
public var instanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qapps.model.CreateLibraryItemRequest) : this() {
this.appId = x.appId
this.appVersion = x.appVersion
this.categories = x.categories
this.instanceId = x.instanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qapps.model.CreateLibraryItemRequest = CreateLibraryItemRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy