commonMain.aws.sdk.kotlin.services.migrationhubconfig.model.CreateHomeRegionControlResponse.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 CreateHomeRegionControlResponse private constructor(builder: Builder) {
/**
* This object is the `HomeRegionControl` object that's returned by a successful call to `CreateHomeRegionControl`.
*/
public val homeRegionControl: aws.sdk.kotlin.services.migrationhubconfig.model.HomeRegionControl? = builder.homeRegionControl
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.migrationhubconfig.model.CreateHomeRegionControlResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateHomeRegionControlResponse(")
append("homeRegionControl=$homeRegionControl")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = homeRegionControl?.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 CreateHomeRegionControlResponse
if (homeRegionControl != other.homeRegionControl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.migrationhubconfig.model.CreateHomeRegionControlResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This object is the `HomeRegionControl` object that's returned by a successful call to `CreateHomeRegionControl`.
*/
public var homeRegionControl: aws.sdk.kotlin.services.migrationhubconfig.model.HomeRegionControl? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.migrationhubconfig.model.CreateHomeRegionControlResponse) : this() {
this.homeRegionControl = x.homeRegionControl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.migrationhubconfig.model.CreateHomeRegionControlResponse = CreateHomeRegionControlResponse(this)
/**
* construct an [aws.sdk.kotlin.services.migrationhubconfig.model.HomeRegionControl] inside the given [block]
*/
public fun homeRegionControl(block: aws.sdk.kotlin.services.migrationhubconfig.model.HomeRegionControl.Builder.() -> kotlin.Unit) {
this.homeRegionControl = aws.sdk.kotlin.services.migrationhubconfig.model.HomeRegionControl.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}