com.pulumi.gcp.monitoring.kotlin.inputs.GetClusterIstioServicePlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.monitoring.kotlin.inputs
import com.pulumi.gcp.monitoring.inputs.GetClusterIstioServicePlainArgs.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 getClusterIstioService.
* @property clusterName The name of the Kubernetes cluster in which this Istio service
* is defined. Corresponds to the clusterName resource label in k8s_cluster resources.
* @property location The location of the Kubernetes cluster in which this Istio service
* is defined. Corresponds to the location resource label in k8s_cluster resources.
* @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 GetClusterIstioServicePlainArgs(
public val clusterName: String,
public val location: String,
public val project: String? = null,
public val serviceName: String,
public val serviceNamespace: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.monitoring.inputs.GetClusterIstioServicePlainArgs =
com.pulumi.gcp.monitoring.inputs.GetClusterIstioServicePlainArgs.builder()
.clusterName(clusterName.let({ args0 -> args0 }))
.location(location.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 }))
.serviceName(serviceName.let({ args0 -> args0 }))
.serviceNamespace(serviceNamespace.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetClusterIstioServicePlainArgs].
*/
@PulumiTagMarker
public class GetClusterIstioServicePlainArgsBuilder internal constructor() {
private var clusterName: String? = null
private var location: String? = null
private var project: String? = null
private var serviceName: String? = null
private var serviceNamespace: String? = null
/**
* @param value The name of the Kubernetes cluster in which this Istio service
* is defined. Corresponds to the clusterName resource label in k8s_cluster resources.
*/
@JvmName("kelengdbhtmrmbuq")
public suspend fun clusterName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.clusterName = mapped
}
/**
* @param value The location of the Kubernetes cluster in which this Istio service
* is defined. Corresponds to the location resource label in k8s_cluster resources.
*/
@JvmName("gmmvrqqtkurbfpwv")
public suspend fun location(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.location = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("oecdfqxclslfluda")
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("svosbneymkgmdkqy")
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("caxqidrhfsywjykf")
public suspend fun serviceNamespace(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.serviceNamespace = mapped
}
internal fun build(): GetClusterIstioServicePlainArgs = GetClusterIstioServicePlainArgs(
clusterName = clusterName ?: throw PulumiNullFieldException("clusterName"),
location = location ?: throw PulumiNullFieldException("location"),
project = project,
serviceName = serviceName ?: throw PulumiNullFieldException("serviceName"),
serviceNamespace = serviceNamespace ?: throw PulumiNullFieldException("serviceNamespace"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy