
commonMain.aws.sdk.kotlin.services.iot.model.CreatePackageVersionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class CreatePackageVersionResponse 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 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 name of the associated software package.
*/
public val packageName: kotlin.String? = builder.packageName
/**
* The Amazon Resource Name (ARN) for the package.
*/
public val packageVersionArn: kotlin.String? = builder.packageVersionArn
/**
* 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 new 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.CreatePackageVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePackageVersionResponse(")
append("attributes=*** Sensitive Data Redacted ***,")
append("description=*** Sensitive Data Redacted ***,")
append("errorReason=$errorReason,")
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 + (description?.hashCode() ?: 0)
result = 31 * result + (errorReason?.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 CreatePackageVersionResponse
if (attributes != other.attributes) return false
if (description != other.description) return false
if (errorReason != other.errorReason) 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.CreatePackageVersionResponse = 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 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 name of the associated software package.
*/
public var packageName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the package.
*/
public var packageVersionArn: 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 new package version.
*/
public var versionName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.CreatePackageVersionResponse) : this() {
this.attributes = x.attributes
this.description = x.description
this.errorReason = x.errorReason
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.CreatePackageVersionResponse = CreatePackageVersionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy