
commonMain.aws.sdk.kotlin.services.migrationhub.model.DeleteProgressUpdateStreamRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.migrationhub.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteProgressUpdateStreamRequest private constructor(builder: Builder) {
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
public val dryRun: kotlin.Boolean? = builder.dryRun
/**
* The name of the ProgressUpdateStream. *Do not store personal data in this field.*
*/
public val progressUpdateStreamName: kotlin.String? = builder.progressUpdateStreamName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.migrationhub.model.DeleteProgressUpdateStreamRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteProgressUpdateStreamRequest(")
append("dryRun=$dryRun,")
append("progressUpdateStreamName=$progressUpdateStreamName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dryRun?.hashCode() ?: 0
result = 31 * result + (progressUpdateStreamName?.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 DeleteProgressUpdateStreamRequest
if (dryRun != other.dryRun) return false
if (progressUpdateStreamName != other.progressUpdateStreamName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.migrationhub.model.DeleteProgressUpdateStreamRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
*/
public var dryRun: kotlin.Boolean? = null
/**
* The name of the ProgressUpdateStream. *Do not store personal data in this field.*
*/
public var progressUpdateStreamName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.migrationhub.model.DeleteProgressUpdateStreamRequest) : this() {
this.dryRun = x.dryRun
this.progressUpdateStreamName = x.progressUpdateStreamName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.migrationhub.model.DeleteProgressUpdateStreamRequest = DeleteProgressUpdateStreamRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy