
commonMain.aws.sdk.kotlin.services.mgn.model.ParticipatingServer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
/**
* Server participating in Job.
*/
class ParticipatingServer private constructor(builder: Builder) {
/**
* Participating server launch status.
*/
val launchStatus: aws.sdk.kotlin.services.mgn.model.LaunchStatus? = builder.launchStatus
/**
* Participating server Source Server ID.
*/
val launchedEc2InstanceId: kotlin.String? = builder.launchedEc2InstanceId
/**
* Participating server Source Server ID.
*/
val postLaunchActionsStatus: aws.sdk.kotlin.services.mgn.model.PostLaunchActionsStatus? = builder.postLaunchActionsStatus
/**
* Participating server Source Server ID.
*/
val sourceServerId: kotlin.String? = builder.sourceServerId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.ParticipatingServer = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ParticipatingServer(")
append("launchStatus=$launchStatus,")
append("launchedEc2InstanceId=$launchedEc2InstanceId,")
append("postLaunchActionsStatus=$postLaunchActionsStatus,")
append("sourceServerId=$sourceServerId)")
}
override fun hashCode(): kotlin.Int {
var result = launchStatus?.hashCode() ?: 0
result = 31 * result + (launchedEc2InstanceId?.hashCode() ?: 0)
result = 31 * result + (postLaunchActionsStatus?.hashCode() ?: 0)
result = 31 * result + (sourceServerId?.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 ParticipatingServer
if (launchStatus != other.launchStatus) return false
if (launchedEc2InstanceId != other.launchedEc2InstanceId) return false
if (postLaunchActionsStatus != other.postLaunchActionsStatus) return false
if (sourceServerId != other.sourceServerId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.ParticipatingServer = Builder(this).apply(block).build()
class Builder {
/**
* Participating server launch status.
*/
var launchStatus: aws.sdk.kotlin.services.mgn.model.LaunchStatus? = null
/**
* Participating server Source Server ID.
*/
var launchedEc2InstanceId: kotlin.String? = null
/**
* Participating server Source Server ID.
*/
var postLaunchActionsStatus: aws.sdk.kotlin.services.mgn.model.PostLaunchActionsStatus? = null
/**
* Participating server Source Server ID.
*/
var sourceServerId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.ParticipatingServer) : this() {
this.launchStatus = x.launchStatus
this.launchedEc2InstanceId = x.launchedEc2InstanceId
this.postLaunchActionsStatus = x.postLaunchActionsStatus
this.sourceServerId = x.sourceServerId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.ParticipatingServer = ParticipatingServer(this)
/**
* construct an [aws.sdk.kotlin.services.mgn.model.PostLaunchActionsStatus] inside the given [block]
*/
fun postLaunchActionsStatus(block: aws.sdk.kotlin.services.mgn.model.PostLaunchActionsStatus.Builder.() -> kotlin.Unit) {
this.postLaunchActionsStatus = aws.sdk.kotlin.services.mgn.model.PostLaunchActionsStatus.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy