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

commonMain.aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointDetail.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.opensearchserverless.model



/**
 * Details about an OpenSearch Serverless-managed interface endpoint.
 */
public class VpcEndpointDetail private constructor(builder: Builder) {
    /**
     * The date the endpoint was created.
     */
    public val createdDate: kotlin.Long? = builder.createdDate
    /**
     * The unique identifier of the endpoint.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The name of the endpoint.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
     */
    public val securityGroupIds: List? = builder.securityGroupIds
    /**
     * The current status of the endpoint.
     */
    public val status: aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointStatus? = builder.status
    /**
     * The ID of the subnets from which you access OpenSearch Serverless.
     */
    public val subnetIds: List? = builder.subnetIds
    /**
     * The ID of the VPC from which you access OpenSearch Serverless.
     */
    public val vpcId: kotlin.String? = builder.vpcId

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

    override fun toString(): kotlin.String = buildString {
        append("VpcEndpointDetail(")
        append("createdDate=$createdDate,")
        append("id=$id,")
        append("name=$name,")
        append("securityGroupIds=$securityGroupIds,")
        append("status=$status,")
        append("subnetIds=$subnetIds,")
        append("vpcId=$vpcId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdDate?.hashCode() ?: 0
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (securityGroupIds?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (subnetIds?.hashCode() ?: 0)
        result = 31 * result + (vpcId?.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 VpcEndpointDetail

        if (createdDate != other.createdDate) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (securityGroupIds != other.securityGroupIds) return false
        if (status != other.status) return false
        if (subnetIds != other.subnetIds) return false
        if (vpcId != other.vpcId) return false

        return true
    }

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

    public class Builder {
        /**
         * The date the endpoint was created.
         */
        public var createdDate: kotlin.Long? = null
        /**
         * The unique identifier of the endpoint.
         */
        public var id: kotlin.String? = null
        /**
         * The name of the endpoint.
         */
        public var name: kotlin.String? = null
        /**
         * The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
         */
        public var securityGroupIds: List? = null
        /**
         * The current status of the endpoint.
         */
        public var status: aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointStatus? = null
        /**
         * The ID of the subnets from which you access OpenSearch Serverless.
         */
        public var subnetIds: List? = null
        /**
         * The ID of the VPC from which you access OpenSearch Serverless.
         */
        public var vpcId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearchserverless.model.VpcEndpointDetail) : this() {
            this.createdDate = x.createdDate
            this.id = x.id
            this.name = x.name
            this.securityGroupIds = x.securityGroupIds
            this.status = x.status
            this.subnetIds = x.subnetIds
            this.vpcId = x.vpcId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy