All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.opensearch.model



/**
 * Summary information for an Amazon OpenSearch Service-managed VPC endpoint.
 */
public class VpcEndpointSummary private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the domain associated with the endpoint.
     */
    public val domainArn: kotlin.String? = builder.domainArn
    /**
     * The current status of the endpoint.
     */
    public val status: aws.sdk.kotlin.services.opensearch.model.VpcEndpointStatus? = builder.status
    /**
     * The unique identifier of the endpoint.
     */
    public val vpcEndpointId: kotlin.String? = builder.vpcEndpointId
    /**
     * The creator of the endpoint.
     */
    public val vpcEndpointOwner: kotlin.String? = builder.vpcEndpointOwner

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("VpcEndpointSummary(")
        append("domainArn=$domainArn,")
        append("status=$status,")
        append("vpcEndpointId=$vpcEndpointId,")
        append("vpcEndpointOwner=$vpcEndpointOwner")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainArn?.hashCode() ?: 0
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (vpcEndpointId?.hashCode() ?: 0)
        result = 31 * result + (vpcEndpointOwner?.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 VpcEndpointSummary

        if (domainArn != other.domainArn) return false
        if (status != other.status) return false
        if (vpcEndpointId != other.vpcEndpointId) return false
        if (vpcEndpointOwner != other.vpcEndpointOwner) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the domain associated with the endpoint.
         */
        public var domainArn: kotlin.String? = null
        /**
         * The current status of the endpoint.
         */
        public var status: aws.sdk.kotlin.services.opensearch.model.VpcEndpointStatus? = null
        /**
         * The unique identifier of the endpoint.
         */
        public var vpcEndpointId: kotlin.String? = null
        /**
         * The creator of the endpoint.
         */
        public var vpcEndpointOwner: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary) : this() {
            this.domainArn = x.domainArn
            this.status = x.status
            this.vpcEndpointId = x.vpcEndpointId
            this.vpcEndpointOwner = x.vpcEndpointOwner
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.opensearch.model.VpcEndpointSummary = VpcEndpointSummary(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy