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

com.pulumi.azurenative.servicefabric.kotlin.inputs.ServicePlacementInvalidDomainPolicyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.servicefabric.kotlin.inputs

import com.pulumi.azurenative.servicefabric.inputs.ServicePlacementInvalidDomainPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 * Describes the policy to be used for placement of a Service Fabric service where a particular fault or upgrade domain should not be used for placement of the instances or replicas of that service.
 * @property domainName The name of the domain that should not be used for placement.
 * @property type The type of placement policy for a service fabric service. Following are the possible values.
 * Expected value is 'InvalidDomain'.
 */
public data class ServicePlacementInvalidDomainPolicyArgs(
    public val domainName: Output,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicefabric.inputs.ServicePlacementInvalidDomainPolicyArgs =
        com.pulumi.azurenative.servicefabric.inputs.ServicePlacementInvalidDomainPolicyArgs.builder()
            .domainName(domainName.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServicePlacementInvalidDomainPolicyArgs].
 */
@PulumiTagMarker
public class ServicePlacementInvalidDomainPolicyArgsBuilder internal constructor() {
    private var domainName: Output? = null

    private var type: Output? = null

    /**
     * @param value The name of the domain that should not be used for placement.
     */
    @JvmName("qtcafknbsokajikb")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The type of placement policy for a service fabric service. Following are the possible values.
     * Expected value is 'InvalidDomain'.
     */
    @JvmName("vgwjgammbugtmyct")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The name of the domain that should not be used for placement.
     */
    @JvmName("ymgextjtlfsqywsn")
    public suspend fun domainName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value The type of placement policy for a service fabric service. Following are the possible values.
     * Expected value is 'InvalidDomain'.
     */
    @JvmName("psmpcwiwnlssehff")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ServicePlacementInvalidDomainPolicyArgs =
        ServicePlacementInvalidDomainPolicyArgs(
            domainName = domainName ?: throw PulumiNullFieldException("domainName"),
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy