com.pulumi.gcp.memcache.kotlin.outputs.InstanceMaintenancePolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.memcache.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 updated.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
* resolution and up to nine fractional digits.
* @property weeklyMaintenanceWindows Required. Maintenance window that is applied to resources covered by this policy.
* Minimum 1. For the current version, the maximum number of weekly_maintenance_windows
* 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,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.memcache.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.memcache.kotlin.outputs.InstanceMaintenancePolicyWeeklyMaintenanceWindow.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy