commonMain.aws.sdk.kotlin.services.amplifybackend.model.GetBackendApiModelsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amplifybackend-jvm Show documentation
Show all versions of amplifybackend-jvm Show documentation
The AWS SDK for Kotlin client for AmplifyBackend
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplifybackend.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetBackendApiModelsResponse private constructor(builder: Builder) {
/**
* Stringified JSON of the model introspection schema for an existing backend API resource.
*/
public val modelIntrospectionSchema: kotlin.String? = builder.modelIntrospectionSchema
/**
* Stringified JSON of the datastore model.
*/
public val models: kotlin.String? = builder.models
/**
* The current status of the request.
*/
public val status: aws.sdk.kotlin.services.amplifybackend.model.Status? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplifybackend.model.GetBackendApiModelsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBackendApiModelsResponse(")
append("modelIntrospectionSchema=$modelIntrospectionSchema,")
append("models=$models,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = modelIntrospectionSchema?.hashCode() ?: 0
result = 31 * result + (models?.hashCode() ?: 0)
result = 31 * result + (status?.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 GetBackendApiModelsResponse
if (modelIntrospectionSchema != other.modelIntrospectionSchema) return false
if (models != other.models) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplifybackend.model.GetBackendApiModelsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Stringified JSON of the model introspection schema for an existing backend API resource.
*/
public var modelIntrospectionSchema: kotlin.String? = null
/**
* Stringified JSON of the datastore model.
*/
public var models: kotlin.String? = null
/**
* The current status of the request.
*/
public var status: aws.sdk.kotlin.services.amplifybackend.model.Status? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplifybackend.model.GetBackendApiModelsResponse) : this() {
this.modelIntrospectionSchema = x.modelIntrospectionSchema
this.models = x.models
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplifybackend.model.GetBackendApiModelsResponse = GetBackendApiModelsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}