
commonMain.aws.sdk.kotlin.services.iot.model.DescribeAuditTaskResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
import aws.smithy.kotlin.runtime.time.Instant
public class DescribeAuditTaskResponse private constructor(builder: Builder) {
/**
* Detailed information about each check performed during this audit.
*/
public val auditDetails: Map? = builder.auditDetails
/**
* The name of the scheduled audit (only if the audit was a scheduled audit).
*/
public val scheduledAuditName: kotlin.String? = builder.scheduledAuditName
/**
* The time the audit started.
*/
public val taskStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.taskStartTime
/**
* Statistical information about the audit.
*/
public val taskStatistics: aws.sdk.kotlin.services.iot.model.TaskStatistics? = builder.taskStatistics
/**
* The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or "CANCELED".
*/
public val taskStatus: aws.sdk.kotlin.services.iot.model.AuditTaskStatus? = builder.taskStatus
/**
* The type of audit: "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.DescribeAuditTaskResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAuditTaskResponse(")
append("auditDetails=$auditDetails,")
append("scheduledAuditName=$scheduledAuditName,")
append("taskStartTime=$taskStartTime,")
append("taskStatistics=$taskStatistics,")
append("taskStatus=$taskStatus,")
append("taskType=$taskType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = auditDetails?.hashCode() ?: 0
result = 31 * result + (scheduledAuditName?.hashCode() ?: 0)
result = 31 * result + (taskStartTime?.hashCode() ?: 0)
result = 31 * result + (taskStatistics?.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 DescribeAuditTaskResponse
if (auditDetails != other.auditDetails) return false
if (scheduledAuditName != other.scheduledAuditName) return false
if (taskStartTime != other.taskStartTime) return false
if (taskStatistics != other.taskStatistics) 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.DescribeAuditTaskResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Detailed information about each check performed during this audit.
*/
public var auditDetails: Map? = null
/**
* The name of the scheduled audit (only if the audit was a scheduled audit).
*/
public var scheduledAuditName: kotlin.String? = null
/**
* The time the audit started.
*/
public var taskStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Statistical information about the audit.
*/
public var taskStatistics: aws.sdk.kotlin.services.iot.model.TaskStatistics? = null
/**
* The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or "CANCELED".
*/
public var taskStatus: aws.sdk.kotlin.services.iot.model.AuditTaskStatus? = null
/**
* The type of audit: "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.DescribeAuditTaskResponse) : this() {
this.auditDetails = x.auditDetails
this.scheduledAuditName = x.scheduledAuditName
this.taskStartTime = x.taskStartTime
this.taskStatistics = x.taskStatistics
this.taskStatus = x.taskStatus
this.taskType = x.taskType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DescribeAuditTaskResponse = DescribeAuditTaskResponse(this)
/**
* construct an [aws.sdk.kotlin.services.iot.model.TaskStatistics] inside the given [block]
*/
public fun taskStatistics(block: aws.sdk.kotlin.services.iot.model.TaskStatistics.Builder.() -> kotlin.Unit) {
this.taskStatistics = aws.sdk.kotlin.services.iot.model.TaskStatistics.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy