
commonMain.aws.sdk.kotlin.services.mgn.model.StartReplicationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
class StartReplicationResponse private constructor(builder: Builder) {
/**
* Source server ARN.
*/
val arn: kotlin.String? = builder.arn
/**
* Source server data replication info.
*/
val dataReplicationInfo: aws.sdk.kotlin.services.mgn.model.DataReplicationInfo? = builder.dataReplicationInfo
/**
* Source server archived status.
*/
val isArchived: kotlin.Boolean? = builder.isArchived
/**
* Source server launched instance.
*/
val launchedInstance: aws.sdk.kotlin.services.mgn.model.LaunchedInstance? = builder.launchedInstance
/**
* Source server lifecycle state.
*/
val lifeCycle: aws.sdk.kotlin.services.mgn.model.LifeCycle? = builder.lifeCycle
/**
* Source server replication type.
*/
val replicationType: aws.sdk.kotlin.services.mgn.model.ReplicationType? = builder.replicationType
/**
* Source server properties.
*/
val sourceProperties: aws.sdk.kotlin.services.mgn.model.SourceProperties? = builder.sourceProperties
/**
* Source server ID.
*/
val sourceServerId: kotlin.String? = builder.sourceServerId
/**
* Source server Tags.
*/
val tags: Map? = builder.tags
/**
* Source server vCenter client id.
*/
val vcenterClientId: kotlin.String? = builder.vcenterClientId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.StartReplicationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartReplicationResponse(")
append("arn=$arn,")
append("dataReplicationInfo=$dataReplicationInfo,")
append("isArchived=$isArchived,")
append("launchedInstance=$launchedInstance,")
append("lifeCycle=$lifeCycle,")
append("replicationType=$replicationType,")
append("sourceProperties=$sourceProperties,")
append("sourceServerId=$sourceServerId,")
append("tags=*** Sensitive Data Redacted ***,")
append("vcenterClientId=$vcenterClientId)")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (dataReplicationInfo?.hashCode() ?: 0)
result = 31 * result + (isArchived?.hashCode() ?: 0)
result = 31 * result + (launchedInstance?.hashCode() ?: 0)
result = 31 * result + (lifeCycle?.hashCode() ?: 0)
result = 31 * result + (replicationType?.hashCode() ?: 0)
result = 31 * result + (sourceProperties?.hashCode() ?: 0)
result = 31 * result + (sourceServerId?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (vcenterClientId?.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 StartReplicationResponse
if (arn != other.arn) return false
if (dataReplicationInfo != other.dataReplicationInfo) return false
if (isArchived != other.isArchived) return false
if (launchedInstance != other.launchedInstance) return false
if (lifeCycle != other.lifeCycle) return false
if (replicationType != other.replicationType) return false
if (sourceProperties != other.sourceProperties) return false
if (sourceServerId != other.sourceServerId) return false
if (tags != other.tags) return false
if (vcenterClientId != other.vcenterClientId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.StartReplicationResponse = Builder(this).apply(block).build()
class Builder {
/**
* Source server ARN.
*/
var arn: kotlin.String? = null
/**
* Source server data replication info.
*/
var dataReplicationInfo: aws.sdk.kotlin.services.mgn.model.DataReplicationInfo? = null
/**
* Source server archived status.
*/
var isArchived: kotlin.Boolean? = null
/**
* Source server launched instance.
*/
var launchedInstance: aws.sdk.kotlin.services.mgn.model.LaunchedInstance? = null
/**
* Source server lifecycle state.
*/
var lifeCycle: aws.sdk.kotlin.services.mgn.model.LifeCycle? = null
/**
* Source server replication type.
*/
var replicationType: aws.sdk.kotlin.services.mgn.model.ReplicationType? = null
/**
* Source server properties.
*/
var sourceProperties: aws.sdk.kotlin.services.mgn.model.SourceProperties? = null
/**
* Source server ID.
*/
var sourceServerId: kotlin.String? = null
/**
* Source server Tags.
*/
var tags: Map? = null
/**
* Source server vCenter client id.
*/
var vcenterClientId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.StartReplicationResponse) : this() {
this.arn = x.arn
this.dataReplicationInfo = x.dataReplicationInfo
this.isArchived = x.isArchived
this.launchedInstance = x.launchedInstance
this.lifeCycle = x.lifeCycle
this.replicationType = x.replicationType
this.sourceProperties = x.sourceProperties
this.sourceServerId = x.sourceServerId
this.tags = x.tags
this.vcenterClientId = x.vcenterClientId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.StartReplicationResponse = StartReplicationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.mgn.model.DataReplicationInfo] inside the given [block]
*/
fun dataReplicationInfo(block: aws.sdk.kotlin.services.mgn.model.DataReplicationInfo.Builder.() -> kotlin.Unit) {
this.dataReplicationInfo = aws.sdk.kotlin.services.mgn.model.DataReplicationInfo.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mgn.model.LaunchedInstance] inside the given [block]
*/
fun launchedInstance(block: aws.sdk.kotlin.services.mgn.model.LaunchedInstance.Builder.() -> kotlin.Unit) {
this.launchedInstance = aws.sdk.kotlin.services.mgn.model.LaunchedInstance.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mgn.model.LifeCycle] inside the given [block]
*/
fun lifeCycle(block: aws.sdk.kotlin.services.mgn.model.LifeCycle.Builder.() -> kotlin.Unit) {
this.lifeCycle = aws.sdk.kotlin.services.mgn.model.LifeCycle.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mgn.model.SourceProperties] inside the given [block]
*/
fun sourceProperties(block: aws.sdk.kotlin.services.mgn.model.SourceProperties.Builder.() -> kotlin.Unit) {
this.sourceProperties = aws.sdk.kotlin.services.mgn.model.SourceProperties.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy