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