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

com.pulumi.gcp.container.kotlin.inputs.ClusterFleetArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterFleetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property membership The resource name of the fleet Membership resource associated to this cluster with format `//gkehub.googleapis.com/projects/{{project}}/locations/{{location}}/memberships/{{name}}`. See the official doc for [fleet management](https://cloud.google.com/kubernetes-engine/docs/fleets-overview).
 * @property membershipId The short name of the fleet membership, extracted from `fleet.0.membership`. You can use this field to configure `membership_id` under google_gkehub_feature_membership.
 * @property membershipLocation The location of the fleet membership,  extracted from `fleet.0.membership`. You can use this field to configure `membership_location` under google_gkehub_feature_membership.
 * @property preRegistered Whether the cluster has been registered via the fleet API.
 * @property project The name of the Fleet host project where this cluster will be registered.
 */
public data class ClusterFleetArgs(
    public val membership: Output? = null,
    public val membershipId: Output? = null,
    public val membershipLocation: Output? = null,
    public val preRegistered: Output? = null,
    public val project: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterFleetArgs =
        com.pulumi.gcp.container.inputs.ClusterFleetArgs.builder()
            .membership(membership?.applyValue({ args0 -> args0 }))
            .membershipId(membershipId?.applyValue({ args0 -> args0 }))
            .membershipLocation(membershipLocation?.applyValue({ args0 -> args0 }))
            .preRegistered(preRegistered?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterFleetArgs].
 */
@PulumiTagMarker
public class ClusterFleetArgsBuilder internal constructor() {
    private var membership: Output? = null

    private var membershipId: Output? = null

    private var membershipLocation: Output? = null

    private var preRegistered: Output? = null

    private var project: Output? = null

    /**
     * @param value The resource name of the fleet Membership resource associated to this cluster with format `//gkehub.googleapis.com/projects/{{project}}/locations/{{location}}/memberships/{{name}}`. See the official doc for [fleet management](https://cloud.google.com/kubernetes-engine/docs/fleets-overview).
     */
    @JvmName("hqdfonblskrmcgjw")
    public suspend fun membership(`value`: Output) {
        this.membership = value
    }

    /**
     * @param value The short name of the fleet membership, extracted from `fleet.0.membership`. You can use this field to configure `membership_id` under google_gkehub_feature_membership.
     */
    @JvmName("dmugbjbdhasqkcjc")
    public suspend fun membershipId(`value`: Output) {
        this.membershipId = value
    }

    /**
     * @param value The location of the fleet membership,  extracted from `fleet.0.membership`. You can use this field to configure `membership_location` under google_gkehub_feature_membership.
     */
    @JvmName("kcporxcienysydyp")
    public suspend fun membershipLocation(`value`: Output) {
        this.membershipLocation = value
    }

    /**
     * @param value Whether the cluster has been registered via the fleet API.
     */
    @JvmName("tghfreuhscvsibfy")
    public suspend fun preRegistered(`value`: Output) {
        this.preRegistered = value
    }

    /**
     * @param value The name of the Fleet host project where this cluster will be registered.
     */
    @JvmName("rtxbqjvqsngjyugu")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value The resource name of the fleet Membership resource associated to this cluster with format `//gkehub.googleapis.com/projects/{{project}}/locations/{{location}}/memberships/{{name}}`. See the official doc for [fleet management](https://cloud.google.com/kubernetes-engine/docs/fleets-overview).
     */
    @JvmName("gkmlcwothhqpqjal")
    public suspend fun membership(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.membership = mapped
    }

    /**
     * @param value The short name of the fleet membership, extracted from `fleet.0.membership`. You can use this field to configure `membership_id` under google_gkehub_feature_membership.
     */
    @JvmName("ineluqedvfpsixdw")
    public suspend fun membershipId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.membershipId = mapped
    }

    /**
     * @param value The location of the fleet membership,  extracted from `fleet.0.membership`. You can use this field to configure `membership_location` under google_gkehub_feature_membership.
     */
    @JvmName("fbqqflsojqsfxkug")
    public suspend fun membershipLocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.membershipLocation = mapped
    }

    /**
     * @param value Whether the cluster has been registered via the fleet API.
     */
    @JvmName("sxvhbjabtfenknav")
    public suspend fun preRegistered(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preRegistered = mapped
    }

    /**
     * @param value The name of the Fleet host project where this cluster will be registered.
     */
    @JvmName("domdxukqhdvmpadu")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    internal fun build(): ClusterFleetArgs = ClusterFleetArgs(
        membership = membership,
        membershipId = membershipId,
        membershipLocation = membershipLocation,
        preRegistered = preRegistered,
        project = project,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy