commonMain.aws.sdk.kotlin.services.iotfleetwise.model.NodeCounts.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
/**
* Information about the number of nodes and node types in a vehicle network.
*/
public class NodeCounts private constructor(builder: Builder) {
/**
* The total number of nodes in a vehicle network that represent actuators.
*/
public val totalActuators: kotlin.Int = builder.totalActuators
/**
* The total number of nodes in a vehicle network that represent attributes.
*/
public val totalAttributes: kotlin.Int = builder.totalAttributes
/**
* The total number of nodes in a vehicle network that represent branches.
*/
public val totalBranches: kotlin.Int = builder.totalBranches
/**
* The total number of nodes in a vehicle network.
*/
public val totalNodes: kotlin.Int = builder.totalNodes
/**
* The total properties for the node.
*/
public val totalProperties: kotlin.Int = builder.totalProperties
/**
* The total number of nodes in a vehicle network that represent sensors.
*/
public val totalSensors: kotlin.Int = builder.totalSensors
/**
* The total structure for the node.
*/
public val totalStructs: kotlin.Int = builder.totalStructs
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.NodeCounts = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NodeCounts(")
append("totalActuators=$totalActuators,")
append("totalAttributes=$totalAttributes,")
append("totalBranches=$totalBranches,")
append("totalNodes=$totalNodes,")
append("totalProperties=$totalProperties,")
append("totalSensors=$totalSensors,")
append("totalStructs=$totalStructs")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = totalActuators
result = 31 * result + (totalAttributes)
result = 31 * result + (totalBranches)
result = 31 * result + (totalNodes)
result = 31 * result + (totalProperties)
result = 31 * result + (totalSensors)
result = 31 * result + (totalStructs)
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 NodeCounts
if (totalActuators != other.totalActuators) return false
if (totalAttributes != other.totalAttributes) return false
if (totalBranches != other.totalBranches) return false
if (totalNodes != other.totalNodes) return false
if (totalProperties != other.totalProperties) return false
if (totalSensors != other.totalSensors) return false
if (totalStructs != other.totalStructs) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.NodeCounts = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The total number of nodes in a vehicle network that represent actuators.
*/
public var totalActuators: kotlin.Int = 0
/**
* The total number of nodes in a vehicle network that represent attributes.
*/
public var totalAttributes: kotlin.Int = 0
/**
* The total number of nodes in a vehicle network that represent branches.
*/
public var totalBranches: kotlin.Int = 0
/**
* The total number of nodes in a vehicle network.
*/
public var totalNodes: kotlin.Int = 0
/**
* The total properties for the node.
*/
public var totalProperties: kotlin.Int = 0
/**
* The total number of nodes in a vehicle network that represent sensors.
*/
public var totalSensors: kotlin.Int = 0
/**
* The total structure for the node.
*/
public var totalStructs: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.NodeCounts) : this() {
this.totalActuators = x.totalActuators
this.totalAttributes = x.totalAttributes
this.totalBranches = x.totalBranches
this.totalNodes = x.totalNodes
this.totalProperties = x.totalProperties
this.totalSensors = x.totalSensors
this.totalStructs = x.totalStructs
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.NodeCounts = NodeCounts(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy