
commonMain.aws.sdk.kotlin.services.quicksight.model.CancelIngestionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
class CancelIngestionRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID.
*/
val awsAccountId: kotlin.String? = builder.awsAccountId
/**
* The ID of the dataset used in the ingestion.
*/
val dataSetId: kotlin.String? = builder.dataSetId
/**
* An ID for the ingestion.
*/
val ingestionId: kotlin.String? = builder.ingestionId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.CancelIngestionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CancelIngestionRequest(")
append("awsAccountId=$awsAccountId,")
append("dataSetId=$dataSetId,")
append("ingestionId=$ingestionId)")
}
override fun hashCode(): kotlin.Int {
var result = awsAccountId?.hashCode() ?: 0
result = 31 * result + (dataSetId?.hashCode() ?: 0)
result = 31 * result + (ingestionId?.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 CancelIngestionRequest
if (awsAccountId != other.awsAccountId) return false
if (dataSetId != other.dataSetId) return false
if (ingestionId != other.ingestionId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.CancelIngestionRequest = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon Web Services account ID.
*/
var awsAccountId: kotlin.String? = null
/**
* The ID of the dataset used in the ingestion.
*/
var dataSetId: kotlin.String? = null
/**
* An ID for the ingestion.
*/
var ingestionId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.CancelIngestionRequest) : this() {
this.awsAccountId = x.awsAccountId
this.dataSetId = x.dataSetId
this.ingestionId = x.ingestionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.CancelIngestionRequest = CancelIngestionRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy