commonMain.aws.sdk.kotlin.services.deadline.model.DeleteMonitorRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteMonitorRequest private constructor(builder: Builder) {
/**
* The unique identifier of the monitor to delete. This ID is returned by the `CreateMonitor` operation, and is included in the response to the `GetMonitor` operation.
*/
public val monitorId: kotlin.String? = builder.monitorId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.DeleteMonitorRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteMonitorRequest(")
append("monitorId=$monitorId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = monitorId?.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 DeleteMonitorRequest
if (monitorId != other.monitorId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.DeleteMonitorRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the monitor to delete. This ID is returned by the `CreateMonitor` operation, and is included in the response to the `GetMonitor` operation.
*/
public var monitorId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.DeleteMonitorRequest) : this() {
this.monitorId = x.monitorId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.DeleteMonitorRequest = DeleteMonitorRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}