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.healthcareapis.kotlin.DicomServiceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.healthcareapis.kotlin
import com.pulumi.azurenative.healthcareapis.DicomServiceArgs.builder
import com.pulumi.azurenative.healthcareapis.kotlin.inputs.CorsConfigurationArgs
import com.pulumi.azurenative.healthcareapis.kotlin.inputs.CorsConfigurationArgsBuilder
import com.pulumi.azurenative.healthcareapis.kotlin.inputs.ServiceManagedIdentityIdentityArgs
import com.pulumi.azurenative.healthcareapis.kotlin.inputs.ServiceManagedIdentityIdentityArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The description of Dicom Service
* Azure REST API version: 2023-02-28. Prior API version in Azure Native 1.x: 2022-05-15.
* Other available API versions: 2023-09-06, 2023-11-01, 2023-12-01, 2024-03-01, 2024-03-31.
* ## Example Usage
* ### Create or update a Dicom Service
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var dicomService = new AzureNative.HealthcareApis.DicomService("dicomService", new()
* {
* DicomServiceName = "blue",
* Location = "westus",
* ResourceGroupName = "testRG",
* WorkspaceName = "workspace1",
* });
* });
* ```
* ```go
* package main
* import (
* healthcareapis "github.com/pulumi/pulumi-azure-native-sdk/healthcareapis/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := healthcareapis.NewDicomService(ctx, "dicomService", &healthcareapis.DicomServiceArgs{
* DicomServiceName: pulumi.String("blue"),
* Location: pulumi.String("westus"),
* ResourceGroupName: pulumi.String("testRG"),
* WorkspaceName: pulumi.String("workspace1"),
* })
* 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.healthcareapis.DicomService;
* import com.pulumi.azurenative.healthcareapis.DicomServiceArgs;
* 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 dicomService = new DicomService("dicomService", DicomServiceArgs.builder()
* .dicomServiceName("blue")
* .location("westus")
* .resourceGroupName("testRG")
* .workspaceName("workspace1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:healthcareapis:DicomService blue /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}
* ```
* @property corsConfiguration Dicom Service Cors configuration.
* @property dicomServiceName The name of DICOM Service resource.
* @property identity Setting indicating whether the service has a managed identity associated with it.
* @property location The resource location.
* @property resourceGroupName The name of the resource group that contains the service instance.
* @property tags Resource tags.
* @property workspaceName The name of workspace resource.
*/
public data class DicomServiceArgs(
public val corsConfiguration: Output? = null,
public val dicomServiceName: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.healthcareapis.DicomServiceArgs =
com.pulumi.azurenative.healthcareapis.DicomServiceArgs.builder()
.corsConfiguration(corsConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.dicomServiceName(dicomServiceName?.applyValue({ args0 -> args0 }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DicomServiceArgs].
*/
@PulumiTagMarker
public class DicomServiceArgsBuilder internal constructor() {
private var corsConfiguration: Output? = null
private var dicomServiceName: Output? = null
private var identity: Output? = null
private var location: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
private var workspaceName: Output? = null
/**
* @param value Dicom Service Cors configuration.
*/
@JvmName("ibwfsvkjwkfmlfrd")
public suspend fun corsConfiguration(`value`: Output) {
this.corsConfiguration = value
}
/**
* @param value The name of DICOM Service resource.
*/
@JvmName("ammdgarceokctctd")
public suspend fun dicomServiceName(`value`: Output) {
this.dicomServiceName = value
}
/**
* @param value Setting indicating whether the service has a managed identity associated with it.
*/
@JvmName("cxmfljwjikvnhhyg")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The resource location.
*/
@JvmName("skcrpqcwpebwsaut")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The name of the resource group that contains the service instance.
*/
@JvmName("osuijicwotxlfvqu")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("wkddohcayiclbojq")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The name of workspace resource.
*/
@JvmName("uhmindwbiubxvnjy")
public suspend fun workspaceName(`value`: Output) {
this.workspaceName = value
}
/**
* @param value Dicom Service Cors configuration.
*/
@JvmName("qkynepkenpdwtows")
public suspend fun corsConfiguration(`value`: CorsConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.corsConfiguration = mapped
}
/**
* @param argument Dicom Service Cors configuration.
*/
@JvmName("pmkxssiembrurlkq")
public suspend fun corsConfiguration(argument: suspend CorsConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = CorsConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.corsConfiguration = mapped
}
/**
* @param value The name of DICOM Service resource.
*/
@JvmName("jrkwgonnvniyxcxf")
public suspend fun dicomServiceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dicomServiceName = mapped
}
/**
* @param value Setting indicating whether the service has a managed identity associated with it.
*/
@JvmName("ghfmmdfmdiuuwsmt")
public suspend fun identity(`value`: ServiceManagedIdentityIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument Setting indicating whether the service has a managed identity associated with it.
*/
@JvmName("cckdmaskfjunxkej")
public suspend fun identity(argument: suspend ServiceManagedIdentityIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ServiceManagedIdentityIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The resource location.
*/
@JvmName("cwjsviufhtgdnlhm")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The name of the resource group that contains the service instance.
*/
@JvmName("xrgnxgercugphbxc")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("nctuqajplaqphogv")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("jgcuvswjcwmwoyoe")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value The name of workspace resource.
*/
@JvmName("sfrlnckkmsjgsxhp")
public suspend fun workspaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceName = mapped
}
internal fun build(): DicomServiceArgs = DicomServiceArgs(
corsConfiguration = corsConfiguration,
dicomServiceName = dicomServiceName,
identity = identity,
location = location,
resourceGroupName = resourceGroupName,
tags = tags,
workspaceName = workspaceName,
)
}