
commonMain.aws.sdk.kotlin.services.iot.model.CreatePackageVersionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class CreatePackageVersionRequest private constructor(builder: Builder) {
/**
* Metadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet.
*
* The combined size of all the attributes on a package version is limited to 3KB.
*/
public val attributes: Map? = builder.attributes
/**
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* A summary of the package version being created. This can be used to outline the package's contents or purpose.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the associated software package.
*/
public val packageName: kotlin.String? = builder.packageName
/**
* Metadata that can be used to manage the package version.
*/
public val tags: Map? = builder.tags
/**
* 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.CreatePackageVersionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePackageVersionRequest(")
append("attributes=*** Sensitive Data Redacted ***,")
append("clientToken=$clientToken,")
append("description=*** Sensitive Data Redacted ***,")
append("packageName=$packageName,")
append("tags=$tags,")
append("versionName=$versionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributes?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (packageName?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreatePackageVersionRequest
if (attributes != other.attributes) return false
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (packageName != other.packageName) return false
if (tags != other.tags) return false
if (versionName != other.versionName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.CreatePackageVersionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Metadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet.
*
* The combined size of all the attributes on a package version is limited to 3KB.
*/
public var attributes: Map? = null
/**
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
*/
public var clientToken: kotlin.String? = null
/**
* A summary of the package version being created. This can be used to outline the package's contents or purpose.
*/
public var description: kotlin.String? = null
/**
* The name of the associated software package.
*/
public var packageName: kotlin.String? = null
/**
* Metadata that can be used to manage the package version.
*/
public var tags: Map? = 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.CreatePackageVersionRequest) : this() {
this.attributes = x.attributes
this.clientToken = x.clientToken
this.description = x.description
this.packageName = x.packageName
this.tags = x.tags
this.versionName = x.versionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.CreatePackageVersionRequest = CreatePackageVersionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy