
commonMain.aws.sdk.kotlin.services.mgn.model.StartCutoverRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
class StartCutoverRequest private constructor(builder: Builder) {
/**
* Start Cutover by Source Server IDs.
*/
val sourceServerIDs: List? = builder.sourceServerIDs
/**
* Start Cutover by Tags.
*/
val tags: Map? = builder.tags
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.StartCutoverRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartCutoverRequest(")
append("sourceServerIDs=$sourceServerIDs,")
append("tags=*** Sensitive Data Redacted ***)")
}
override fun hashCode(): kotlin.Int {
var result = sourceServerIDs?.hashCode() ?: 0
result = 31 * result + (tags?.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 StartCutoverRequest
if (sourceServerIDs != other.sourceServerIDs) return false
if (tags != other.tags) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.StartCutoverRequest = Builder(this).apply(block).build()
class Builder {
/**
* Start Cutover by Source Server IDs.
*/
var sourceServerIDs: List? = null
/**
* Start Cutover by Tags.
*/
var tags: Map? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.StartCutoverRequest) : this() {
this.sourceServerIDs = x.sourceServerIDs
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.StartCutoverRequest = StartCutoverRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy