commonMain.aws.sdk.kotlin.services.iotwireless.model.SidewalkDevice.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Sidewalk device object.
*/
public class SidewalkDevice private constructor(builder: Builder) {
/**
* The Sidewalk Amazon ID.
*/
public val amazonId: kotlin.String? = builder.amazonId
/**
* The ID of the Sidewalk device profile.
*/
public val certificateId: kotlin.String? = builder.certificateId
/**
* The sidewalk device certificates for Ed25519 and P256r1.
*/
public val deviceCertificates: List? = builder.deviceCertificates
/**
* The ID of the Sidewalk device profile.
*/
public val deviceProfileId: kotlin.String? = builder.deviceProfileId
/**
* The Sidewalk device private keys that will be used for onboarding the device.
*/
public val privateKeys: List? = builder.privateKeys
/**
* The sidewalk device identification.
*/
public val sidewalkId: kotlin.String? = builder.sidewalkId
/**
* The Sidewalk manufacturing series number.
*/
public val sidewalkManufacturingSn: kotlin.String? = builder.sidewalkManufacturingSn
/**
* The Sidewalk device status, such as provisioned or registered.
*/
public val status: aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceSidewalkStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.SidewalkDevice = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SidewalkDevice(")
append("amazonId=$amazonId,")
append("certificateId=$certificateId,")
append("deviceCertificates=$deviceCertificates,")
append("deviceProfileId=$deviceProfileId,")
append("privateKeys=$privateKeys,")
append("sidewalkId=$sidewalkId,")
append("sidewalkManufacturingSn=$sidewalkManufacturingSn,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = amazonId?.hashCode() ?: 0
result = 31 * result + (certificateId?.hashCode() ?: 0)
result = 31 * result + (deviceCertificates?.hashCode() ?: 0)
result = 31 * result + (deviceProfileId?.hashCode() ?: 0)
result = 31 * result + (privateKeys?.hashCode() ?: 0)
result = 31 * result + (sidewalkId?.hashCode() ?: 0)
result = 31 * result + (sidewalkManufacturingSn?.hashCode() ?: 0)
result = 31 * result + (status?.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 SidewalkDevice
if (amazonId != other.amazonId) return false
if (certificateId != other.certificateId) return false
if (deviceCertificates != other.deviceCertificates) return false
if (deviceProfileId != other.deviceProfileId) return false
if (privateKeys != other.privateKeys) return false
if (sidewalkId != other.sidewalkId) return false
if (sidewalkManufacturingSn != other.sidewalkManufacturingSn) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.SidewalkDevice = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Sidewalk Amazon ID.
*/
public var amazonId: kotlin.String? = null
/**
* The ID of the Sidewalk device profile.
*/
public var certificateId: kotlin.String? = null
/**
* The sidewalk device certificates for Ed25519 and P256r1.
*/
public var deviceCertificates: List? = null
/**
* The ID of the Sidewalk device profile.
*/
public var deviceProfileId: kotlin.String? = null
/**
* The Sidewalk device private keys that will be used for onboarding the device.
*/
public var privateKeys: List? = null
/**
* The sidewalk device identification.
*/
public var sidewalkId: kotlin.String? = null
/**
* The Sidewalk manufacturing series number.
*/
public var sidewalkManufacturingSn: kotlin.String? = null
/**
* The Sidewalk device status, such as provisioned or registered.
*/
public var status: aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceSidewalkStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SidewalkDevice) : this() {
this.amazonId = x.amazonId
this.certificateId = x.certificateId
this.deviceCertificates = x.deviceCertificates
this.deviceProfileId = x.deviceProfileId
this.privateKeys = x.privateKeys
this.sidewalkId = x.sidewalkId
this.sidewalkManufacturingSn = x.sidewalkManufacturingSn
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.SidewalkDevice = SidewalkDevice(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy