
commonMain.aws.sdk.kotlin.services.iot.model.RegistrationConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The registration configuration.
*/
public class RegistrationConfig private constructor(builder: Builder) {
/**
* The ARN of the role.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The template body.
*/
public val templateBody: kotlin.String? = builder.templateBody
/**
* The name of the provisioning template.
*/
public val templateName: kotlin.String? = builder.templateName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.RegistrationConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RegistrationConfig(")
append("roleArn=$roleArn,")
append("templateBody=$templateBody,")
append("templateName=$templateName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = roleArn?.hashCode() ?: 0
result = 31 * result + (templateBody?.hashCode() ?: 0)
result = 31 * result + (templateName?.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 RegistrationConfig
if (roleArn != other.roleArn) return false
if (templateBody != other.templateBody) return false
if (templateName != other.templateName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.RegistrationConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the role.
*/
public var roleArn: kotlin.String? = null
/**
* The template body.
*/
public var templateBody: kotlin.String? = null
/**
* The name of the provisioning template.
*/
public var templateName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.RegistrationConfig) : this() {
this.roleArn = x.roleArn
this.templateBody = x.templateBody
this.templateName = x.templateName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.RegistrationConfig = RegistrationConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy