commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.EngineVersion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Provides information about a replication instance version.
*/
public class EngineVersion private constructor(builder: Builder) {
/**
* The date when the replication instance will be automatically upgraded. This setting only applies if the `auto-minor-version` setting is enabled.
*/
public val autoUpgradeDate: aws.smithy.kotlin.runtime.time.Instant? = builder.autoUpgradeDate
/**
* The list of valid replication instance versions that you can upgrade to.
*/
public val availableUpgrades: List? = builder.availableUpgrades
/**
* The date when the replication instance version will be deprecated and can no longer be requested.
*/
public val deprecationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.deprecationDate
/**
* The date when the replication instance will have a version upgrade forced.
*/
public val forceUpgradeDate: aws.smithy.kotlin.runtime.time.Instant? = builder.forceUpgradeDate
/**
* The date when the replication instance version became publicly available.
*/
public val launchDate: aws.smithy.kotlin.runtime.time.Instant? = builder.launchDate
/**
* The lifecycle status of the replication instance version. Valid values are `DEPRECATED`, `DEFAULT_VERSION`, and `ACTIVE`.
*/
public val lifecycle: kotlin.String? = builder.lifecycle
/**
* The release status of the replication instance version.
*/
public val releaseStatus: aws.sdk.kotlin.services.databasemigrationservice.model.ReleaseStatusValues? = builder.releaseStatus
/**
* The version number of the replication instance.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.EngineVersion = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EngineVersion(")
append("autoUpgradeDate=$autoUpgradeDate,")
append("availableUpgrades=$availableUpgrades,")
append("deprecationDate=$deprecationDate,")
append("forceUpgradeDate=$forceUpgradeDate,")
append("launchDate=$launchDate,")
append("lifecycle=$lifecycle,")
append("releaseStatus=$releaseStatus,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = autoUpgradeDate?.hashCode() ?: 0
result = 31 * result + (availableUpgrades?.hashCode() ?: 0)
result = 31 * result + (deprecationDate?.hashCode() ?: 0)
result = 31 * result + (forceUpgradeDate?.hashCode() ?: 0)
result = 31 * result + (launchDate?.hashCode() ?: 0)
result = 31 * result + (lifecycle?.hashCode() ?: 0)
result = 31 * result + (releaseStatus?.hashCode() ?: 0)
result = 31 * result + (version?.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 EngineVersion
if (autoUpgradeDate != other.autoUpgradeDate) return false
if (availableUpgrades != other.availableUpgrades) return false
if (deprecationDate != other.deprecationDate) return false
if (forceUpgradeDate != other.forceUpgradeDate) return false
if (launchDate != other.launchDate) return false
if (lifecycle != other.lifecycle) return false
if (releaseStatus != other.releaseStatus) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.EngineVersion = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date when the replication instance will be automatically upgraded. This setting only applies if the `auto-minor-version` setting is enabled.
*/
public var autoUpgradeDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The list of valid replication instance versions that you can upgrade to.
*/
public var availableUpgrades: List? = null
/**
* The date when the replication instance version will be deprecated and can no longer be requested.
*/
public var deprecationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date when the replication instance will have a version upgrade forced.
*/
public var forceUpgradeDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date when the replication instance version became publicly available.
*/
public var launchDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The lifecycle status of the replication instance version. Valid values are `DEPRECATED`, `DEFAULT_VERSION`, and `ACTIVE`.
*/
public var lifecycle: kotlin.String? = null
/**
* The release status of the replication instance version.
*/
public var releaseStatus: aws.sdk.kotlin.services.databasemigrationservice.model.ReleaseStatusValues? = null
/**
* The version number of the replication instance.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.EngineVersion) : this() {
this.autoUpgradeDate = x.autoUpgradeDate
this.availableUpgrades = x.availableUpgrades
this.deprecationDate = x.deprecationDate
this.forceUpgradeDate = x.forceUpgradeDate
this.launchDate = x.launchDate
this.lifecycle = x.lifecycle
this.releaseStatus = x.releaseStatus
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.EngineVersion = EngineVersion(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy