
commonMain.aws.sdk.kotlin.services.iot.model.DescribeThingRegistrationTaskResponse.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 DescribeThingRegistrationTaskResponse private constructor(builder: Builder) {
/**
* The task creation date.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The number of things that failed to be provisioned.
*/
public val failureCount: kotlin.Int = builder.failureCount
/**
* The S3 bucket that contains the input file.
*/
public val inputFileBucket: kotlin.String? = builder.inputFileBucket
/**
* The input file key.
*/
public val inputFileKey: kotlin.String? = builder.inputFileKey
/**
* The date when the task was last modified.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
/**
* The message.
*/
public val message: kotlin.String? = builder.message
/**
* The progress of the bulk provisioning task expressed as a percentage.
*/
public val percentageProgress: kotlin.Int = builder.percentageProgress
/**
* The role ARN that grants access to the input file bucket.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The status of the bulk thing provisioning task.
*/
public val status: aws.sdk.kotlin.services.iot.model.Status? = builder.status
/**
* The number of things successfully provisioned.
*/
public val successCount: kotlin.Int = builder.successCount
/**
* The task ID.
*/
public val taskId: kotlin.String? = builder.taskId
/**
* The task's template.
*/
public val templateBody: kotlin.String? = builder.templateBody
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DescribeThingRegistrationTaskResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeThingRegistrationTaskResponse(")
append("creationDate=$creationDate,")
append("failureCount=$failureCount,")
append("inputFileBucket=$inputFileBucket,")
append("inputFileKey=$inputFileKey,")
append("lastModifiedDate=$lastModifiedDate,")
append("message=$message,")
append("percentageProgress=$percentageProgress,")
append("roleArn=$roleArn,")
append("status=$status,")
append("successCount=$successCount,")
append("taskId=$taskId,")
append("templateBody=$templateBody")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationDate?.hashCode() ?: 0
result = 31 * result + (failureCount)
result = 31 * result + (inputFileBucket?.hashCode() ?: 0)
result = 31 * result + (inputFileKey?.hashCode() ?: 0)
result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (percentageProgress)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (successCount)
result = 31 * result + (taskId?.hashCode() ?: 0)
result = 31 * result + (templateBody?.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 DescribeThingRegistrationTaskResponse
if (creationDate != other.creationDate) return false
if (failureCount != other.failureCount) return false
if (inputFileBucket != other.inputFileBucket) return false
if (inputFileKey != other.inputFileKey) return false
if (lastModifiedDate != other.lastModifiedDate) return false
if (message != other.message) return false
if (percentageProgress != other.percentageProgress) return false
if (roleArn != other.roleArn) return false
if (status != other.status) return false
if (successCount != other.successCount) return false
if (taskId != other.taskId) return false
if (templateBody != other.templateBody) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DescribeThingRegistrationTaskResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The task creation date.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The number of things that failed to be provisioned.
*/
public var failureCount: kotlin.Int = 0
/**
* The S3 bucket that contains the input file.
*/
public var inputFileBucket: kotlin.String? = null
/**
* The input file key.
*/
public var inputFileKey: kotlin.String? = null
/**
* The date when the task was last modified.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The message.
*/
public var message: kotlin.String? = null
/**
* The progress of the bulk provisioning task expressed as a percentage.
*/
public var percentageProgress: kotlin.Int = 0
/**
* The role ARN that grants access to the input file bucket.
*/
public var roleArn: kotlin.String? = null
/**
* The status of the bulk thing provisioning task.
*/
public var status: aws.sdk.kotlin.services.iot.model.Status? = null
/**
* The number of things successfully provisioned.
*/
public var successCount: kotlin.Int = 0
/**
* The task ID.
*/
public var taskId: kotlin.String? = null
/**
* The task's template.
*/
public var templateBody: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeThingRegistrationTaskResponse) : this() {
this.creationDate = x.creationDate
this.failureCount = x.failureCount
this.inputFileBucket = x.inputFileBucket
this.inputFileKey = x.inputFileKey
this.lastModifiedDate = x.lastModifiedDate
this.message = x.message
this.percentageProgress = x.percentageProgress
this.roleArn = x.roleArn
this.status = x.status
this.successCount = x.successCount
this.taskId = x.taskId
this.templateBody = x.templateBody
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DescribeThingRegistrationTaskResponse = DescribeThingRegistrationTaskResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy