
commonMain.aws.sdk.kotlin.services.opensearch.model.PackageDetails.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Basic information about a package.
*/
public class PackageDetails private constructor(builder: Builder) {
/**
* The package version.
*/
public val availablePackageVersion: kotlin.String? = builder.availablePackageVersion
/**
* If the package is a `ZIP-PLUGIN` package, additional information about plugin properties.
*/
public val availablePluginProperties: aws.sdk.kotlin.services.opensearch.model.PluginProperties? = builder.availablePluginProperties
/**
* The timestamp when the package was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* Version of OpenSearch or Elasticsearch, in the format Elasticsearch_X.Y or OpenSearch_X.Y. Defaults to the latest version of OpenSearch.
*/
public val engineVersion: kotlin.String? = builder.engineVersion
/**
* Additional information if the package is in an error state. Null otherwise.
*/
public val errorDetails: aws.sdk.kotlin.services.opensearch.model.ErrorDetails? = builder.errorDetails
/**
* Date and time when the package was last updated.
*/
public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
/**
* User-specified description of the package.
*/
public val packageDescription: kotlin.String? = builder.packageDescription
/**
* The unique identifier of the package.
*/
public val packageId: kotlin.String? = builder.packageId
/**
* The user-specified name of the package.
*/
public val packageName: kotlin.String? = builder.packageName
/**
* The current status of the package. The available options are `AVAILABLE`, `COPYING`, `COPY_FAILED`, `VALIDATNG`, `VALIDATION_FAILED`, `DELETING`, and `DELETE_FAILED`.
*/
public val packageStatus: aws.sdk.kotlin.services.opensearch.model.PackageStatus? = builder.packageStatus
/**
* The type of package.
*/
public val packageType: aws.sdk.kotlin.services.opensearch.model.PackageType? = builder.packageType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.PackageDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PackageDetails(")
append("availablePackageVersion=$availablePackageVersion,")
append("availablePluginProperties=$availablePluginProperties,")
append("createdAt=$createdAt,")
append("engineVersion=$engineVersion,")
append("errorDetails=$errorDetails,")
append("lastUpdatedAt=$lastUpdatedAt,")
append("packageDescription=$packageDescription,")
append("packageId=$packageId,")
append("packageName=$packageName,")
append("packageStatus=$packageStatus,")
append("packageType=$packageType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = availablePackageVersion?.hashCode() ?: 0
result = 31 * result + (availablePluginProperties?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (engineVersion?.hashCode() ?: 0)
result = 31 * result + (errorDetails?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedAt?.hashCode() ?: 0)
result = 31 * result + (packageDescription?.hashCode() ?: 0)
result = 31 * result + (packageId?.hashCode() ?: 0)
result = 31 * result + (packageName?.hashCode() ?: 0)
result = 31 * result + (packageStatus?.hashCode() ?: 0)
result = 31 * result + (packageType?.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 PackageDetails
if (availablePackageVersion != other.availablePackageVersion) return false
if (availablePluginProperties != other.availablePluginProperties) return false
if (createdAt != other.createdAt) return false
if (engineVersion != other.engineVersion) return false
if (errorDetails != other.errorDetails) return false
if (lastUpdatedAt != other.lastUpdatedAt) return false
if (packageDescription != other.packageDescription) return false
if (packageId != other.packageId) return false
if (packageName != other.packageName) return false
if (packageStatus != other.packageStatus) return false
if (packageType != other.packageType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.PackageDetails = Builder(this).apply(block).build()
public class Builder {
/**
* The package version.
*/
public var availablePackageVersion: kotlin.String? = null
/**
* If the package is a `ZIP-PLUGIN` package, additional information about plugin properties.
*/
public var availablePluginProperties: aws.sdk.kotlin.services.opensearch.model.PluginProperties? = null
/**
* The timestamp when the package was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Version of OpenSearch or Elasticsearch, in the format Elasticsearch_X.Y or OpenSearch_X.Y. Defaults to the latest version of OpenSearch.
*/
public var engineVersion: kotlin.String? = null
/**
* Additional information if the package is in an error state. Null otherwise.
*/
public var errorDetails: aws.sdk.kotlin.services.opensearch.model.ErrorDetails? = null
/**
* Date and time when the package was last updated.
*/
public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* User-specified description of the package.
*/
public var packageDescription: kotlin.String? = null
/**
* The unique identifier of the package.
*/
public var packageId: kotlin.String? = null
/**
* The user-specified name of the package.
*/
public var packageName: kotlin.String? = null
/**
* The current status of the package. The available options are `AVAILABLE`, `COPYING`, `COPY_FAILED`, `VALIDATNG`, `VALIDATION_FAILED`, `DELETING`, and `DELETE_FAILED`.
*/
public var packageStatus: aws.sdk.kotlin.services.opensearch.model.PackageStatus? = null
/**
* The type of package.
*/
public var packageType: aws.sdk.kotlin.services.opensearch.model.PackageType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.PackageDetails) : this() {
this.availablePackageVersion = x.availablePackageVersion
this.availablePluginProperties = x.availablePluginProperties
this.createdAt = x.createdAt
this.engineVersion = x.engineVersion
this.errorDetails = x.errorDetails
this.lastUpdatedAt = x.lastUpdatedAt
this.packageDescription = x.packageDescription
this.packageId = x.packageId
this.packageName = x.packageName
this.packageStatus = x.packageStatus
this.packageType = x.packageType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.PackageDetails = PackageDetails(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.PluginProperties] inside the given [block]
*/
public fun availablePluginProperties(block: aws.sdk.kotlin.services.opensearch.model.PluginProperties.Builder.() -> kotlin.Unit) {
this.availablePluginProperties = aws.sdk.kotlin.services.opensearch.model.PluginProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.ErrorDetails] inside the given [block]
*/
public fun errorDetails(block: aws.sdk.kotlin.services.opensearch.model.ErrorDetails.Builder.() -> kotlin.Unit) {
this.errorDetails = aws.sdk.kotlin.services.opensearch.model.ErrorDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy