commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.SoftwareInformation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowdevicemanagement-jvm Show documentation
Show all versions of snowdevicemanagement-jvm Show documentation
The AWS SDK for Kotlin client for Snow Device Management
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowdevicemanagement.model
/**
* Information about the software on the device.
*/
public class SoftwareInformation private constructor(builder: Builder) {
/**
* The state of the software that is installed or that is being installed on the device.
*/
public val installState: kotlin.String? = builder.installState
/**
* The version of the software currently installed on the device.
*/
public val installedVersion: kotlin.String? = builder.installedVersion
/**
* The version of the software being installed on the device.
*/
public val installingVersion: kotlin.String? = builder.installingVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowdevicemanagement.model.SoftwareInformation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SoftwareInformation(")
append("installState=$installState,")
append("installedVersion=$installedVersion,")
append("installingVersion=$installingVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = installState?.hashCode() ?: 0
result = 31 * result + (installedVersion?.hashCode() ?: 0)
result = 31 * result + (installingVersion?.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 SoftwareInformation
if (installState != other.installState) return false
if (installedVersion != other.installedVersion) return false
if (installingVersion != other.installingVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowdevicemanagement.model.SoftwareInformation = Builder(this).apply(block).build()
public class Builder {
/**
* The state of the software that is installed or that is being installed on the device.
*/
public var installState: kotlin.String? = null
/**
* The version of the software currently installed on the device.
*/
public var installedVersion: kotlin.String? = null
/**
* The version of the software being installed on the device.
*/
public var installingVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowdevicemanagement.model.SoftwareInformation) : this() {
this.installState = x.installState
this.installedVersion = x.installedVersion
this.installingVersion = x.installingVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowdevicemanagement.model.SoftwareInformation = SoftwareInformation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy