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

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

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

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



/**
 * Update details for an OpenSearch Serverless-managed interface endpoint.
 */
public class UpdateVpcEndpointDetail private constructor(builder: Builder) {
    /**
     * The unique identifier of the endpoint.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The timestamp of when the endpoint was last modified.
     */
    public val lastModifiedDate: kotlin.Long? = builder.lastModifiedDate
    /**
     * 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 update process.
     */
    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

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

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

    override fun hashCode(): kotlin.Int {
        var result = id?.hashCode() ?: 0
        result = 31 * result + (lastModifiedDate?.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)
        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 UpdateVpcEndpointDetail

        if (id != other.id) return false
        if (lastModifiedDate != other.lastModifiedDate) 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

        return true
    }

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

    public class Builder {
        /**
         * The unique identifier of the endpoint.
         */
        public var id: kotlin.String? = null
        /**
         * The timestamp of when the endpoint was last modified.
         */
        public var lastModifiedDate: kotlin.Long? = 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 update process.
         */
        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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy