commonMain.aws.sdk.kotlin.services.datasync.model.DescribeDiscoveryJobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datasync.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class DescribeDiscoveryJobResponse private constructor(builder: Builder) {
/**
* The number of minutes that the discovery job runs.
*/
public val collectionDurationMinutes: kotlin.Int? = builder.collectionDurationMinutes
/**
* The ARN of the discovery job.
*/
public val discoveryJobArn: kotlin.String? = builder.discoveryJobArn
/**
* The time when the discovery job ended.
*/
public val jobEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.jobEndTime
/**
* The time when the discovery job started.
*/
public val jobStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.jobStartTime
/**
* Indicates the status of a discovery job. For more information, see [Discovery job statuses](https://docs.aws.amazon.com/datasync/latest/userguide/discovery-job-statuses.html#discovery-job-statuses-table).
*/
public val status: aws.sdk.kotlin.services.datasync.model.DiscoveryJobStatus? = builder.status
/**
* The ARN of the on-premises storage system you're running the discovery job on.
*/
public val storageSystemArn: kotlin.String? = builder.storageSystemArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.DescribeDiscoveryJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDiscoveryJobResponse(")
append("collectionDurationMinutes=$collectionDurationMinutes,")
append("discoveryJobArn=$discoveryJobArn,")
append("jobEndTime=$jobEndTime,")
append("jobStartTime=$jobStartTime,")
append("status=$status,")
append("storageSystemArn=$storageSystemArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collectionDurationMinutes ?: 0
result = 31 * result + (discoveryJobArn?.hashCode() ?: 0)
result = 31 * result + (jobEndTime?.hashCode() ?: 0)
result = 31 * result + (jobStartTime?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (storageSystemArn?.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 DescribeDiscoveryJobResponse
if (collectionDurationMinutes != other.collectionDurationMinutes) return false
if (discoveryJobArn != other.discoveryJobArn) return false
if (jobEndTime != other.jobEndTime) return false
if (jobStartTime != other.jobStartTime) return false
if (status != other.status) return false
if (storageSystemArn != other.storageSystemArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.DescribeDiscoveryJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of minutes that the discovery job runs.
*/
public var collectionDurationMinutes: kotlin.Int? = null
/**
* The ARN of the discovery job.
*/
public var discoveryJobArn: kotlin.String? = null
/**
* The time when the discovery job ended.
*/
public var jobEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The time when the discovery job started.
*/
public var jobStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Indicates the status of a discovery job. For more information, see [Discovery job statuses](https://docs.aws.amazon.com/datasync/latest/userguide/discovery-job-statuses.html#discovery-job-statuses-table).
*/
public var status: aws.sdk.kotlin.services.datasync.model.DiscoveryJobStatus? = null
/**
* The ARN of the on-premises storage system you're running the discovery job on.
*/
public var storageSystemArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.DescribeDiscoveryJobResponse) : this() {
this.collectionDurationMinutes = x.collectionDurationMinutes
this.discoveryJobArn = x.discoveryJobArn
this.jobEndTime = x.jobEndTime
this.jobStartTime = x.jobStartTime
this.status = x.status
this.storageSystemArn = x.storageSystemArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.DescribeDiscoveryJobResponse = DescribeDiscoveryJobResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy