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

commonMain.aws.sdk.kotlin.services.iotwireless.model.SidewalkGetStartImportInfo.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotwireless.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Sidewalk-related information for devices in an import task that are being onboarded.
 */
public class SidewalkGetStartImportInfo private constructor(builder: Builder) {
    /**
     * List of Sidewalk devices that are added to the import task.
     */
    public val deviceCreationFileList: List? = builder.deviceCreationFileList
    /**
     * The IAM role that allows AWS IoT Wireless to access the CSV file in the S3 bucket.
     */
    public val role: kotlin.String? = builder.role

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

    override fun toString(): kotlin.String = buildString {
        append("SidewalkGetStartImportInfo(")
        append("deviceCreationFileList=$deviceCreationFileList,")
        append("role=$role")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deviceCreationFileList?.hashCode() ?: 0
        result = 31 * result + (role?.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 SidewalkGetStartImportInfo

        if (deviceCreationFileList != other.deviceCreationFileList) return false
        if (role != other.role) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * List of Sidewalk devices that are added to the import task.
         */
        public var deviceCreationFileList: List? = null
        /**
         * The IAM role that allows AWS IoT Wireless to access the CSV file in the S3 bucket.
         */
        public var role: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SidewalkGetStartImportInfo) : this() {
            this.deviceCreationFileList = x.deviceCreationFileList
            this.role = x.role
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy