
commonMain.aws.sdk.kotlin.services.opensearch.model.VpcEndpointError.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Error information when attempting to describe an Amazon OpenSearch Service-managed VPC endpoint.
*/
public class VpcEndpointError private constructor(builder: Builder) {
/**
* The code associated with the error.
*/
public val errorCode: aws.sdk.kotlin.services.opensearch.model.VpcEndpointErrorCode? = builder.errorCode
/**
* A message describing the error.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The unique identifier of the endpoint.
*/
public val vpcEndpointId: kotlin.String? = builder.vpcEndpointId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.VpcEndpointError = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VpcEndpointError(")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("vpcEndpointId=$vpcEndpointId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (vpcEndpointId?.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 VpcEndpointError
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (vpcEndpointId != other.vpcEndpointId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.VpcEndpointError = Builder(this).apply(block).build()
public class Builder {
/**
* The code associated with the error.
*/
public var errorCode: aws.sdk.kotlin.services.opensearch.model.VpcEndpointErrorCode? = null
/**
* A message describing the error.
*/
public var errorMessage: kotlin.String? = null
/**
* The unique identifier of the endpoint.
*/
public var vpcEndpointId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.VpcEndpointError) : this() {
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.vpcEndpointId = x.vpcEndpointId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.VpcEndpointError = VpcEndpointError(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy