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

com.pulumi.azure.domainservices.kotlin.inputs.ServiceInitialReplicaSetArgs.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.domainservices.kotlin.inputs

import com.pulumi.azure.domainservices.inputs.ServiceInitialReplicaSetArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property domainControllerIpAddresses A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
 * @property externalAccessIpAddress The publicly routable IP address for the domain controllers in the initial replica set.
 * @property id A unique ID for the replica set.
 * @property location The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
 * @property serviceStatus The current service status for the initial replica set.
 * @property subnetId The ID of the subnet in which to place the initial replica set. Changing this forces a new resource to be created.
 */
public data class ServiceInitialReplicaSetArgs(
    public val domainControllerIpAddresses: Output>? = null,
    public val externalAccessIpAddress: Output? = null,
    public val id: Output? = null,
    public val location: Output? = null,
    public val serviceStatus: Output? = null,
    public val subnetId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.domainservices.inputs.ServiceInitialReplicaSetArgs =
        com.pulumi.azure.domainservices.inputs.ServiceInitialReplicaSetArgs.builder()
            .domainControllerIpAddresses(
                domainControllerIpAddresses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .externalAccessIpAddress(externalAccessIpAddress?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .serviceStatus(serviceStatus?.applyValue({ args0 -> args0 }))
            .subnetId(subnetId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceInitialReplicaSetArgs].
 */
@PulumiTagMarker
public class ServiceInitialReplicaSetArgsBuilder internal constructor() {
    private var domainControllerIpAddresses: Output>? = null

    private var externalAccessIpAddress: Output? = null

    private var id: Output? = null

    private var location: Output? = null

    private var serviceStatus: Output? = null

    private var subnetId: Output? = null

    /**
     * @param value A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
     */
    @JvmName("qireomyqevrmwibm")
    public suspend fun domainControllerIpAddresses(`value`: Output>) {
        this.domainControllerIpAddresses = value
    }

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

    /**
     * @param values A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
     */
    @JvmName("xcdbtadyfecliibc")
    public suspend fun domainControllerIpAddresses(values: List>) {
        this.domainControllerIpAddresses = Output.all(values)
    }

    /**
     * @param value The publicly routable IP address for the domain controllers in the initial replica set.
     */
    @JvmName("vvkeooaqpuefejns")
    public suspend fun externalAccessIpAddress(`value`: Output) {
        this.externalAccessIpAddress = value
    }

    /**
     * @param value A unique ID for the replica set.
     */
    @JvmName("xdtelnjridyjmons")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
     */
    @JvmName("cwevcfpgpjfrduwi")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The current service status for the initial replica set.
     */
    @JvmName("yudijqteyqpgsulw")
    public suspend fun serviceStatus(`value`: Output) {
        this.serviceStatus = value
    }

    /**
     * @param value The ID of the subnet in which to place the initial replica set. Changing this forces a new resource to be created.
     */
    @JvmName("vevydygtxlvlrkre")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
     */
    @JvmName("pbmkgjlrtodtphgq")
    public suspend fun domainControllerIpAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainControllerIpAddresses = mapped
    }

    /**
     * @param values A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
     */
    @JvmName("plhvdooxvsbydyjl")
    public suspend fun domainControllerIpAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domainControllerIpAddresses = mapped
    }

    /**
     * @param value The publicly routable IP address for the domain controllers in the initial replica set.
     */
    @JvmName("lhprkiqdyvspifep")
    public suspend fun externalAccessIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalAccessIpAddress = mapped
    }

    /**
     * @param value A unique ID for the replica set.
     */
    @JvmName("romquatypfgqrxee")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
     */
    @JvmName("pfvilhxqrstuvwra")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The current service status for the initial replica set.
     */
    @JvmName("tcmjiretduthninh")
    public suspend fun serviceStatus(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceStatus = mapped
    }

    /**
     * @param value The ID of the subnet in which to place the initial replica set. Changing this forces a new resource to be created.
     */
    @JvmName("urkwqkdkghnlkbjk")
    public suspend fun subnetId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    internal fun build(): ServiceInitialReplicaSetArgs = ServiceInitialReplicaSetArgs(
        domainControllerIpAddresses = domainControllerIpAddresses,
        externalAccessIpAddress = externalAccessIpAddress,
        id = id,
        location = location,
        serviceStatus = serviceStatus,
        subnetId = subnetId ?: throw PulumiNullFieldException("subnetId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy