
commonMain.aws.sdk.kotlin.services.codeartifact.model.GetPackageVersionAssetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codeartifact-jvm Show documentation
Show all versions of codeartifact-jvm Show documentation
The AWS SDK for Kotlin client for codeartifact
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeartifact.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.content.ByteStream
public class GetPackageVersionAssetResponse private constructor(builder: Builder) {
/**
* The binary file, or asset, that is downloaded.
*/
public val asset: aws.smithy.kotlin.runtime.content.ByteStream? = builder.asset
/**
* The name of the asset that is downloaded.
*/
public val assetName: kotlin.String? = builder.assetName
/**
* A string that contains the package version (for example, `3.5.2`).
*/
public val packageVersion: kotlin.String? = builder.packageVersion
/**
* The name of the package version revision that contains the downloaded asset.
*/
public val packageVersionRevision: kotlin.String? = builder.packageVersionRevision
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeartifact.model.GetPackageVersionAssetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPackageVersionAssetResponse(")
append("asset=$asset,")
append("assetName=$assetName,")
append("packageVersion=$packageVersion,")
append("packageVersionRevision=$packageVersionRevision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = asset?.hashCode() ?: 0
result = 31 * result + (assetName?.hashCode() ?: 0)
result = 31 * result + (packageVersion?.hashCode() ?: 0)
result = 31 * result + (packageVersionRevision?.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 GetPackageVersionAssetResponse
if (asset != other.asset) return false
if (assetName != other.assetName) return false
if (packageVersion != other.packageVersion) return false
if (packageVersionRevision != other.packageVersionRevision) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeartifact.model.GetPackageVersionAssetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The binary file, or asset, that is downloaded.
*/
public var asset: aws.smithy.kotlin.runtime.content.ByteStream? = null
/**
* The name of the asset that is downloaded.
*/
public var assetName: kotlin.String? = null
/**
* A string that contains the package version (for example, `3.5.2`).
*/
public var packageVersion: kotlin.String? = null
/**
* The name of the package version revision that contains the downloaded asset.
*/
public var packageVersionRevision: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.GetPackageVersionAssetResponse) : this() {
this.asset = x.asset
this.assetName = x.assetName
this.packageVersion = x.packageVersion
this.packageVersionRevision = x.packageVersionRevision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeartifact.model.GetPackageVersionAssetResponse = GetPackageVersionAssetResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy