
commonMain.aws.sdk.kotlin.services.mgn.model.LaunchedInstance.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
/**
* Launched instance.
*/
class LaunchedInstance private constructor(builder: Builder) {
/**
* Launched instance EC2 ID.
*/
val ec2InstanceId: kotlin.String? = builder.ec2InstanceId
/**
* Launched instance first boot.
*/
val firstBoot: aws.sdk.kotlin.services.mgn.model.FirstBoot? = builder.firstBoot
/**
* Launched instance Job ID.
*/
val jobId: kotlin.String? = builder.jobId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.LaunchedInstance = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LaunchedInstance(")
append("ec2InstanceId=$ec2InstanceId,")
append("firstBoot=$firstBoot,")
append("jobId=$jobId)")
}
override fun hashCode(): kotlin.Int {
var result = ec2InstanceId?.hashCode() ?: 0
result = 31 * result + (firstBoot?.hashCode() ?: 0)
result = 31 * result + (jobId?.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 LaunchedInstance
if (ec2InstanceId != other.ec2InstanceId) return false
if (firstBoot != other.firstBoot) return false
if (jobId != other.jobId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.LaunchedInstance = Builder(this).apply(block).build()
class Builder {
/**
* Launched instance EC2 ID.
*/
var ec2InstanceId: kotlin.String? = null
/**
* Launched instance first boot.
*/
var firstBoot: aws.sdk.kotlin.services.mgn.model.FirstBoot? = null
/**
* Launched instance Job ID.
*/
var jobId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.LaunchedInstance) : this() {
this.ec2InstanceId = x.ec2InstanceId
this.firstBoot = x.firstBoot
this.jobId = x.jobId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.LaunchedInstance = LaunchedInstance(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy