commonMain.aws.sdk.kotlin.services.migrationhubconfig.model.DeleteHomeRegionControlRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of migrationhubconfig-jvm Show documentation
Show all versions of migrationhubconfig-jvm Show documentation
The AWS SDK for Kotlin client for MigrationHub Config
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.migrationhubconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteHomeRegionControlRequest private constructor(builder: Builder) {
/**
* A unique identifier that's generated for each home region control. It's always a string that begins with "hrc-" followed by 12 lowercase letters and numbers.
*/
public val controlId: kotlin.String? = builder.controlId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.migrationhubconfig.model.DeleteHomeRegionControlRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteHomeRegionControlRequest(")
append("controlId=$controlId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = controlId?.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 DeleteHomeRegionControlRequest
if (controlId != other.controlId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.migrationhubconfig.model.DeleteHomeRegionControlRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier that's generated for each home region control. It's always a string that begins with "hrc-" followed by 12 lowercase letters and numbers.
*/
public var controlId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.migrationhubconfig.model.DeleteHomeRegionControlRequest) : this() {
this.controlId = x.controlId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.migrationhubconfig.model.DeleteHomeRegionControlRequest = DeleteHomeRegionControlRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}