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

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

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

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



/**
 * The connection endpoint for connecting to an Amazon OpenSearch Service domain through a proxy.
 */
public class VpcEndpoint private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the domain associated with the endpoint.
     */
    public val domainArn: kotlin.String? = builder.domainArn
    /**
     * The connection endpoint ID for connecting to the domain.
     */
    public val endpoint: kotlin.String? = builder.endpoint
    /**
     * 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
    /**
     * Options to specify the subnets and security groups for an Amazon OpenSearch Service VPC endpoint.
     */
    public val vpcOptions: aws.sdk.kotlin.services.opensearch.model.VpcDerivedInfo? = builder.vpcOptions

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

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

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

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

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.VpcEndpoint = 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 connection endpoint ID for connecting to the domain.
         */
        public var endpoint: 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
        /**
         * Options to specify the subnets and security groups for an Amazon OpenSearch Service VPC endpoint.
         */
        public var vpcOptions: aws.sdk.kotlin.services.opensearch.model.VpcDerivedInfo? = null

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

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

        /**
         * construct an [aws.sdk.kotlin.services.opensearch.model.VpcDerivedInfo] inside the given [block]
         */
        public fun vpcOptions(block: aws.sdk.kotlin.services.opensearch.model.VpcDerivedInfo.Builder.() -> kotlin.Unit) {
            this.vpcOptions = aws.sdk.kotlin.services.opensearch.model.VpcDerivedInfo.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy