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

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

public class GetWirelessGatewayTaskDefinitionResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name of the resource.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Whether to automatically create tasks using this task definition for all gateways with the specified current version. If `false`, the task must me created by calling `CreateWirelessGatewayTask`.
     */
    public val autoCreateTasks: kotlin.Boolean = builder.autoCreateTasks
    /**
     * The name of the resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Information about the gateways to update.
     */
    public val update: aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessGatewayTaskCreate? = builder.update

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

    override fun toString(): kotlin.String = buildString {
        append("GetWirelessGatewayTaskDefinitionResponse(")
        append("arn=$arn,")
        append("autoCreateTasks=$autoCreateTasks,")
        append("name=$name,")
        append("update=$update")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (autoCreateTasks.hashCode())
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (update?.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 GetWirelessGatewayTaskDefinitionResponse

        if (arn != other.arn) return false
        if (autoCreateTasks != other.autoCreateTasks) return false
        if (name != other.name) return false
        if (update != other.update) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name of the resource.
         */
        public var arn: kotlin.String? = null
        /**
         * Whether to automatically create tasks using this task definition for all gateways with the specified current version. If `false`, the task must me created by calling `CreateWirelessGatewayTask`.
         */
        public var autoCreateTasks: kotlin.Boolean = false
        /**
         * The name of the resource.
         */
        public var name: kotlin.String? = null
        /**
         * Information about the gateways to update.
         */
        public var update: aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessGatewayTaskCreate? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayTaskDefinitionResponse) : this() {
            this.arn = x.arn
            this.autoCreateTasks = x.autoCreateTasks
            this.name = x.name
            this.update = x.update
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy