
commonMain.aws.sdk.kotlin.services.lightsail.model.PendingMaintenanceAction.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Describes a pending database maintenance action.
*/
public class PendingMaintenanceAction private constructor(builder: Builder) {
/**
* The type of pending database maintenance action.
*/
public val action: kotlin.String? = builder.action
/**
* The effective date of the pending database maintenance action.
*/
public val currentApplyDate: aws.smithy.kotlin.runtime.time.Instant? = builder.currentApplyDate
/**
* Additional detail about the pending database maintenance action.
*/
public val description: kotlin.String? = builder.description
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.PendingMaintenanceAction = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PendingMaintenanceAction(")
append("action=$action,")
append("currentApplyDate=$currentApplyDate,")
append("description=$description")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (currentApplyDate?.hashCode() ?: 0)
result = 31 * result + (description?.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 PendingMaintenanceAction
if (action != other.action) return false
if (currentApplyDate != other.currentApplyDate) return false
if (description != other.description) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.PendingMaintenanceAction = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of pending database maintenance action.
*/
public var action: kotlin.String? = null
/**
* The effective date of the pending database maintenance action.
*/
public var currentApplyDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Additional detail about the pending database maintenance action.
*/
public var description: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.PendingMaintenanceAction) : this() {
this.action = x.action
this.currentApplyDate = x.currentApplyDate
this.description = x.description
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.PendingMaintenanceAction = PendingMaintenanceAction(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy