All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.sqladmin.v1beta4.kotlin.outputs.BackupConfigurationResponse.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.sqladmin.v1beta4.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * Database instance backup configuration.
 * @property backupRetentionSettings Backup retention settings.
 * @property binaryLogEnabled (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
 * @property enabled Whether this configuration is enabled.
 * @property kind This is always `sql#backupConfiguration`.
 * @property location Location of the backup
 * @property pointInTimeRecoveryEnabled (Postgres only) Whether point in time recovery is enabled.
 * @property replicationLogArchivingEnabled Reserved for future use.
 * @property startTime Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
 * @property transactionLogRetentionDays The number of days of transaction logs we retain for point in time restore, from 1-7.
 */
public data class BackupConfigurationResponse(
    public val backupRetentionSettings: BackupRetentionSettingsResponse,
    public val binaryLogEnabled: Boolean,
    public val enabled: Boolean,
    public val kind: String,
    public val location: String,
    public val pointInTimeRecoveryEnabled: Boolean,
    public val replicationLogArchivingEnabled: Boolean,
    public val startTime: String,
    public val transactionLogRetentionDays: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.sqladmin.v1beta4.outputs.BackupConfigurationResponse): BackupConfigurationResponse = BackupConfigurationResponse(
            backupRetentionSettings = javaType.backupRetentionSettings().let({ args0 ->
                com.pulumi.googlenative.sqladmin.v1beta4.kotlin.outputs.BackupRetentionSettingsResponse.Companion.toKotlin(args0)
            }),
            binaryLogEnabled = javaType.binaryLogEnabled(),
            enabled = javaType.enabled(),
            kind = javaType.kind(),
            location = javaType.location(),
            pointInTimeRecoveryEnabled = javaType.pointInTimeRecoveryEnabled(),
            replicationLogArchivingEnabled = javaType.replicationLogArchivingEnabled(),
            startTime = javaType.startTime(),
            transactionLogRetentionDays = javaType.transactionLogRetentionDays(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy