
commonMain.aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointErrorDetail.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearchserverless.model
/**
* Error information for a failed `BatchGetVpcEndpoint` request.
*/
public class VpcEndpointErrorDetail private constructor(builder: Builder) {
/**
* The error code for the failed request.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* An error message describing the reason for the failure.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The unique identifier of the VPC endpoint.
*/
public val id: kotlin.String? = builder.id
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointErrorDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VpcEndpointErrorDetail(")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("id=$id")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (id?.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 VpcEndpointErrorDetail
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (id != other.id) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointErrorDetail = Builder(this).apply(block).build()
public class Builder {
/**
* The error code for the failed request.
*/
public var errorCode: kotlin.String? = null
/**
* An error message describing the reason for the failure.
*/
public var errorMessage: kotlin.String? = null
/**
* The unique identifier of the VPC endpoint.
*/
public var id: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointErrorDetail) : this() {
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.id = x.id
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointErrorDetail = VpcEndpointErrorDetail(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy