All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.scvmm.kotlin.VmmServerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.scvmm.kotlin
import com.pulumi.azurenative.scvmm.VmmServerArgs.builder
import com.pulumi.azurenative.scvmm.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.scvmm.kotlin.inputs.VMMServerPropertiesCredentialsArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.VMMServerPropertiesCredentialsArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The VmmServers resource definition.
* Azure REST API version: 2022-05-21-preview. Prior API version in Azure Native 1.x: 2020-06-05-preview.
* Other available API versions: 2023-04-01-preview, 2023-10-07, 2024-06-01.
* ## Example Usage
* ### CreateVMMServer
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var vmmServer = new AzureNative.ScVmm.VmmServer("vmmServer", new()
* {
* Credentials = new AzureNative.ScVmm.Inputs.VMMServerPropertiesCredentialsArgs
* {
* Password = "password",
* Username = "testuser",
* },
* ExtendedLocation = new AzureNative.ScVmm.Inputs.ExtendedLocationArgs
* {
* Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
* Type = "customLocation",
* },
* Fqdn = "VMM.contoso.com",
* Location = "East US",
* Port = 1234,
* ResourceGroupName = "testrg",
* VmmServerName = "ContosoVMMServer",
* });
* });
* ```
* ```go
* package main
* import (
* scvmm "github.com/pulumi/pulumi-azure-native-sdk/scvmm/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := scvmm.NewVmmServer(ctx, "vmmServer", &scvmm.VmmServerArgs{
* Credentials: &scvmm.VMMServerPropertiesCredentialsArgs{
* Password: pulumi.String("password"),
* Username: pulumi.String("testuser"),
* },
* ExtendedLocation: &scvmm.ExtendedLocationArgs{
* Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso"),
* Type: pulumi.String("customLocation"),
* },
* Fqdn: pulumi.String("VMM.contoso.com"),
* Location: pulumi.String("East US"),
* Port: pulumi.Int(1234),
* ResourceGroupName: pulumi.String("testrg"),
* VmmServerName: pulumi.String("ContosoVMMServer"),
* })
* 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.scvmm.VmmServer;
* import com.pulumi.azurenative.scvmm.VmmServerArgs;
* import com.pulumi.azurenative.scvmm.inputs.VMMServerPropertiesCredentialsArgs;
* import com.pulumi.azurenative.scvmm.inputs.ExtendedLocationArgs;
* 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 vmmServer = new VmmServer("vmmServer", VmmServerArgs.builder()
* .credentials(VMMServerPropertiesCredentialsArgs.builder()
* .password("password")
* .username("testuser")
* .build())
* .extendedLocation(ExtendedLocationArgs.builder()
* .name("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso")
* .type("customLocation")
* .build())
* .fqdn("VMM.contoso.com")
* .location("East US")
* .port(1234)
* .resourceGroupName("testrg")
* .vmmServerName("ContosoVMMServer")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:scvmm:VmmServer ContosoVMMServer /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/vmmServers/{vmmServerName}
* ```
* @property credentials Credentials to connect to VMMServer.
* @property extendedLocation The extended location.
* @property fqdn Fqdn is the hostname/ip of the vmmServer.
* @property location Gets or sets the location.
* @property port Port is the port on which the vmmServer is listening.
* @property resourceGroupName The name of the resource group.
* @property tags Resource tags
* @property vmmServerName Name of the VMMServer.
*/
public data class VmmServerArgs(
public val credentials: Output? = null,
public val extendedLocation: Output? = null,
public val fqdn: Output? = null,
public val location: Output? = null,
public val port: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
public val vmmServerName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.scvmm.VmmServerArgs =
com.pulumi.azurenative.scvmm.VmmServerArgs.builder()
.credentials(credentials?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.fqdn(fqdn?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.vmmServerName(vmmServerName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VmmServerArgs].
*/
@PulumiTagMarker
public class VmmServerArgsBuilder internal constructor() {
private var credentials: Output? = null
private var extendedLocation: Output? = null
private var fqdn: Output? = null
private var location: Output? = null
private var port: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
private var vmmServerName: Output? = null
/**
* @param value Credentials to connect to VMMServer.
*/
@JvmName("ktstwgtwpehrfesb")
public suspend fun credentials(`value`: Output) {
this.credentials = value
}
/**
* @param value The extended location.
*/
@JvmName("yqtqxtphwwkiommo")
public suspend fun extendedLocation(`value`: Output) {
this.extendedLocation = value
}
/**
* @param value Fqdn is the hostname/ip of the vmmServer.
*/
@JvmName("luevwwwiprsgkeno")
public suspend fun fqdn(`value`: Output) {
this.fqdn = value
}
/**
* @param value Gets or sets the location.
*/
@JvmName("lcjbeosajhfkgnkr")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Port is the port on which the vmmServer is listening.
*/
@JvmName("xmgntomwlwqyusfp")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value The name of the resource group.
*/
@JvmName("yggqfbkjpxmpjolq")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags
*/
@JvmName("oixktlgxhrjynmbk")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Name of the VMMServer.
*/
@JvmName("rmnamtkapfvucmtu")
public suspend fun vmmServerName(`value`: Output) {
this.vmmServerName = value
}
/**
* @param value Credentials to connect to VMMServer.
*/
@JvmName("etjabpwqhkldjwkj")
public suspend fun credentials(`value`: VMMServerPropertiesCredentialsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.credentials = mapped
}
/**
* @param argument Credentials to connect to VMMServer.
*/
@JvmName("wfstlfbwacwvxfdr")
public suspend fun credentials(argument: suspend VMMServerPropertiesCredentialsArgsBuilder.() -> Unit) {
val toBeMapped = VMMServerPropertiesCredentialsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.credentials = mapped
}
/**
* @param value The extended location.
*/
@JvmName("extyuvdbhduejetm")
public suspend fun extendedLocation(`value`: ExtendedLocationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.extendedLocation = mapped
}
/**
* @param argument The extended location.
*/
@JvmName("igyabjcodowlkdqp")
public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.extendedLocation = mapped
}
/**
* @param value Fqdn is the hostname/ip of the vmmServer.
*/
@JvmName("opyvbenehnrcamfx")
public suspend fun fqdn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fqdn = mapped
}
/**
* @param value Gets or sets the location.
*/
@JvmName("oaambxioduwhnmnh")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Port is the port on which the vmmServer is listening.
*/
@JvmName("bjfccvdudbcbqeqi")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value The name of the resource group.
*/
@JvmName("ttutpbspdnjsudff")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags
*/
@JvmName("isiumaleljchquke")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags
*/
@JvmName("jvwijsmplcuvqjjo")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Name of the VMMServer.
*/
@JvmName("vovjhixyoksuhcin")
public suspend fun vmmServerName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vmmServerName = mapped
}
internal fun build(): VmmServerArgs = VmmServerArgs(
credentials = credentials,
extendedLocation = extendedLocation,
fqdn = fqdn,
location = location,
port = port,
resourceGroupName = resourceGroupName,
tags = tags,
vmmServerName = vmmServerName,
)
}