commonMain.aws.sdk.kotlin.services.iotfleetwise.model.GetVehicleResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetVehicleResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the vehicle to retrieve information about.
*/
public val arn: kotlin.String? = builder.arn
/**
* Static information about a vehicle in a key-value pair. For example:
*
* `"engineType"` : `"1.3 L R2"`
*/
public val attributes: Map? = builder.attributes
/**
* The time the vehicle was created in seconds since epoch (January 1, 1970 at midnight UTC time).
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The ARN of a decoder manifest associated with the vehicle.
*/
public val decoderManifestArn: kotlin.String? = builder.decoderManifestArn
/**
* The time the vehicle was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).
*/
public val lastModificationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModificationTime
/**
* The ARN of a vehicle model (model manifest) associated with the vehicle.
*/
public val modelManifestArn: kotlin.String? = builder.modelManifestArn
/**
* The ID of the vehicle.
*/
public val vehicleName: kotlin.String? = builder.vehicleName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.GetVehicleResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetVehicleResponse(")
append("arn=$arn,")
append("attributes=$attributes,")
append("creationTime=$creationTime,")
append("decoderManifestArn=$decoderManifestArn,")
append("lastModificationTime=$lastModificationTime,")
append("modelManifestArn=$modelManifestArn,")
append("vehicleName=$vehicleName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (attributes?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (decoderManifestArn?.hashCode() ?: 0)
result = 31 * result + (lastModificationTime?.hashCode() ?: 0)
result = 31 * result + (modelManifestArn?.hashCode() ?: 0)
result = 31 * result + (vehicleName?.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 GetVehicleResponse
if (arn != other.arn) return false
if (attributes != other.attributes) return false
if (creationTime != other.creationTime) return false
if (decoderManifestArn != other.decoderManifestArn) return false
if (lastModificationTime != other.lastModificationTime) return false
if (modelManifestArn != other.modelManifestArn) return false
if (vehicleName != other.vehicleName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.GetVehicleResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the vehicle to retrieve information about.
*/
public var arn: kotlin.String? = null
/**
* Static information about a vehicle in a key-value pair. For example:
*
* `"engineType"` : `"1.3 L R2"`
*/
public var attributes: Map? = null
/**
* The time the vehicle was created in seconds since epoch (January 1, 1970 at midnight UTC time).
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of a decoder manifest associated with the vehicle.
*/
public var decoderManifestArn: kotlin.String? = null
/**
* The time the vehicle was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).
*/
public var lastModificationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of a vehicle model (model manifest) associated with the vehicle.
*/
public var modelManifestArn: kotlin.String? = null
/**
* The ID of the vehicle.
*/
public var vehicleName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.GetVehicleResponse) : this() {
this.arn = x.arn
this.attributes = x.attributes
this.creationTime = x.creationTime
this.decoderManifestArn = x.decoderManifestArn
this.lastModificationTime = x.lastModificationTime
this.modelManifestArn = x.modelManifestArn
this.vehicleName = x.vehicleName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.GetVehicleResponse = GetVehicleResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy