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

com.pulumi.gcp.gkehub.kotlin.inputs.FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs.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.12.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.FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs.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.
 * @property requests Requests describes the amount of compute resources reserved for the container by the kube-scheduler.
 */
public data class
FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs(
    public val limits: Output? =
        null,
    public val requests: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs =
        com.pulumi.gcp.gkehub.inputs.FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs.builder()
            .limits(limits?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .requests(requests?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgs].
 */
@PulumiTagMarker
public class
FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesArgsBuilder
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.
     */
    @JvmName("fccspybielavuvsh")
    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.
     */
    @JvmName("jyfvcsulsdnuoqpy")
    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.
     */
    @JvmName("vunwmlnlglfpvhus")
    public suspend fun limits(`value`: FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesLimitsArgs?) {
        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.
     */
    @JvmName("leobwcopgbfjawso")
    public suspend fun limits(argument: suspend FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesLimitsArgsBuilder.() -> Unit) {
        val toBeMapped =
            FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesLimitsArgsBuilder().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.
     */
    @JvmName("siadvxnibhgpgyue")
    public suspend fun requests(`value`: FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesRequestsArgs?) {
        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.
     */
    @JvmName("olnfdlhvtfvfmrak")
    public suspend fun requests(argument: suspend FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesRequestsArgsBuilder.() -> Unit) {
        val toBeMapped =
            FeatureMembershipPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResourcesRequestsArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.requests = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy