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