commonMain.aws.sdk.kotlin.services.appsync.model.StartDataSourceIntrospectionResponse.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 StartDataSourceIntrospectionResponse private constructor(builder: Builder) {
/**
* The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection record.
*/
public val introspectionId: kotlin.String? = builder.introspectionId
/**
* The status of the introspection during creation. By default, when a new instrospection has been created, the status will be set to `PROCESSING`. Once the operation has been completed, the status will change to `SUCCESS` or `FAILED` depending on how the data was parsed. A `FAILED` operation will return an error and its details as an `introspectionStatusDetail`.
*/
public val introspectionStatus: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionStatus? = builder.introspectionStatus
/**
* The error detail field. When a `FAILED``introspectionStatus` is returned, the `introspectionStatusDetail` will also return the exact error that was generated during the operation.
*/
public val introspectionStatusDetail: kotlin.String? = builder.introspectionStatusDetail
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.StartDataSourceIntrospectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartDataSourceIntrospectionResponse(")
append("introspectionId=$introspectionId,")
append("introspectionStatus=$introspectionStatus,")
append("introspectionStatusDetail=$introspectionStatusDetail")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = introspectionId?.hashCode() ?: 0
result = 31 * result + (introspectionStatus?.hashCode() ?: 0)
result = 31 * result + (introspectionStatusDetail?.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 StartDataSourceIntrospectionResponse
if (introspectionId != other.introspectionId) return false
if (introspectionStatus != other.introspectionStatus) return false
if (introspectionStatusDetail != other.introspectionStatusDetail) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.StartDataSourceIntrospectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection record.
*/
public var introspectionId: kotlin.String? = null
/**
* The status of the introspection during creation. By default, when a new instrospection has been created, the status will be set to `PROCESSING`. Once the operation has been completed, the status will change to `SUCCESS` or `FAILED` depending on how the data was parsed. A `FAILED` operation will return an error and its details as an `introspectionStatusDetail`.
*/
public var introspectionStatus: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionStatus? = null
/**
* The error detail field. When a `FAILED``introspectionStatus` is returned, the `introspectionStatusDetail` will also return the exact error that was generated during the operation.
*/
public var introspectionStatusDetail: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.StartDataSourceIntrospectionResponse) : this() {
this.introspectionId = x.introspectionId
this.introspectionStatus = x.introspectionStatus
this.introspectionStatusDetail = x.introspectionStatusDetail
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.StartDataSourceIntrospectionResponse = StartDataSourceIntrospectionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}