commonMain.aws.sdk.kotlin.services.appsync.model.GetDataSourceIntrospectionResponse.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 GetDataSourceIntrospectionResponse 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 `DataSourceIntrospectionResult` object data.
*/
public val introspectionResult: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionResult? = builder.introspectionResult
/**
* The status of the introspection during retrieval. By default, when a new instrospection is being retrieved, 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.GetDataSourceIntrospectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDataSourceIntrospectionResponse(")
append("introspectionId=$introspectionId,")
append("introspectionResult=$introspectionResult,")
append("introspectionStatus=$introspectionStatus,")
append("introspectionStatusDetail=$introspectionStatusDetail")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = introspectionId?.hashCode() ?: 0
result = 31 * result + (introspectionResult?.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 GetDataSourceIntrospectionResponse
if (introspectionId != other.introspectionId) return false
if (introspectionResult != other.introspectionResult) 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.GetDataSourceIntrospectionResponse = 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 `DataSourceIntrospectionResult` object data.
*/
public var introspectionResult: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionResult? = null
/**
* The status of the introspection during retrieval. By default, when a new instrospection is being retrieved, 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.GetDataSourceIntrospectionResponse) : this() {
this.introspectionId = x.introspectionId
this.introspectionResult = x.introspectionResult
this.introspectionStatus = x.introspectionStatus
this.introspectionStatusDetail = x.introspectionStatusDetail
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.GetDataSourceIntrospectionResponse = GetDataSourceIntrospectionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionResult] inside the given [block]
*/
public fun introspectionResult(block: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionResult.Builder.() -> kotlin.Unit) {
this.introspectionResult = aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionResult.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}