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

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

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

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



/**
 * Details about the created OpenSearch Serverless collection.
 */
public class CreateCollectionDetail private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the collection.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The Epoch time when the collection was created.
     */
    public val createdDate: kotlin.Long? = builder.createdDate
    /**
     * A description of the collection.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The unique identifier of the collection.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The Amazon Resource Name (ARN) of the KMS key with which to encrypt the collection.
     */
    public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
    /**
     * The date and time when the collection was last modified.
     */
    public val lastModifiedDate: kotlin.Long? = builder.lastModifiedDate
    /**
     * The name of the collection.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Creates details about an OpenSearch Serverless collection.
     */
    public val standbyReplicas: aws.sdk.kotlin.services.opensearchserverless.model.StandbyReplicas? = builder.standbyReplicas
    /**
     * The current status of the collection.
     */
    public val status: aws.sdk.kotlin.services.opensearchserverless.model.CollectionStatus? = builder.status
    /**
     * The type of collection.
     */
    public val type: aws.sdk.kotlin.services.opensearchserverless.model.CollectionType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("CreateCollectionDetail(")
        append("arn=$arn,")
        append("createdDate=$createdDate,")
        append("description=$description,")
        append("id=$id,")
        append("kmsKeyArn=$kmsKeyArn,")
        append("lastModifiedDate=$lastModifiedDate,")
        append("name=$name,")
        append("standbyReplicas=$standbyReplicas,")
        append("status=$status,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (createdDate?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyArn?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (standbyReplicas?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (type?.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 CreateCollectionDetail

        if (arn != other.arn) return false
        if (createdDate != other.createdDate) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (kmsKeyArn != other.kmsKeyArn) return false
        if (lastModifiedDate != other.lastModifiedDate) return false
        if (name != other.name) return false
        if (standbyReplicas != other.standbyReplicas) return false
        if (status != other.status) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the collection.
         */
        public var arn: kotlin.String? = null
        /**
         * The Epoch time when the collection was created.
         */
        public var createdDate: kotlin.Long? = null
        /**
         * A description of the collection.
         */
        public var description: kotlin.String? = null
        /**
         * The unique identifier of the collection.
         */
        public var id: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the KMS key with which to encrypt the collection.
         */
        public var kmsKeyArn: kotlin.String? = null
        /**
         * The date and time when the collection was last modified.
         */
        public var lastModifiedDate: kotlin.Long? = null
        /**
         * The name of the collection.
         */
        public var name: kotlin.String? = null
        /**
         * Creates details about an OpenSearch Serverless collection.
         */
        public var standbyReplicas: aws.sdk.kotlin.services.opensearchserverless.model.StandbyReplicas? = null
        /**
         * The current status of the collection.
         */
        public var status: aws.sdk.kotlin.services.opensearchserverless.model.CollectionStatus? = null
        /**
         * The type of collection.
         */
        public var type: aws.sdk.kotlin.services.opensearchserverless.model.CollectionType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearchserverless.model.CreateCollectionDetail) : this() {
            this.arn = x.arn
            this.createdDate = x.createdDate
            this.description = x.description
            this.id = x.id
            this.kmsKeyArn = x.kmsKeyArn
            this.lastModifiedDate = x.lastModifiedDate
            this.name = x.name
            this.standbyReplicas = x.standbyReplicas
            this.status = x.status
            this.type = x.type
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy