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

com.pulumi.gcp.monitoring.kotlin.inputs.GetIstioCanonicalServicePlainArgs.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.monitoring.kotlin.inputs

import com.pulumi.gcp.monitoring.inputs.GetIstioCanonicalServicePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getIstioCanonicalService.
 * @property canonicalService The name of the canonical service underlying this service.
 * Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.
 * - - -
 * Other optional fields include:
 * @property canonicalServiceNamespace The namespace of the canonical service underlying this service.
 * Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.
 * @property meshUid Identifier for the mesh in which this Istio service is defined.
 * Corresponds to the meshUid metric label in Istio metrics.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 */
public data class GetIstioCanonicalServicePlainArgs(
    public val canonicalService: String,
    public val canonicalServiceNamespace: String,
    public val meshUid: String,
    public val project: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.GetIstioCanonicalServicePlainArgs =
        com.pulumi.gcp.monitoring.inputs.GetIstioCanonicalServicePlainArgs.builder()
            .canonicalService(canonicalService.let({ args0 -> args0 }))
            .canonicalServiceNamespace(canonicalServiceNamespace.let({ args0 -> args0 }))
            .meshUid(meshUid.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetIstioCanonicalServicePlainArgs].
 */
@PulumiTagMarker
public class GetIstioCanonicalServicePlainArgsBuilder internal constructor() {
    private var canonicalService: String? = null

    private var canonicalServiceNamespace: String? = null

    private var meshUid: String? = null

    private var project: String? = null

    /**
     * @param value The name of the canonical service underlying this service.
     * Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.
     * - - -
     * Other optional fields include:
     */
    @JvmName("drnrfvlgnywxqnov")
    public suspend fun canonicalService(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.canonicalService = mapped
    }

    /**
     * @param value The namespace of the canonical service underlying this service.
     * Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.
     */
    @JvmName("sheewvifjhoeebsm")
    public suspend fun canonicalServiceNamespace(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.canonicalServiceNamespace = mapped
    }

    /**
     * @param value Identifier for the mesh in which this Istio service is defined.
     * Corresponds to the meshUid metric label in Istio metrics.
     */
    @JvmName("vrfahxmdicdlnkbq")
    public suspend fun meshUid(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.meshUid = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("iyoceaaoatsyfugc")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    internal fun build(): GetIstioCanonicalServicePlainArgs = GetIstioCanonicalServicePlainArgs(
        canonicalService = canonicalService ?: throw PulumiNullFieldException("canonicalService"),
        canonicalServiceNamespace = canonicalServiceNamespace ?: throw
            PulumiNullFieldException("canonicalServiceNamespace"),
        meshUid = meshUid ?: throw PulumiNullFieldException("meshUid"),
        project = project,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy