commonMain.aws.sdk.kotlin.services.iotfleetwise.model.UpdateModelManifestRequest.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
public class UpdateModelManifestRequest private constructor(builder: Builder) {
/**
* A brief description of the vehicle model.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the vehicle model to update.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* A list of `fullyQualifiedName` of nodes, which are a general abstraction of signals, to add to the vehicle model.
*/
public val nodesToAdd: List? = builder.nodesToAdd
/**
* A list of `fullyQualifiedName` of nodes, which are a general abstraction of signals, to remove from the vehicle model.
*/
public val nodesToRemove: List? = builder.nodesToRemove
/**
* 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.UpdateModelManifestRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateModelManifestRequest(")
append("description=$description,")
append("name=$name,")
append("nodesToAdd=$nodesToAdd,")
append("nodesToRemove=$nodesToRemove,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (name.hashCode())
result = 31 * result + (nodesToAdd?.hashCode() ?: 0)
result = 31 * result + (nodesToRemove?.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 UpdateModelManifestRequest
if (description != other.description) return false
if (name != other.name) return false
if (nodesToAdd != other.nodesToAdd) return false
if (nodesToRemove != other.nodesToRemove) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.UpdateModelManifestRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A brief description of the vehicle model.
*/
public var description: kotlin.String? = null
/**
* The name of the vehicle model to update.
*/
public var name: kotlin.String? = null
/**
* A list of `fullyQualifiedName` of nodes, which are a general abstraction of signals, to add to the vehicle model.
*/
public var nodesToAdd: List? = null
/**
* A list of `fullyQualifiedName` of nodes, which are a general abstraction of signals, to remove from the vehicle model.
*/
public var nodesToRemove: List? = 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.UpdateModelManifestRequest) : this() {
this.description = x.description
this.name = x.name
this.nodesToAdd = x.nodesToAdd
this.nodesToRemove = x.nodesToRemove
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.UpdateModelManifestRequest = UpdateModelManifestRequest(this)
internal fun correctErrors(): Builder {
if (name == null) name = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy