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

com.pulumi.gcp.redis.kotlin.outputs.InstanceMaintenancePolicy.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.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.redis.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property createTime (Output)
 * Output only. The time when the policy was created.
 * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
 * resolution and up to nine fractional digits.
 * @property description Optional. Description of what this policy is for.
 * Create/Update methods return INVALID_ARGUMENT if the
 * length is greater than 512.
 * @property updateTime (Output)
 * Output only. The time when the policy was last updated.
 * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
 * resolution and up to nine fractional digits.
 * @property weeklyMaintenanceWindows Optional. Maintenance window that is applied to resources covered by this policy.
 * Minimum 1. For the current version, the maximum number
 * of weekly_window is expected to be one.
 * Structure is documented below.
 */
public data class InstanceMaintenancePolicy(
    public val createTime: String? = null,
    public val description: String? = null,
    public val updateTime: String? = null,
    public val weeklyMaintenanceWindows: List? =
        null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.redis.outputs.InstanceMaintenancePolicy): InstanceMaintenancePolicy = InstanceMaintenancePolicy(
            createTime = javaType.createTime().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            updateTime = javaType.updateTime().map({ args0 -> args0 }).orElse(null),
            weeklyMaintenanceWindows = javaType.weeklyMaintenanceWindows().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.redis.kotlin.outputs.InstanceMaintenancePolicyWeeklyMaintenanceWindow.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy