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

com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicyInstanceSchedulePolicy.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.compute.kotlin.outputs

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

/**
 *
 * @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 vmStartSchedules Specifies the schedule for starting instances.
 * @property vmStopSchedules Specifies the schedule for stopping instances.
 */
public data class GetResourcePolicyInstanceSchedulePolicy(
    public val expirationTime: String,
    public val startTime: String,
    public val timeZone: String,
    public val vmStartSchedules: List,
    public val vmStopSchedules: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetResourcePolicyInstanceSchedulePolicy): GetResourcePolicyInstanceSchedulePolicy = GetResourcePolicyInstanceSchedulePolicy(
            expirationTime = javaType.expirationTime(),
            startTime = javaType.startTime(),
            timeZone = javaType.timeZone(),
            vmStartSchedules = javaType.vmStartSchedules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicyInstanceSchedulePolicyVmStartSchedule.Companion.toKotlin(args0)
                })
            }),
            vmStopSchedules = javaType.vmStopSchedules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicyInstanceSchedulePolicyVmStopSchedule.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy