All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iotfleetwise.model.CreateDecoderManifestRequest.kt Maven / Gradle / Ivy

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 CreateDecoderManifestRequest private constructor(builder: Builder) {
    /**
     * A brief description of the decoder manifest.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The Amazon Resource Name (ARN) of the vehicle model (model manifest).
     */
    public val modelManifestArn: kotlin.String = requireNotNull(builder.modelManifestArn) { "A non-null value must be provided for modelManifestArn" }
    /**
     * The unique name of the decoder manifest to create.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * A list of information about available network interfaces.
     */
    public val networkInterfaces: List? = builder.networkInterfaces
    /**
     * A list of information about signal decoders.
     */
    public val signalDecoders: List? = builder.signalDecoders
    /**
     * Metadata that can be used to manage the decoder manifest.
     */
    public val tags: List? = builder.tags

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.CreateDecoderManifestRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateDecoderManifestRequest(")
        append("description=$description,")
        append("modelManifestArn=$modelManifestArn,")
        append("name=$name,")
        append("networkInterfaces=$networkInterfaces,")
        append("signalDecoders=$signalDecoders,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (modelManifestArn.hashCode())
        result = 31 * result + (name.hashCode())
        result = 31 * result + (networkInterfaces?.hashCode() ?: 0)
        result = 31 * result + (signalDecoders?.hashCode() ?: 0)
        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 CreateDecoderManifestRequest

        if (description != other.description) return false
        if (modelManifestArn != other.modelManifestArn) return false
        if (name != other.name) return false
        if (networkInterfaces != other.networkInterfaces) return false
        if (signalDecoders != other.signalDecoders) return false
        if (tags != other.tags) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.CreateDecoderManifestRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A brief description of the decoder manifest.
         */
        public var description: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the vehicle model (model manifest).
         */
        public var modelManifestArn: kotlin.String? = null
        /**
         * The unique name of the decoder manifest to create.
         */
        public var name: kotlin.String? = null
        /**
         * A list of information about available network interfaces.
         */
        public var networkInterfaces: List? = null
        /**
         * A list of information about signal decoders.
         */
        public var signalDecoders: List? = null
        /**
         * Metadata that can be used to manage the decoder manifest.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.CreateDecoderManifestRequest) : this() {
            this.description = x.description
            this.modelManifestArn = x.modelManifestArn
            this.name = x.name
            this.networkInterfaces = x.networkInterfaces
            this.signalDecoders = x.signalDecoders
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.CreateDecoderManifestRequest = CreateDecoderManifestRequest(this)

        internal fun correctErrors(): Builder {
            if (modelManifestArn == null) modelManifestArn = ""
            if (name == null) name = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy