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

com.pulumi.googlenative.retail.v2.kotlin.inputs.GoogleCloudRetailV2ConditionTimeRangeArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.retail.v2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.retail.v2.inputs.GoogleCloudRetailV2ConditionTimeRangeArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Used for time-dependent conditions. Example: Want to have rule applied for week long sale.
 * @property endTime End of time range. Range is inclusive.
 * @property startTime Start of time range. Range is inclusive.
 */
public data class GoogleCloudRetailV2ConditionTimeRangeArgs(
    public val endTime: Output? = null,
    public val startTime: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.retail.v2.inputs.GoogleCloudRetailV2ConditionTimeRangeArgs =
        com.pulumi.googlenative.retail.v2.inputs.GoogleCloudRetailV2ConditionTimeRangeArgs.builder()
            .endTime(endTime?.applyValue({ args0 -> args0 }))
            .startTime(startTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GoogleCloudRetailV2ConditionTimeRangeArgs].
 */
@PulumiTagMarker
public class GoogleCloudRetailV2ConditionTimeRangeArgsBuilder internal constructor() {
    private var endTime: Output? = null

    private var startTime: Output? = null

    /**
     * @param value End of time range. Range is inclusive.
     */
    @JvmName("tyfcfbukurdeqeox")
    public suspend fun endTime(`value`: Output) {
        this.endTime = value
    }

    /**
     * @param value Start of time range. Range is inclusive.
     */
    @JvmName("yenswggioqorgmaj")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value End of time range. Range is inclusive.
     */
    @JvmName("abhqklkteqsdcyos")
    public suspend fun endTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endTime = mapped
    }

    /**
     * @param value Start of time range. Range is inclusive.
     */
    @JvmName("nfedbckdhxceqhgq")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    internal fun build(): GoogleCloudRetailV2ConditionTimeRangeArgs =
        GoogleCloudRetailV2ConditionTimeRangeArgs(
            endTime = endTime,
            startTime = startTime,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy