commonMain.aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotfleetwise-jvm Show documentation
Show all versions of iotfleetwise-jvm Show documentation
The AWS SDK for Kotlin client for IoTFleetWise
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotfleetwise.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configurations used to create a decoder manifest.
*/
public class CanDbcDefinition private constructor(builder: Builder) {
/**
* A list of DBC files. You can upload only one DBC file for each network interface and specify up to five (inclusive) files in the list. The DBC file can be a maximum size of 200 MB.
*/
public val canDbcFiles: List = requireNotNull(builder.canDbcFiles) { "A non-null value must be provided for canDbcFiles" }
/**
* Contains information about a network interface.
*/
public val networkInterface: kotlin.String = requireNotNull(builder.networkInterface) { "A non-null value must be provided for networkInterface" }
/**
* Pairs every signal specified in your vehicle model with a signal decoder.
*/
public val signalsMap: Map? = builder.signalsMap
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CanDbcDefinition(")
append("canDbcFiles=$canDbcFiles,")
append("networkInterface=$networkInterface,")
append("signalsMap=$signalsMap")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = canDbcFiles.hashCode()
result = 31 * result + (networkInterface.hashCode())
result = 31 * result + (signalsMap?.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 CanDbcDefinition
if (canDbcFiles != null) {
if (other.canDbcFiles == null) return false
if (canDbcFiles.size != other.canDbcFiles.size) return false
for (i in canDbcFiles.indices) {
if (!canDbcFiles[i].contentEquals(other.canDbcFiles[i])) return false
}
} else if (other.canDbcFiles != null) return false
if (networkInterface != other.networkInterface) return false
if (signalsMap != other.signalsMap) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of DBC files. You can upload only one DBC file for each network interface and specify up to five (inclusive) files in the list. The DBC file can be a maximum size of 200 MB.
*/
public var canDbcFiles: List? = null
/**
* Contains information about a network interface.
*/
public var networkInterface: kotlin.String? = null
/**
* Pairs every signal specified in your vehicle model with a signal decoder.
*/
public var signalsMap: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition) : this() {
this.canDbcFiles = x.canDbcFiles
this.networkInterface = x.networkInterface
this.signalsMap = x.signalsMap
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.CanDbcDefinition = CanDbcDefinition(this)
internal fun correctErrors(): Builder {
if (canDbcFiles == null) canDbcFiles = emptyList()
if (networkInterface == null) networkInterface = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy