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

commonMain.aws.sdk.kotlin.services.devicefarm.model.Radios.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.devicefarm.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Represents the set of radios and their states on a device. Examples of radios include Wi-Fi, GPS, Bluetooth, and NFC.
 */
public class Radios private constructor(builder: Builder) {
    /**
     * True if Bluetooth is enabled at the beginning of the test. Otherwise, false.
     */
    public val bluetooth: kotlin.Boolean? = builder.bluetooth
    /**
     * True if GPS is enabled at the beginning of the test. Otherwise, false.
     */
    public val gps: kotlin.Boolean? = builder.gps
    /**
     * True if NFC is enabled at the beginning of the test. Otherwise, false.
     */
    public val nfc: kotlin.Boolean? = builder.nfc
    /**
     * True if Wi-Fi is enabled at the beginning of the test. Otherwise, false.
     */
    public val wifi: kotlin.Boolean? = builder.wifi

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

    override fun toString(): kotlin.String = buildString {
        append("Radios(")
        append("bluetooth=$bluetooth,")
        append("gps=$gps,")
        append("nfc=$nfc,")
        append("wifi=$wifi")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bluetooth?.hashCode() ?: 0
        result = 31 * result + (gps?.hashCode() ?: 0)
        result = 31 * result + (nfc?.hashCode() ?: 0)
        result = 31 * result + (wifi?.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 Radios

        if (bluetooth != other.bluetooth) return false
        if (gps != other.gps) return false
        if (nfc != other.nfc) return false
        if (wifi != other.wifi) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * True if Bluetooth is enabled at the beginning of the test. Otherwise, false.
         */
        public var bluetooth: kotlin.Boolean? = null
        /**
         * True if GPS is enabled at the beginning of the test. Otherwise, false.
         */
        public var gps: kotlin.Boolean? = null
        /**
         * True if NFC is enabled at the beginning of the test. Otherwise, false.
         */
        public var nfc: kotlin.Boolean? = null
        /**
         * True if Wi-Fi is enabled at the beginning of the test. Otherwise, false.
         */
        public var wifi: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.Radios) : this() {
            this.bluetooth = x.bluetooth
            this.gps = x.gps
            this.nfc = x.nfc
            this.wifi = x.wifi
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy