
commonMain.aws.sdk.kotlin.services.iot.model.AuditTaskMetadata.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The audits that were performed.
*/
public class AuditTaskMetadata private constructor(builder: Builder) {
/**
* The ID of this audit.
*/
public val taskId: kotlin.String? = builder.taskId
/**
* The status of this audit. One of "IN_PROGRESS", "COMPLETED", "FAILED", or "CANCELED".
*/
public val taskStatus: aws.sdk.kotlin.services.iot.model.AuditTaskStatus? = builder.taskStatus
/**
* The type of this audit. One of "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".
*/
public val taskType: aws.sdk.kotlin.services.iot.model.AuditTaskType? = builder.taskType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.AuditTaskMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AuditTaskMetadata(")
append("taskId=$taskId,")
append("taskStatus=$taskStatus,")
append("taskType=$taskType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = taskId?.hashCode() ?: 0
result = 31 * result + (taskStatus?.hashCode() ?: 0)
result = 31 * result + (taskType?.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 AuditTaskMetadata
if (taskId != other.taskId) return false
if (taskStatus != other.taskStatus) return false
if (taskType != other.taskType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.AuditTaskMetadata = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of this audit.
*/
public var taskId: kotlin.String? = null
/**
* The status of this audit. One of "IN_PROGRESS", "COMPLETED", "FAILED", or "CANCELED".
*/
public var taskStatus: aws.sdk.kotlin.services.iot.model.AuditTaskStatus? = null
/**
* The type of this audit. One of "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".
*/
public var taskType: aws.sdk.kotlin.services.iot.model.AuditTaskType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.AuditTaskMetadata) : this() {
this.taskId = x.taskId
this.taskStatus = x.taskStatus
this.taskType = x.taskType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.AuditTaskMetadata = AuditTaskMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy