
commonMain.aws.sdk.kotlin.services.opensearch.model.DeleteVpcEndpointResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
public class DeleteVpcEndpointResponse private constructor(builder: Builder) {
/**
* Information about the deleted endpoint, including its current status (`DELETING` or `DELETE_FAILED`).
*/
public val vpcEndpointSummary: aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary? = builder.vpcEndpointSummary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.DeleteVpcEndpointResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteVpcEndpointResponse(")
append("vpcEndpointSummary=$vpcEndpointSummary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = vpcEndpointSummary?.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 DeleteVpcEndpointResponse
if (vpcEndpointSummary != other.vpcEndpointSummary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.DeleteVpcEndpointResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Information about the deleted endpoint, including its current status (`DELETING` or `DELETE_FAILED`).
*/
public var vpcEndpointSummary: aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.DeleteVpcEndpointResponse) : this() {
this.vpcEndpointSummary = x.vpcEndpointSummary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.DeleteVpcEndpointResponse = DeleteVpcEndpointResponse(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary] inside the given [block]
*/
public fun vpcEndpointSummary(block: aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary.Builder.() -> kotlin.Unit) {
this.vpcEndpointSummary = aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy