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

commonMain.aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessGatewayTaskCreate.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

/**
 * UpdateWirelessGatewayTaskCreate object.
 */
public class UpdateWirelessGatewayTaskCreate private constructor(builder: Builder) {
    /**
     * The properties that relate to the LoRaWAN wireless gateway.
     */
    public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateGatewayTaskCreate? = builder.loRaWan
    /**
     * The IAM role used to read data from the S3 bucket.
     */
    public val updateDataRole: kotlin.String? = builder.updateDataRole
    /**
     * The link to the S3 bucket.
     */
    public val updateDataSource: kotlin.String? = builder.updateDataSource

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateWirelessGatewayTaskCreate(")
        append("loRaWan=$loRaWan,")
        append("updateDataRole=$updateDataRole,")
        append("updateDataSource=$updateDataSource")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = loRaWan?.hashCode() ?: 0
        result = 31 * result + (updateDataRole?.hashCode() ?: 0)
        result = 31 * result + (updateDataSource?.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 UpdateWirelessGatewayTaskCreate

        if (loRaWan != other.loRaWan) return false
        if (updateDataRole != other.updateDataRole) return false
        if (updateDataSource != other.updateDataSource) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The properties that relate to the LoRaWAN wireless gateway.
         */
        public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateGatewayTaskCreate? = null
        /**
         * The IAM role used to read data from the S3 bucket.
         */
        public var updateDataRole: kotlin.String? = null
        /**
         * The link to the S3 bucket.
         */
        public var updateDataSource: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessGatewayTaskCreate) : this() {
            this.loRaWan = x.loRaWan
            this.updateDataRole = x.updateDataRole
            this.updateDataSource = x.updateDataSource
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateGatewayTaskCreate] inside the given [block]
         */
        public fun loRaWan(block: aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateGatewayTaskCreate.Builder.() -> kotlin.Unit) {
            this.loRaWan = aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateGatewayTaskCreate.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy