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

commonMain.aws.sdk.kotlin.services.kms.model.DescribeCustomKeyStoresResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kms.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeCustomKeyStoresResponse private constructor(builder: Builder) {
    /**
     * Contains metadata about each custom key store.
     */
    public val customKeyStores: List? = builder.customKeyStores
    /**
     * When `Truncated` is true, this element is present and contains the value to use for the `Marker` parameter in a subsequent request.
     */
    public val nextMarker: kotlin.String? = builder.nextMarker
    /**
     * A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the `NextMarker` element in this response to the `Marker` parameter in a subsequent request.
     */
    public val truncated: kotlin.Boolean = builder.truncated

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeCustomKeyStoresResponse(")
        append("customKeyStores=$customKeyStores,")
        append("nextMarker=$nextMarker,")
        append("truncated=$truncated")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = customKeyStores?.hashCode() ?: 0
        result = 31 * result + (nextMarker?.hashCode() ?: 0)
        result = 31 * result + (truncated.hashCode())
        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 DescribeCustomKeyStoresResponse

        if (customKeyStores != other.customKeyStores) return false
        if (nextMarker != other.nextMarker) return false
        if (truncated != other.truncated) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Contains metadata about each custom key store.
         */
        public var customKeyStores: List? = null
        /**
         * When `Truncated` is true, this element is present and contains the value to use for the `Marker` parameter in a subsequent request.
         */
        public var nextMarker: kotlin.String? = null
        /**
         * A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the `NextMarker` element in this response to the `Marker` parameter in a subsequent request.
         */
        public var truncated: kotlin.Boolean = false

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kms.model.DescribeCustomKeyStoresResponse) : this() {
            this.customKeyStores = x.customKeyStores
            this.nextMarker = x.nextMarker
            this.truncated = x.truncated
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy