
commonMain.aws.sdk.kotlin.services.iot.model.GetPackageVersionResponse.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
public class GetPackageVersionResponse private constructor(builder: Builder) {
/**
* Metadata that were added to the package version that can be used to define a package version’s configuration.
*/
public val attributes: Map? = builder.attributes
/**
* The date when the package version was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The package version description.
*/
public val description: kotlin.String? = builder.description
/**
* Error reason for a package version failure during creation or update.
*/
public val errorReason: kotlin.String? = builder.errorReason
/**
* The date when the package version was last updated.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
/**
* The name of the software package.
*/
public val packageName: kotlin.String? = builder.packageName
/**
* The ARN for the package version.
*/
public val packageVersionArn: kotlin.String? = builder.packageVersionArn
/**
* The status associated to 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 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.GetPackageVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPackageVersionResponse(")
append("attributes=*** Sensitive Data Redacted ***,")
append("creationDate=$creationDate,")
append("description=*** Sensitive Data Redacted ***,")
append("errorReason=$errorReason,")
append("lastModifiedDate=$lastModifiedDate,")
append("packageName=$packageName,")
append("packageVersionArn=$packageVersionArn,")
append("status=$status,")
append("versionName=$versionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributes?.hashCode() ?: 0
result = 31 * result + (creationDate?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (errorReason?.hashCode() ?: 0)
result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
result = 31 * result + (packageName?.hashCode() ?: 0)
result = 31 * result + (packageVersionArn?.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 GetPackageVersionResponse
if (attributes != other.attributes) return false
if (creationDate != other.creationDate) return false
if (description != other.description) return false
if (errorReason != other.errorReason) return false
if (lastModifiedDate != other.lastModifiedDate) return false
if (packageName != other.packageName) return false
if (packageVersionArn != other.packageVersionArn) 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.GetPackageVersionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Metadata that were added to the package version that can be used to define a package version’s configuration.
*/
public var attributes: Map? = null
/**
* The date when the package version was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The package version description.
*/
public var description: kotlin.String? = null
/**
* Error reason for a package version failure during creation or update.
*/
public var errorReason: kotlin.String? = null
/**
* The date when the package version was last updated.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the software package.
*/
public var packageName: kotlin.String? = null
/**
* The ARN for the package version.
*/
public var packageVersionArn: kotlin.String? = null
/**
* The status associated to 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 package version.
*/
public var versionName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.GetPackageVersionResponse) : this() {
this.attributes = x.attributes
this.creationDate = x.creationDate
this.description = x.description
this.errorReason = x.errorReason
this.lastModifiedDate = x.lastModifiedDate
this.packageName = x.packageName
this.packageVersionArn = x.packageVersionArn
this.status = x.status
this.versionName = x.versionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.GetPackageVersionResponse = GetPackageVersionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy