commonMain.aws.sdk.kotlin.services.appsync.model.GetSchemaCreationStatusResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync-jvm Show documentation
Show all versions of appsync-jvm Show documentation
The AWS SDK for Kotlin client for AppSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appsync.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetSchemaCreationStatusResponse private constructor(builder: Builder) {
/**
* Detailed information about the status of the schema creation operation.
*/
public val details: kotlin.String? = builder.details
/**
* The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.
*/
public val status: aws.sdk.kotlin.services.appsync.model.SchemaStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.GetSchemaCreationStatusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSchemaCreationStatusResponse(")
append("details=$details,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = details?.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 GetSchemaCreationStatusResponse
if (details != other.details) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.GetSchemaCreationStatusResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Detailed information about the status of the schema creation operation.
*/
public var details: kotlin.String? = null
/**
* The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.
*/
public var status: aws.sdk.kotlin.services.appsync.model.SchemaStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.GetSchemaCreationStatusResponse) : this() {
this.details = x.details
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.GetSchemaCreationStatusResponse = GetSchemaCreationStatusResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}