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

com.pulumi.gcp.compute.kotlin.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property nanos Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are
 * represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
 * @property seconds Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
 * Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
 */
public data class URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs(
    public val nanos: Output? = null,
    public val seconds: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs =
        com.pulumi.gcp.compute.inputs.URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs.builder()
            .nanos(nanos?.applyValue({ args0 -> args0 }))
            .seconds(seconds.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs].
 */
@PulumiTagMarker
public class URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgsBuilder
internal constructor() {
    private var nanos: Output? = null

    private var seconds: Output? = null

    /**
     * @param value Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are
     * represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
     */
    @JvmName("jnfnbtmnqvpfiyni")
    public suspend fun nanos(`value`: Output) {
        this.nanos = value
    }

    /**
     * @param value Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
     * Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
     */
    @JvmName("djwfpoctvoohauuy")
    public suspend fun seconds(`value`: Output) {
        this.seconds = value
    }

    /**
     * @param value Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are
     * represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
     */
    @JvmName("xhlrtonpjvfepimm")
    public suspend fun nanos(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nanos = mapped
    }

    /**
     * @param value Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
     * Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
     */
    @JvmName("xbysgtokpmdeoilo")
    public suspend fun seconds(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.seconds = mapped
    }

    internal fun build(): URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs = URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelayArgs(
        nanos = nanos,
        seconds = seconds ?: throw PulumiNullFieldException("seconds"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy