commonMain.aws.sdk.kotlin.services.iotfleetwise.model.ModelManifestSummary.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
/**
* Information about a vehicle model (model manifest). You can use the API operation to return this information about multiple vehicle models.
*/
public class ModelManifestSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the vehicle model.
*/
public val arn: kotlin.String? = builder.arn
/**
* The time the vehicle model was created, in seconds since epoch (January 1, 1970 at midnight UTC time).
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
/**
* A brief description of the vehicle model.
*/
public val description: kotlin.String? = builder.description
/**
* The time the vehicle model was last updated, in seconds since epoch (January 1, 1970 at midnight UTC time).
*/
public val lastModificationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.lastModificationTime) { "A non-null value must be provided for lastModificationTime" }
/**
* The name of the vehicle model.
*/
public val name: kotlin.String? = builder.name
/**
* The ARN of the signal catalog associated with the vehicle model.
*/
public val signalCatalogArn: kotlin.String? = builder.signalCatalogArn
/**
* The state of the vehicle model. If the status is `ACTIVE`, the vehicle model can't be edited. If the status is `DRAFT`, you can edit the vehicle model.
*/
public val status: aws.sdk.kotlin.services.iotfleetwise.model.ManifestStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.ModelManifestSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModelManifestSummary(")
append("arn=$arn,")
append("creationTime=$creationTime,")
append("description=$description,")
append("lastModificationTime=$lastModificationTime,")
append("name=$name,")
append("signalCatalogArn=$signalCatalogArn,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (creationTime.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastModificationTime.hashCode())
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (signalCatalogArn?.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 ModelManifestSummary
if (arn != other.arn) return false
if (creationTime != other.creationTime) return false
if (description != other.description) return false
if (lastModificationTime != other.lastModificationTime) return false
if (name != other.name) return false
if (signalCatalogArn != other.signalCatalogArn) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.ModelManifestSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the vehicle model.
*/
public var arn: kotlin.String? = null
/**
* The time the vehicle model was created, in seconds since epoch (January 1, 1970 at midnight UTC time).
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A brief description of the vehicle model.
*/
public var description: kotlin.String? = null
/**
* The time the vehicle model 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 name of the vehicle model.
*/
public var name: kotlin.String? = null
/**
* The ARN of the signal catalog associated with the vehicle model.
*/
public var signalCatalogArn: kotlin.String? = null
/**
* The state of the vehicle model. If the status is `ACTIVE`, the vehicle model can't be edited. If the status is `DRAFT`, you can edit the vehicle model.
*/
public var status: aws.sdk.kotlin.services.iotfleetwise.model.ManifestStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.ModelManifestSummary) : this() {
this.arn = x.arn
this.creationTime = x.creationTime
this.description = x.description
this.lastModificationTime = x.lastModificationTime
this.name = x.name
this.signalCatalogArn = x.signalCatalogArn
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.ModelManifestSummary = ModelManifestSummary(this)
internal fun correctErrors(): Builder {
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (lastModificationTime == null) lastModificationTime = Instant.fromEpochSeconds(0)
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy