commonMain.aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot1clickprojects-jvm Show documentation
Show all versions of iot1clickprojects-jvm Show documentation
The AWS SDK for Kotlin client for IoT 1Click Projects
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot1clickprojects.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object defining the template for a placement.
*/
public class PlacementTemplate private constructor(builder: Builder) {
/**
* The default attributes (key/value pairs) to be applied to all placements using this template.
*/
public val defaultAttributes: Map? = builder.defaultAttributes
/**
* An object specifying the DeviceTemplate for all placements using this (PlacementTemplate) template.
*/
public val deviceTemplates: Map? = builder.deviceTemplates
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PlacementTemplate(")
append("defaultAttributes=$defaultAttributes,")
append("deviceTemplates=$deviceTemplates")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultAttributes?.hashCode() ?: 0
result = 31 * result + (deviceTemplates?.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 PlacementTemplate
if (defaultAttributes != other.defaultAttributes) return false
if (deviceTemplates != other.deviceTemplates) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The default attributes (key/value pairs) to be applied to all placements using this template.
*/
public var defaultAttributes: Map? = null
/**
* An object specifying the DeviceTemplate for all placements using this (PlacementTemplate) template.
*/
public var deviceTemplates: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate) : this() {
this.defaultAttributes = x.defaultAttributes
this.deviceTemplates = x.deviceTemplates
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate = PlacementTemplate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy