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

com.pulumi.azurenative.network.kotlin.inputs.ServiceEndpointPolicyDefinitionArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.ServiceEndpointPolicyDefinitionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Service Endpoint policy definitions.
 * @property description A description for this rule. Restricted to 140 chars.
 * @property etag A unique read-only string that changes whenever the resource is updated.
 * @property id Resource ID.
 * @property name The name of the resource that is unique within a resource group. This name can be used to access the resource.
 * @property service Service endpoint name.
 * @property serviceResources A list of service resources.
 * @property type The type of the resource.
 */
public data class ServiceEndpointPolicyDefinitionArgs(
    public val description: Output? = null,
    public val etag: Output? = null,
    public val id: Output? = null,
    public val name: Output? = null,
    public val service: Output? = null,
    public val serviceResources: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ServiceEndpointPolicyDefinitionArgs =
        com.pulumi.azurenative.network.inputs.ServiceEndpointPolicyDefinitionArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .etag(etag?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .service(service?.applyValue({ args0 -> args0 }))
            .serviceResources(serviceResources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceEndpointPolicyDefinitionArgs].
 */
@PulumiTagMarker
public class ServiceEndpointPolicyDefinitionArgsBuilder internal constructor() {
    private var description: Output? = null

    private var etag: Output? = null

    private var id: Output? = null

    private var name: Output? = null

    private var service: Output? = null

    private var serviceResources: Output>? = null

    private var type: Output? = null

    /**
     * @param value A description for this rule. Restricted to 140 chars.
     */
    @JvmName("wkwfsadmgkwcdmcm")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A unique read-only string that changes whenever the resource is updated.
     */
    @JvmName("quipqpbkjhdyvetl")
    public suspend fun etag(`value`: Output) {
        this.etag = value
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("sbcmfktgtexnqrbj")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The name of the resource that is unique within a resource group. This name can be used to access the resource.
     */
    @JvmName("bugvqjrihodfelxk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Service endpoint name.
     */
    @JvmName("nombxgajqjdtdeuj")
    public suspend fun service(`value`: Output) {
        this.service = value
    }

    /**
     * @param value A list of service resources.
     */
    @JvmName("iaigfywgrmoicioc")
    public suspend fun serviceResources(`value`: Output>) {
        this.serviceResources = value
    }

    @JvmName("ejbvgqjcgphwtbxx")
    public suspend fun serviceResources(vararg values: Output) {
        this.serviceResources = Output.all(values.asList())
    }

    /**
     * @param values A list of service resources.
     */
    @JvmName("xvwgacxhkdemshmq")
    public suspend fun serviceResources(values: List>) {
        this.serviceResources = Output.all(values)
    }

    /**
     * @param value The type of the resource.
     */
    @JvmName("cmklnnrpkypkxegy")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A description for this rule. Restricted to 140 chars.
     */
    @JvmName("udpckorfeswvmxtk")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value A unique read-only string that changes whenever the resource is updated.
     */
    @JvmName("pwvtgvhlualelhjd")
    public suspend fun etag(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.etag = mapped
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("pbjhkpppowikvnaw")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The name of the resource that is unique within a resource group. This name can be used to access the resource.
     */
    @JvmName("ditsvhdirhhdxsbn")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Service endpoint name.
     */
    @JvmName("jgmvoehaceierkuo")
    public suspend fun service(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.service = mapped
    }

    /**
     * @param value A list of service resources.
     */
    @JvmName("ybkdjnkrulvblbok")
    public suspend fun serviceResources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceResources = mapped
    }

    /**
     * @param values A list of service resources.
     */
    @JvmName("jbvormqndycndpko")
    public suspend fun serviceResources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceResources = mapped
    }

    /**
     * @param value The type of the resource.
     */
    @JvmName("nvwuaiarxrnwgawv")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ServiceEndpointPolicyDefinitionArgs = ServiceEndpointPolicyDefinitionArgs(
        description = description,
        etag = etag,
        id = id,
        name = name,
        service = service,
        serviceResources = serviceResources,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy