commonMain.aws.sdk.kotlin.services.codeartifact.model.DisposePackageVersionsResponse.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeartifact.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DisposePackageVersionsResponse private constructor(builder: Builder) {
/**
* A `PackageVersionError` object that contains a map of errors codes for the disposed package versions that failed. The possible error codes are:
* + `ALREADY_EXISTS`
* + `MISMATCHED_REVISION`
* + `MISMATCHED_STATUS`
* + `NOT_ALLOWED`
* + `NOT_FOUND`
* + `SKIPPED`
*/
public val failedVersions: Map? = builder.failedVersions
/**
* A list of the package versions that were successfully disposed.
*/
public val successfulVersions: Map? = builder.successfulVersions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeartifact.model.DisposePackageVersionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisposePackageVersionsResponse(")
append("failedVersions=$failedVersions,")
append("successfulVersions=$successfulVersions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failedVersions?.hashCode() ?: 0
result = 31 * result + (successfulVersions?.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 DisposePackageVersionsResponse
if (failedVersions != other.failedVersions) return false
if (successfulVersions != other.successfulVersions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeartifact.model.DisposePackageVersionsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A `PackageVersionError` object that contains a map of errors codes for the disposed package versions that failed. The possible error codes are:
* + `ALREADY_EXISTS`
* + `MISMATCHED_REVISION`
* + `MISMATCHED_STATUS`
* + `NOT_ALLOWED`
* + `NOT_FOUND`
* + `SKIPPED`
*/
public var failedVersions: Map? = null
/**
* A list of the package versions that were successfully disposed.
*/
public var successfulVersions: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.DisposePackageVersionsResponse) : this() {
this.failedVersions = x.failedVersions
this.successfulVersions = x.successfulVersions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeartifact.model.DisposePackageVersionsResponse = DisposePackageVersionsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}