commonMain.aws.sdk.kotlin.services.datasync.model.UpdateDiscoveryJobRequest.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
public class UpdateDiscoveryJobRequest private constructor(builder: Builder) {
/**
* Specifies in minutes how long that you want the discovery job to run. (You can't set this parameter to less than the number of minutes that the job has already run for.)
*/
public val collectionDurationMinutes: kotlin.Int? = builder.collectionDurationMinutes
/**
* Specifies the Amazon Resource Name (ARN) of the discovery job that you want to update.
*/
public val discoveryJobArn: kotlin.String? = builder.discoveryJobArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.UpdateDiscoveryJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDiscoveryJobRequest(")
append("collectionDurationMinutes=$collectionDurationMinutes,")
append("discoveryJobArn=$discoveryJobArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collectionDurationMinutes ?: 0
result = 31 * result + (discoveryJobArn?.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 UpdateDiscoveryJobRequest
if (collectionDurationMinutes != other.collectionDurationMinutes) return false
if (discoveryJobArn != other.discoveryJobArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.UpdateDiscoveryJobRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies in minutes how long that you want the discovery job to run. (You can't set this parameter to less than the number of minutes that the job has already run for.)
*/
public var collectionDurationMinutes: kotlin.Int? = null
/**
* Specifies the Amazon Resource Name (ARN) of the discovery job that you want to update.
*/
public var discoveryJobArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.UpdateDiscoveryJobRequest) : this() {
this.collectionDurationMinutes = x.collectionDurationMinutes
this.discoveryJobArn = x.discoveryJobArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.UpdateDiscoveryJobRequest = UpdateDiscoveryJobRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy