
commonMain.aws.sdk.kotlin.services.iot.model.CreateProvisioningTemplateVersionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class CreateProvisioningTemplateVersionRequest private constructor(builder: Builder) {
/**
* Sets a fleet provision template version as the default version.
*/
public val setAsDefault: kotlin.Boolean? = builder.setAsDefault
/**
* The JSON formatted contents of the provisioning template.
*/
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.CreateProvisioningTemplateVersionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateProvisioningTemplateVersionRequest(")
append("setAsDefault=$setAsDefault,")
append("templateBody=$templateBody,")
append("templateName=$templateName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = setAsDefault?.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 CreateProvisioningTemplateVersionRequest
if (setAsDefault != other.setAsDefault) 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.CreateProvisioningTemplateVersionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Sets a fleet provision template version as the default version.
*/
public var setAsDefault: kotlin.Boolean? = null
/**
* The JSON formatted contents of the provisioning template.
*/
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.CreateProvisioningTemplateVersionRequest) : this() {
this.setAsDefault = x.setAsDefault
this.templateBody = x.templateBody
this.templateName = x.templateName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.CreateProvisioningTemplateVersionRequest = CreateProvisioningTemplateVersionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy