
commonMain.aws.sdk.kotlin.services.iot.model.PackageVersionSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* A summary of information about a package version.
*/
public class PackageVersionSummary private constructor(builder: Builder) {
/**
* The date that the package version was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The date that the package version was last updated.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
/**
* The name of the associated software package.
*/
public val packageName: kotlin.String? = builder.packageName
/**
* The status of the package version. For more information, see [Package version lifecycle](https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle).
*/
public val status: aws.sdk.kotlin.services.iot.model.PackageVersionStatus? = builder.status
/**
* The name of the target package version.
*/
public val versionName: kotlin.String? = builder.versionName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.PackageVersionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PackageVersionSummary(")
append("creationDate=$creationDate,")
append("lastModifiedDate=$lastModifiedDate,")
append("packageName=$packageName,")
append("status=$status,")
append("versionName=$versionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationDate?.hashCode() ?: 0
result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
result = 31 * result + (packageName?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (versionName?.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 PackageVersionSummary
if (creationDate != other.creationDate) return false
if (lastModifiedDate != other.lastModifiedDate) return false
if (packageName != other.packageName) return false
if (status != other.status) return false
if (versionName != other.versionName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.PackageVersionSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The date that the package version was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date that the package version was last updated.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the associated software package.
*/
public var packageName: kotlin.String? = null
/**
* The status of the package version. For more information, see [Package version lifecycle](https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle).
*/
public var status: aws.sdk.kotlin.services.iot.model.PackageVersionStatus? = null
/**
* The name of the target package version.
*/
public var versionName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.PackageVersionSummary) : this() {
this.creationDate = x.creationDate
this.lastModifiedDate = x.lastModifiedDate
this.packageName = x.packageName
this.status = x.status
this.versionName = x.versionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.PackageVersionSummary = PackageVersionSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy