
commonMain.aws.sdk.kotlin.services.iot.model.StartThingRegistrationTaskRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class StartThingRegistrationTaskRequest private constructor(builder: Builder) {
/**
* The S3 bucket that contains the input file.
*/
public val inputFileBucket: kotlin.String? = builder.inputFileBucket
/**
* The name of input file within the S3 bucket. This file contains a newline delimited JSON file. Each line contains the parameter values to provision one device (thing).
*/
public val inputFileKey: kotlin.String? = builder.inputFileKey
/**
* The IAM role ARN that grants permission the input file.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The provisioning 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.StartThingRegistrationTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartThingRegistrationTaskRequest(")
append("inputFileBucket=$inputFileBucket,")
append("inputFileKey=$inputFileKey,")
append("roleArn=$roleArn,")
append("templateBody=$templateBody")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputFileBucket?.hashCode() ?: 0
result = 31 * result + (inputFileKey?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 StartThingRegistrationTaskRequest
if (inputFileBucket != other.inputFileBucket) return false
if (inputFileKey != other.inputFileKey) return false
if (roleArn != other.roleArn) return false
if (templateBody != other.templateBody) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.StartThingRegistrationTaskRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The S3 bucket that contains the input file.
*/
public var inputFileBucket: kotlin.String? = null
/**
* The name of input file within the S3 bucket. This file contains a newline delimited JSON file. Each line contains the parameter values to provision one device (thing).
*/
public var inputFileKey: kotlin.String? = null
/**
* The IAM role ARN that grants permission the input file.
*/
public var roleArn: kotlin.String? = null
/**
* The provisioning template.
*/
public var templateBody: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.StartThingRegistrationTaskRequest) : this() {
this.inputFileBucket = x.inputFileBucket
this.inputFileKey = x.inputFileKey
this.roleArn = x.roleArn
this.templateBody = x.templateBody
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.StartThingRegistrationTaskRequest = StartThingRegistrationTaskRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy