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

com.pulumi.gcp.monitoring.kotlin.inputs.GetMeshIstioServicePlainArgs.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.GetMeshIstioServicePlainArgs.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 getMeshIstioService.
 * @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.
 * @property serviceName The name of the Istio service underlying this service.
 * Corresponds to the destination_service_name metric label in Istio metrics.
 * - - -
 * Other optional fields include:
 * @property serviceNamespace The namespace of the Istio service underlying this service.
 * Corresponds to the destination_service_namespace metric label in Istio metrics.
 */
public data class GetMeshIstioServicePlainArgs(
    public val meshUid: String,
    public val project: String? = null,
    public val serviceName: String,
    public val serviceNamespace: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.GetMeshIstioServicePlainArgs =
        com.pulumi.gcp.monitoring.inputs.GetMeshIstioServicePlainArgs.builder()
            .meshUid(meshUid.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 }))
            .serviceName(serviceName.let({ args0 -> args0 }))
            .serviceNamespace(serviceNamespace.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetMeshIstioServicePlainArgs].
 */
@PulumiTagMarker
public class GetMeshIstioServicePlainArgsBuilder internal constructor() {
    private var meshUid: String? = null

    private var project: String? = null

    private var serviceName: String? = null

    private var serviceNamespace: String? = null

    /**
     * @param value Identifier for the mesh in which this Istio service is defined.
     * Corresponds to the meshUid metric label in Istio metrics.
     */
    @JvmName("htmgrwlbwwlycewt")
    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("ciemgljcuyletjgq")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

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

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

    internal fun build(): GetMeshIstioServicePlainArgs = GetMeshIstioServicePlainArgs(
        meshUid = meshUid ?: throw PulumiNullFieldException("meshUid"),
        project = project,
        serviceName = serviceName ?: throw PulumiNullFieldException("serviceName"),
        serviceNamespace = serviceNamespace ?: throw PulumiNullFieldException("serviceNamespace"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy