
commonMain.aws.sdk.kotlin.services.groundstation.model.ComponentVersion.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Version information for agent components.
*/
public class ComponentVersion private constructor(builder: Builder) {
/**
* Component type.
*/
public val componentType: kotlin.String = requireNotNull(builder.componentType) { "A non-null value must be provided for componentType" }
/**
* List of versions.
*/
public val versions: List = requireNotNull(builder.versions) { "A non-null value must be provided for versions" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.ComponentVersion = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComponentVersion(")
append("componentType=$componentType,")
append("versions=$versions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = componentType.hashCode()
result = 31 * result + (versions.hashCode())
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 ComponentVersion
if (componentType != other.componentType) return false
if (versions != other.versions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.ComponentVersion = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Component type.
*/
public var componentType: kotlin.String? = null
/**
* List of versions.
*/
public var versions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.ComponentVersion) : this() {
this.componentType = x.componentType
this.versions = x.versions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.ComponentVersion = ComponentVersion(this)
internal fun correctErrors(): Builder {
if (componentType == null) componentType = ""
if (versions == null) versions = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy