
commonMain.aws.sdk.kotlin.services.cognitosync.model.DeleteDatasetRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognitosync-jvm Show documentation
Show all versions of cognitosync-jvm Show documentation
The AWS Kotlin client for Cognito Sync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cognitosync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A request to delete the specific dataset.
*/
public class DeleteDatasetRequest 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.DeleteDatasetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDatasetRequest(")
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 DeleteDatasetRequest
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.DeleteDatasetRequest = 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.DeleteDatasetRequest) : this() {
this.datasetName = x.datasetName
this.identityId = x.identityId
this.identityPoolId = x.identityPoolId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cognitosync.model.DeleteDatasetRequest = DeleteDatasetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy