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