
commonMain.aws.sdk.kotlin.services.ssmsap.model.BackintConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmsap.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configuration parameters for AWS Backint Agent for SAP HANA. You can backup your SAP HANA database with AWS Backup or Amazon S3.
*/
public class BackintConfig private constructor(builder: Builder) {
/**
* AWS service for your database backup.
*/
public val backintMode: aws.sdk.kotlin.services.ssmsap.model.BackintMode = requireNotNull(builder.backintMode) { "A non-null value must be provided for backintMode" }
/**
*
*/
public val ensureNoBackupInProcess: kotlin.Boolean = requireNotNull(builder.ensureNoBackupInProcess) { "A non-null value must be provided for ensureNoBackupInProcess" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.BackintConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BackintConfig(")
append("backintMode=$backintMode,")
append("ensureNoBackupInProcess=$ensureNoBackupInProcess")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backintMode.hashCode()
result = 31 * result + (ensureNoBackupInProcess.hashCode())
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 BackintConfig
if (backintMode != other.backintMode) return false
if (ensureNoBackupInProcess != other.ensureNoBackupInProcess) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.BackintConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* AWS service for your database backup.
*/
public var backintMode: aws.sdk.kotlin.services.ssmsap.model.BackintMode? = null
/**
*
*/
public var ensureNoBackupInProcess: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.BackintConfig) : this() {
this.backintMode = x.backintMode
this.ensureNoBackupInProcess = x.ensureNoBackupInProcess
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.BackintConfig = BackintConfig(this)
internal fun correctErrors(): Builder {
if (backintMode == null) backintMode = BackintMode.SdkUnknown("no value provided")
if (ensureNoBackupInProcess == null) ensureNoBackupInProcess = false
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy