
commonMain.aws.sdk.kotlin.services.lightsail.model.StopRelationalDatabaseRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class StopRelationalDatabaseRequest private constructor(builder: Builder) {
/**
* The name of your database to stop.
*/
public val relationalDatabaseName: kotlin.String? = builder.relationalDatabaseName
/**
* The name of your new database snapshot to be created before stopping your database.
*/
public val relationalDatabaseSnapshotName: kotlin.String? = builder.relationalDatabaseSnapshotName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.StopRelationalDatabaseRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopRelationalDatabaseRequest(")
append("relationalDatabaseName=$relationalDatabaseName,")
append("relationalDatabaseSnapshotName=$relationalDatabaseSnapshotName)")
}
override fun hashCode(): kotlin.Int {
var result = relationalDatabaseName?.hashCode() ?: 0
result = 31 * result + (relationalDatabaseSnapshotName?.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 StopRelationalDatabaseRequest
if (relationalDatabaseName != other.relationalDatabaseName) return false
if (relationalDatabaseSnapshotName != other.relationalDatabaseSnapshotName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.StopRelationalDatabaseRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of your database to stop.
*/
public var relationalDatabaseName: kotlin.String? = null
/**
* The name of your new database snapshot to be created before stopping your database.
*/
public var relationalDatabaseSnapshotName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.StopRelationalDatabaseRequest) : this() {
this.relationalDatabaseName = x.relationalDatabaseName
this.relationalDatabaseSnapshotName = x.relationalDatabaseSnapshotName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.StopRelationalDatabaseRequest = StopRelationalDatabaseRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy