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

commonMain.aws.sdk.kotlin.services.cognitosync.model.DescribeDatasetRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cognitosync.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A request for meta data about a dataset (creation date, number of records, size) by owner and dataset name.
 */
public class DescribeDatasetRequest private constructor(builder: Builder) {
    /**
     * A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
     */
    public val datasetName: kotlin.String? = builder.datasetName
    /**
     * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
     */
    public val identityId: kotlin.String? = builder.identityId
    /**
     * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
     */
    public val identityPoolId: kotlin.String? = builder.identityPoolId

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeDatasetRequest(")
        append("datasetName=$datasetName,")
        append("identityId=$identityId,")
        append("identityPoolId=$identityPoolId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = datasetName?.hashCode() ?: 0
        result = 31 * result + (identityId?.hashCode() ?: 0)
        result = 31 * result + (identityPoolId?.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 DescribeDatasetRequest

        if (datasetName != other.datasetName) return false
        if (identityId != other.identityId) return false
        if (identityPoolId != other.identityPoolId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
         */
        public var datasetName: kotlin.String? = null
        /**
         * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
         */
        public var identityId: kotlin.String? = null
        /**
         * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
         */
        public var identityPoolId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cognitosync.model.DescribeDatasetRequest) : this() {
            this.datasetName = x.datasetName
            this.identityId = x.identityId
            this.identityPoolId = x.identityPoolId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy