
commonMain.aws.sdk.kotlin.services.opensearch.model.ErrorDetails.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Additional information if the package is in an error state. Null otherwise.
*/
public class ErrorDetails private constructor(builder: Builder) {
/**
* A message describing the error.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The type of error that occurred.
*/
public val errorType: kotlin.String? = builder.errorType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.ErrorDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ErrorDetails(")
append("errorMessage=$errorMessage,")
append("errorType=$errorType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorMessage?.hashCode() ?: 0
result = 31 * result + (errorType?.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 ErrorDetails
if (errorMessage != other.errorMessage) return false
if (errorType != other.errorType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.ErrorDetails = Builder(this).apply(block).build()
public class Builder {
/**
* A message describing the error.
*/
public var errorMessage: kotlin.String? = null
/**
* The type of error that occurred.
*/
public var errorType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.ErrorDetails) : this() {
this.errorMessage = x.errorMessage
this.errorType = x.errorType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.ErrorDetails = ErrorDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy