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

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

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

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



/**
 * Container for response returned by `GetPackageVersionHistory` operation.
 */
public class GetPackageVersionHistoryResponse private constructor(builder: Builder) {
    /**
     * When `nextToken` is returned, there are more results available. The value of `nextToken` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The unique identifier of the package.
     */
    public val packageId: kotlin.String? = builder.packageId
    /**
     * A list of package versions, along with their creation time and commit message.
     */
    public val packageVersionHistoryList: List? = builder.packageVersionHistoryList

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

    override fun toString(): kotlin.String = buildString {
        append("GetPackageVersionHistoryResponse(")
        append("nextToken=$nextToken,")
        append("packageId=$packageId,")
        append("packageVersionHistoryList=$packageVersionHistoryList")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = nextToken?.hashCode() ?: 0
        result = 31 * result + (packageId?.hashCode() ?: 0)
        result = 31 * result + (packageVersionHistoryList?.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 GetPackageVersionHistoryResponse

        if (nextToken != other.nextToken) return false
        if (packageId != other.packageId) return false
        if (packageVersionHistoryList != other.packageVersionHistoryList) return false

        return true
    }

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

    public class Builder {
        /**
         * When `nextToken` is returned, there are more results available. The value of `nextToken` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The unique identifier of the package.
         */
        public var packageId: kotlin.String? = null
        /**
         * A list of package versions, along with their creation time and commit message.
         */
        public var packageVersionHistoryList: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.GetPackageVersionHistoryResponse) : this() {
            this.nextToken = x.nextToken
            this.packageId = x.packageId
            this.packageVersionHistoryList = x.packageVersionHistoryList
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy