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

com.pulumi.azurenative.network.kotlin.StaticCidrArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin

import com.pulumi.azurenative.network.StaticCidrArgs.builder
import com.pulumi.azurenative.network.kotlin.inputs.StaticCidrPropertiesArgs
import com.pulumi.azurenative.network.kotlin.inputs.StaticCidrPropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Instance of StaticCidr resource.
 * Azure REST API version: 2024-01-01-preview.
 * ## Example Usage
 * ### StaticCidrs_Create
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var staticCidr = new AzureNative.Network.StaticCidr("staticCidr", new()
 *     {
 *         NetworkManagerName = "TestNetworkManager",
 *         PoolName = "TestPool",
 *         ResourceGroupName = "rg1",
 *         StaticCidrName = "TestStaticCidr",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := network.NewStaticCidr(ctx, "staticCidr", &network.StaticCidrArgs{
 * 			NetworkManagerName: pulumi.String("TestNetworkManager"),
 * 			PoolName:           pulumi.String("TestPool"),
 * 			ResourceGroupName:  pulumi.String("rg1"),
 * 			StaticCidrName:     pulumi.String("TestStaticCidr"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.StaticCidr;
 * import com.pulumi.azurenative.network.StaticCidrArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var staticCidr = new StaticCidr("staticCidr", StaticCidrArgs.builder()
 *             .networkManagerName("TestNetworkManager")
 *             .poolName("TestPool")
 *             .resourceGroupName("rg1")
 *             .staticCidrName("TestStaticCidr")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:network:StaticCidr OnPremResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}
 * ```
 * @property networkManagerName The name of the network manager.
 * @property poolName IP Address Manager Pool resource name.
 * @property properties Properties of static CIDR resource.
 * @property resourceGroupName The name of the resource group.
 * @property staticCidrName Static Cidr allocation name.
 */
public data class StaticCidrArgs(
    public val networkManagerName: Output? = null,
    public val poolName: Output? = null,
    public val properties: Output? = null,
    public val resourceGroupName: Output? = null,
    public val staticCidrName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.StaticCidrArgs =
        com.pulumi.azurenative.network.StaticCidrArgs.builder()
            .networkManagerName(networkManagerName?.applyValue({ args0 -> args0 }))
            .poolName(poolName?.applyValue({ args0 -> args0 }))
            .properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .staticCidrName(staticCidrName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StaticCidrArgs].
 */
@PulumiTagMarker
public class StaticCidrArgsBuilder internal constructor() {
    private var networkManagerName: Output? = null

    private var poolName: Output? = null

    private var properties: Output? = null

    private var resourceGroupName: Output? = null

    private var staticCidrName: Output? = null

    /**
     * @param value The name of the network manager.
     */
    @JvmName("yogtrejmsrbfjdyu")
    public suspend fun networkManagerName(`value`: Output) {
        this.networkManagerName = value
    }

    /**
     * @param value IP Address Manager Pool resource name.
     */
    @JvmName("bqbjefllxoeyluyj")
    public suspend fun poolName(`value`: Output) {
        this.poolName = value
    }

    /**
     * @param value Properties of static CIDR resource.
     */
    @JvmName("mttspgvsmcekvdfu")
    public suspend fun properties(`value`: Output) {
        this.properties = value
    }

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

    /**
     * @param value Static Cidr allocation name.
     */
    @JvmName("pgvkbrlspynnaneg")
    public suspend fun staticCidrName(`value`: Output) {
        this.staticCidrName = value
    }

    /**
     * @param value The name of the network manager.
     */
    @JvmName("pxldiswismpubojk")
    public suspend fun networkManagerName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkManagerName = mapped
    }

    /**
     * @param value IP Address Manager Pool resource name.
     */
    @JvmName("mwksebgqluleehoy")
    public suspend fun poolName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.poolName = mapped
    }

    /**
     * @param value Properties of static CIDR resource.
     */
    @JvmName("emiyudvqenarmjfw")
    public suspend fun properties(`value`: StaticCidrPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument Properties of static CIDR resource.
     */
    @JvmName("ybhtctwvinhukdbw")
    public suspend fun properties(argument: suspend StaticCidrPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = StaticCidrPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

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

    /**
     * @param value Static Cidr allocation name.
     */
    @JvmName("tlydsxioxucjfghm")
    public suspend fun staticCidrName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.staticCidrName = mapped
    }

    internal fun build(): StaticCidrArgs = StaticCidrArgs(
        networkManagerName = networkManagerName,
        poolName = poolName,
        properties = properties,
        resourceGroupName = resourceGroupName,
        staticCidrName = staticCidrName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy