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

com.pulumi.gcp.gkehub.kotlin.inputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs.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.gkehub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkehub.inputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property limits Limits describes the maximum amount of compute resources allowed for use by the running container.
 * Structure is documented below.
 * @property requests Requests describes the amount of compute resources reserved for the container by the kube-scheduler.
 * Structure is documented below.
 */
public data class
FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs(
    public val limits: Output? =
        null,
    public val requests: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs =
        com.pulumi.gcp.gkehub.inputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs.builder()
            .limits(limits?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .requests(requests?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs].
 */
@PulumiTagMarker
public class
FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgsBuilder
internal constructor() {
    private var limits:
        Output? =
        null

    private var requests:
        Output? =
        null

    /**
     * @param value Limits describes the maximum amount of compute resources allowed for use by the running container.
     * Structure is documented below.
     */
    @JvmName("lspugaqmsmabscnk")
    public suspend fun limits(`value`: Output) {
        this.limits = value
    }

    /**
     * @param value Requests describes the amount of compute resources reserved for the container by the kube-scheduler.
     * Structure is documented below.
     */
    @JvmName("obxshntokhcqlugn")
    public suspend fun requests(`value`: Output) {
        this.requests = value
    }

    /**
     * @param value Limits describes the maximum amount of compute resources allowed for use by the running container.
     * Structure is documented below.
     */
    @JvmName("ysgrownvwqadhhrl")
    public suspend fun limits(`value`: FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesLimitsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.limits = mapped
    }

    /**
     * @param argument Limits describes the maximum amount of compute resources allowed for use by the running container.
     * Structure is documented below.
     */
    @JvmName("ptsyvkyndfkcxesu")
    public suspend fun limits(argument: suspend FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesLimitsArgsBuilder.() -> Unit) {
        val toBeMapped =
            FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesLimitsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.limits = mapped
    }

    /**
     * @param value Requests describes the amount of compute resources reserved for the container by the kube-scheduler.
     * Structure is documented below.
     */
    @JvmName("umaprryjilxjvuwg")
    public suspend fun requests(`value`: FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesRequestsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requests = mapped
    }

    /**
     * @param argument Requests describes the amount of compute resources reserved for the container by the kube-scheduler.
     * Structure is documented below.
     */
    @JvmName("eobbddpjynhjclfc")
    public suspend fun requests(argument: suspend FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesRequestsArgsBuilder.() -> Unit) {
        val toBeMapped =
            FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesRequestsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.requests = mapped
    }

    internal fun build(): FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs =
        FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs(
            limits = limits,
            requests = requests,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy