
commonMain.aws.sdk.kotlin.services.mgn.model.Job.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
/**
* Job.
*/
class Job private constructor(builder: Builder) {
/**
* the ARN of the specific Job.
*/
val arn: kotlin.String? = builder.arn
/**
* Job creation time.
*/
val creationDateTime: kotlin.String? = builder.creationDateTime
/**
* Job end time.
*/
val endDateTime: kotlin.String? = builder.endDateTime
/**
* Job initiated by field.
*/
val initiatedBy: aws.sdk.kotlin.services.mgn.model.InitiatedBy? = builder.initiatedBy
/**
* Job ID.
*/
val jobId: kotlin.String? = builder.jobId
/**
* Servers participating in a specific Job.
*/
val participatingServers: List? = builder.participatingServers
/**
* Job status.
*/
val status: aws.sdk.kotlin.services.mgn.model.JobStatus? = builder.status
/**
* Tags associated with specific Job.
*/
val tags: Map? = builder.tags
/**
* Job type.
*/
val type: aws.sdk.kotlin.services.mgn.model.JobType? = builder.type
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.Job = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Job(")
append("arn=$arn,")
append("creationDateTime=$creationDateTime,")
append("endDateTime=$endDateTime,")
append("initiatedBy=$initiatedBy,")
append("jobId=$jobId,")
append("participatingServers=$participatingServers,")
append("status=$status,")
append("tags=*** Sensitive Data Redacted ***,")
append("type=$type)")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (creationDateTime?.hashCode() ?: 0)
result = 31 * result + (endDateTime?.hashCode() ?: 0)
result = 31 * result + (initiatedBy?.hashCode() ?: 0)
result = 31 * result + (jobId?.hashCode() ?: 0)
result = 31 * result + (participatingServers?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (type?.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 Job
if (arn != other.arn) return false
if (creationDateTime != other.creationDateTime) return false
if (endDateTime != other.endDateTime) return false
if (initiatedBy != other.initiatedBy) return false
if (jobId != other.jobId) return false
if (participatingServers != other.participatingServers) return false
if (status != other.status) return false
if (tags != other.tags) return false
if (type != other.type) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.Job = Builder(this).apply(block).build()
class Builder {
/**
* the ARN of the specific Job.
*/
var arn: kotlin.String? = null
/**
* Job creation time.
*/
var creationDateTime: kotlin.String? = null
/**
* Job end time.
*/
var endDateTime: kotlin.String? = null
/**
* Job initiated by field.
*/
var initiatedBy: aws.sdk.kotlin.services.mgn.model.InitiatedBy? = null
/**
* Job ID.
*/
var jobId: kotlin.String? = null
/**
* Servers participating in a specific Job.
*/
var participatingServers: List? = null
/**
* Job status.
*/
var status: aws.sdk.kotlin.services.mgn.model.JobStatus? = null
/**
* Tags associated with specific Job.
*/
var tags: Map? = null
/**
* Job type.
*/
var type: aws.sdk.kotlin.services.mgn.model.JobType? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.Job) : this() {
this.arn = x.arn
this.creationDateTime = x.creationDateTime
this.endDateTime = x.endDateTime
this.initiatedBy = x.initiatedBy
this.jobId = x.jobId
this.participatingServers = x.participatingServers
this.status = x.status
this.tags = x.tags
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.Job = Job(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy