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

com.pulumi.gcp.storage.kotlin.outputs.TransferJobSchedule.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.storage.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property repeatInterval Interval between the start of each scheduled transfer. If unspecified, the default value is 24 hours. This value may not be less than 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
 * @property scheduleEndDate The last day the recurring transfer will be run. If `schedule_end_date` is the same as `schedule_start_date`, the transfer will be executed only once. Structure documented below.
 * @property scheduleStartDate The first day the recurring transfer is scheduled to run. If `schedule_start_date` is in the past, the transfer will run for the first time on the following day. Structure documented below.
 * @property startTimeOfDay The time in UTC at which the transfer will be scheduled to start in a day. Transfers may start later than this time. If not specified, recurring and one-time transfers that are scheduled to run today will run immediately; recurring transfers that are scheduled to run on a future date will start at approximately midnight UTC on that date. Note that when configuring a transfer with the Cloud Platform Console, the transfer's start time in a day is specified in your local timezone. Structure documented below.
 */
public data class TransferJobSchedule(
    public val repeatInterval: String? = null,
    public val scheduleEndDate: TransferJobScheduleScheduleEndDate? = null,
    public val scheduleStartDate: TransferJobScheduleScheduleStartDate,
    public val startTimeOfDay: TransferJobScheduleStartTimeOfDay? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.TransferJobSchedule): TransferJobSchedule = TransferJobSchedule(
            repeatInterval = javaType.repeatInterval().map({ args0 -> args0 }).orElse(null),
            scheduleEndDate = javaType.scheduleEndDate().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobScheduleScheduleEndDate.Companion.toKotlin(args0)
                })
            }).orElse(null),
            scheduleStartDate = javaType.scheduleStartDate().let({ args0 ->
                com.pulumi.gcp.storage.kotlin.outputs.TransferJobScheduleScheduleStartDate.Companion.toKotlin(args0)
            }),
            startTimeOfDay = javaType.startTimeOfDay().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.storage.kotlin.outputs.TransferJobScheduleStartTimeOfDay.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy