com.pulumi.gcp.compute.kotlin.outputs.ResourcePolicyInstanceSchedulePolicy.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.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property expirationTime The expiration time of the schedule. The timestamp is an RFC3339 string.
* @property startTime The start time of the schedule. The timestamp is an RFC3339 string.
* @property timeZone Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name
* from the tz database: http://en.wikipedia.org/wiki/Tz_database.
* @property vmStartSchedule Specifies the schedule for starting instances.
* Structure is documented below.
* @property vmStopSchedule Specifies the schedule for stopping instances.
* Structure is documented below.
*/
public data class ResourcePolicyInstanceSchedulePolicy(
public val expirationTime: String? = null,
public val startTime: String? = null,
public val timeZone: String,
public val vmStartSchedule: ResourcePolicyInstanceSchedulePolicyVmStartSchedule? = null,
public val vmStopSchedule: ResourcePolicyInstanceSchedulePolicyVmStopSchedule? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.ResourcePolicyInstanceSchedulePolicy): ResourcePolicyInstanceSchedulePolicy = ResourcePolicyInstanceSchedulePolicy(
expirationTime = javaType.expirationTime().map({ args0 -> args0 }).orElse(null),
startTime = javaType.startTime().map({ args0 -> args0 }).orElse(null),
timeZone = javaType.timeZone(),
vmStartSchedule = javaType.vmStartSchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.ResourcePolicyInstanceSchedulePolicyVmStartSchedule.Companion.toKotlin(args0)
})
}).orElse(null),
vmStopSchedule = javaType.vmStopSchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.ResourcePolicyInstanceSchedulePolicyVmStopSchedule.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy