commonMain.aws.sdk.kotlin.services.finspacedata.model.DataViewErrorInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata-jvm Show documentation
Show all versions of finspacedata-jvm Show documentation
The AWS SDK for Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The structure with error messages.
*/
public class DataViewErrorInfo private constructor(builder: Builder) {
/**
* The category of the error.
* + `VALIDATION` – The inputs to this request are invalid.
* + `SERVICE_QUOTA_EXCEEDED` – Service quotas have been exceeded. Please contact AWS support to increase quotas.
* + `ACCESS_DENIED` – Missing required permission to perform this request.
* + `RESOURCE_NOT_FOUND` – One or more inputs to this request were not found.
* + `THROTTLING` – The system temporarily lacks sufficient resources to process the request.
* + `INTERNAL_SERVICE_EXCEPTION` – An internal service error has occurred.
* + `CANCELLED` – Cancelled.
* + `USER_RECOVERABLE` – A user recoverable error has occurred.
*/
public val errorCategory: aws.sdk.kotlin.services.finspacedata.model.ErrorCategory? = builder.errorCategory
/**
* The text of the error message.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.DataViewErrorInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataViewErrorInfo(")
append("errorCategory=$errorCategory,")
append("errorMessage=$errorMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCategory?.hashCode() ?: 0
result = 31 * result + (errorMessage?.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 DataViewErrorInfo
if (errorCategory != other.errorCategory) return false
if (errorMessage != other.errorMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.DataViewErrorInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The category of the error.
* + `VALIDATION` – The inputs to this request are invalid.
* + `SERVICE_QUOTA_EXCEEDED` – Service quotas have been exceeded. Please contact AWS support to increase quotas.
* + `ACCESS_DENIED` – Missing required permission to perform this request.
* + `RESOURCE_NOT_FOUND` – One or more inputs to this request were not found.
* + `THROTTLING` – The system temporarily lacks sufficient resources to process the request.
* + `INTERNAL_SERVICE_EXCEPTION` – An internal service error has occurred.
* + `CANCELLED` – Cancelled.
* + `USER_RECOVERABLE` – A user recoverable error has occurred.
*/
public var errorCategory: aws.sdk.kotlin.services.finspacedata.model.ErrorCategory? = null
/**
* The text of the error message.
*/
public var errorMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.DataViewErrorInfo) : this() {
this.errorCategory = x.errorCategory
this.errorMessage = x.errorMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.DataViewErrorInfo = DataViewErrorInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy