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

com.pulumi.gcp.oracledatabase.kotlin.inputs.AutonomousDatabasePropertiesScheduledOperationDetailArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.oracledatabase.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.oracledatabase.inputs.AutonomousDatabasePropertiesScheduledOperationDetailArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property dayOfWeek Possible values:
 *  DAY_OF_WEEK_UNSPECIFIED
 * MONDAY
 * TUESDAY
 * WEDNESDAY
 * THURSDAY
 * FRIDAY
 * SATURDAY
 * SUNDAY
 * @property startTimes Represents a time of day. The date and time zone are either not significant
 * or are specified elsewhere. An API may choose to allow leap seconds. Related
 * types are google.type.Date and 'google.protobuf.Timestamp'.
 * @property stopTimes Represents a time of day. The date and time zone are either not significant
 * or are specified elsewhere. An API may choose to allow leap seconds. Related
 * types are google.type.Date and 'google.protobuf.Timestamp'.
 */
public data class AutonomousDatabasePropertiesScheduledOperationDetailArgs(
    public val dayOfWeek: Output? = null,
    public val startTimes: Output>? = null,
    public val stopTimes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.oracledatabase.inputs.AutonomousDatabasePropertiesScheduledOperationDetailArgs =
        com.pulumi.gcp.oracledatabase.inputs.AutonomousDatabasePropertiesScheduledOperationDetailArgs.builder()
            .dayOfWeek(dayOfWeek?.applyValue({ args0 -> args0 }))
            .startTimes(
                startTimes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .stopTimes(
                stopTimes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AutonomousDatabasePropertiesScheduledOperationDetailArgs].
 */
@PulumiTagMarker
public class AutonomousDatabasePropertiesScheduledOperationDetailArgsBuilder internal constructor() {
    private var dayOfWeek: Output? = null

    private var startTimes:
        Output>? = null

    private var stopTimes:
        Output>? = null

    /**
     * @param value Possible values:
     *  DAY_OF_WEEK_UNSPECIFIED
     * MONDAY
     * TUESDAY
     * WEDNESDAY
     * THURSDAY
     * FRIDAY
     * SATURDAY
     * SUNDAY
     */
    @JvmName("mqmmkepesosfuuvh")
    public suspend fun dayOfWeek(`value`: Output) {
        this.dayOfWeek = value
    }

    /**
     * @param value Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("kqfyysifbnuydfbn")
    public suspend fun startTimes(`value`: Output>) {
        this.startTimes = value
    }

    @JvmName("qnoyxqnxwcpclwpw")
    public suspend fun startTimes(vararg values: Output) {
        this.startTimes = Output.all(values.asList())
    }

    /**
     * @param values Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("yudmkuogklvwmqym")
    public suspend fun startTimes(values: List>) {
        this.startTimes = Output.all(values)
    }

    /**
     * @param value Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("aaqxeimusibeuvfi")
    public suspend fun stopTimes(`value`: Output>) {
        this.stopTimes = value
    }

    @JvmName("ikkrpvvlhobpgcga")
    public suspend fun stopTimes(vararg values: Output) {
        this.stopTimes = Output.all(values.asList())
    }

    /**
     * @param values Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("ambxhamksausrolx")
    public suspend fun stopTimes(values: List>) {
        this.stopTimes = Output.all(values)
    }

    /**
     * @param value Possible values:
     *  DAY_OF_WEEK_UNSPECIFIED
     * MONDAY
     * TUESDAY
     * WEDNESDAY
     * THURSDAY
     * FRIDAY
     * SATURDAY
     * SUNDAY
     */
    @JvmName("paikqcgjlglaeqgd")
    public suspend fun dayOfWeek(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dayOfWeek = mapped
    }

    /**
     * @param value Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("xourxqfmdunpsnev")
    public suspend fun startTimes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTimes = mapped
    }

    /**
     * @param argument Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("imjyqwtxfvcrojpc")
    public suspend fun startTimes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AutonomousDatabasePropertiesScheduledOperationDetailStartTimeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.startTimes = mapped
    }

    /**
     * @param argument Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("fjraldybpqkjtmwc")
    public suspend fun startTimes(vararg argument: suspend AutonomousDatabasePropertiesScheduledOperationDetailStartTimeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AutonomousDatabasePropertiesScheduledOperationDetailStartTimeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.startTimes = mapped
    }

    /**
     * @param argument Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("dkmidgjnyhsxvoam")
    public suspend fun startTimes(argument: suspend AutonomousDatabasePropertiesScheduledOperationDetailStartTimeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AutonomousDatabasePropertiesScheduledOperationDetailStartTimeArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.startTimes = mapped
    }

    /**
     * @param values Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("auqosyowirivdlwl")
    public suspend fun startTimes(vararg values: AutonomousDatabasePropertiesScheduledOperationDetailStartTimeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startTimes = mapped
    }

    /**
     * @param value Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("suvbgjdjrotdbjtg")
    public suspend fun stopTimes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stopTimes = mapped
    }

    /**
     * @param argument Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("ujftmcdjrbldjqha")
    public suspend fun stopTimes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AutonomousDatabasePropertiesScheduledOperationDetailStopTimeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.stopTimes = mapped
    }

    /**
     * @param argument Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("qxiobctqspqnippj")
    public suspend fun stopTimes(vararg argument: suspend AutonomousDatabasePropertiesScheduledOperationDetailStopTimeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AutonomousDatabasePropertiesScheduledOperationDetailStopTimeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.stopTimes = mapped
    }

    /**
     * @param argument Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("shibarflbowapers")
    public suspend fun stopTimes(argument: suspend AutonomousDatabasePropertiesScheduledOperationDetailStopTimeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AutonomousDatabasePropertiesScheduledOperationDetailStopTimeArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.stopTimes = mapped
    }

    /**
     * @param values Represents a time of day. The date and time zone are either not significant
     * or are specified elsewhere. An API may choose to allow leap seconds. Related
     * types are google.type.Date and 'google.protobuf.Timestamp'.
     */
    @JvmName("ifvelkqngmssogwm")
    public suspend fun stopTimes(vararg values: AutonomousDatabasePropertiesScheduledOperationDetailStopTimeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.stopTimes = mapped
    }

    internal fun build(): AutonomousDatabasePropertiesScheduledOperationDetailArgs =
        AutonomousDatabasePropertiesScheduledOperationDetailArgs(
            dayOfWeek = dayOfWeek,
            startTimes = startTimes,
            stopTimes = stopTimes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy