commonMain.aws.sdk.kotlin.services.iotfleetwise.model.CreateModelManifestRequest.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 CreateModelManifestRequest 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 create.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* A list of nodes, which are a general abstraction of signals.
*/
public val nodes: List = requireNotNull(builder.nodes) { "A non-null value must be provided for nodes" }
/**
* The Amazon Resource Name (ARN) of a signal catalog.
*/
public val signalCatalogArn: kotlin.String = requireNotNull(builder.signalCatalogArn) { "A non-null value must be provided for signalCatalogArn" }
/**
* Metadata that can be used to manage the vehicle model.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.CreateModelManifestRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateModelManifestRequest(")
append("description=$description,")
append("name=$name,")
append("nodes=$nodes,")
append("signalCatalogArn=$signalCatalogArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (name.hashCode())
result = 31 * result + (nodes.hashCode())
result = 31 * result + (signalCatalogArn.hashCode())
result = 31 * result + (tags?.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 CreateModelManifestRequest
if (description != other.description) return false
if (name != other.name) return false
if (nodes != other.nodes) return false
if (signalCatalogArn != other.signalCatalogArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.CreateModelManifestRequest = 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 create.
*/
public var name: kotlin.String? = null
/**
* A list of nodes, which are a general abstraction of signals.
*/
public var nodes: List? = null
/**
* The Amazon Resource Name (ARN) of a signal catalog.
*/
public var signalCatalogArn: kotlin.String? = null
/**
* Metadata that can be used to manage the vehicle model.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.CreateModelManifestRequest) : this() {
this.description = x.description
this.name = x.name
this.nodes = x.nodes
this.signalCatalogArn = x.signalCatalogArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.CreateModelManifestRequest = CreateModelManifestRequest(this)
internal fun correctErrors(): Builder {
if (name == null) name = ""
if (nodes == null) nodes = emptyList()
if (signalCatalogArn == null) signalCatalogArn = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy