
com.pulumi.azurenative.apimanagement.kotlin.WorkspaceNotificationRecipientUserArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apimanagement.kotlin
import com.pulumi.azurenative.apimanagement.WorkspaceNotificationRecipientUserArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Recipient User details.
* Azure REST API version: 2022-09-01-preview.
* Other available API versions: 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01.
* ## Example Usage
* ### ApiManagementCreateWorkspaceNotificationRecipientUser
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var workspaceNotificationRecipientUser = new AzureNative.ApiManagement.WorkspaceNotificationRecipientUser("workspaceNotificationRecipientUser", new()
* {
* NotificationName = "RequestPublisherNotificationMessage",
* ResourceGroupName = "rg1",
* ServiceName = "apimService1",
* UserId = "576823d0a40f7e74ec07d642",
* WorkspaceId = "wks1",
* });
* });
* ```
* ```go
* package main
* import (
* apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := apimanagement.NewWorkspaceNotificationRecipientUser(ctx, "workspaceNotificationRecipientUser", &apimanagement.WorkspaceNotificationRecipientUserArgs{
* NotificationName: pulumi.String("RequestPublisherNotificationMessage"),
* ResourceGroupName: pulumi.String("rg1"),
* ServiceName: pulumi.String("apimService1"),
* UserId: pulumi.String("576823d0a40f7e74ec07d642"),
* WorkspaceId: pulumi.String("wks1"),
* })
* 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.apimanagement.WorkspaceNotificationRecipientUser;
* import com.pulumi.azurenative.apimanagement.WorkspaceNotificationRecipientUserArgs;
* 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 workspaceNotificationRecipientUser = new WorkspaceNotificationRecipientUser("workspaceNotificationRecipientUser", WorkspaceNotificationRecipientUserArgs.builder()
* .notificationName("RequestPublisherNotificationMessage")
* .resourceGroupName("rg1")
* .serviceName("apimService1")
* .userId("576823d0a40f7e74ec07d642")
* .workspaceId("wks1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:apimanagement:WorkspaceNotificationRecipientUser 576823d0a40f7e74ec07d642 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}
* ```
* @property notificationName Notification Name Identifier.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property serviceName The name of the API Management service.
* @property userId User identifier. Must be unique in the current API Management service instance.
* @property workspaceId Workspace identifier. Must be unique in the current API Management service instance.
*/
public data class WorkspaceNotificationRecipientUserArgs(
public val notificationName: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceName: Output? = null,
public val userId: Output? = null,
public val workspaceId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apimanagement.WorkspaceNotificationRecipientUserArgs = com.pulumi.azurenative.apimanagement.WorkspaceNotificationRecipientUserArgs.builder()
.notificationName(notificationName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.serviceName(serviceName?.applyValue({ args0 -> args0 }))
.userId(userId?.applyValue({ args0 -> args0 }))
.workspaceId(workspaceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkspaceNotificationRecipientUserArgs].
*/
@PulumiTagMarker
public class WorkspaceNotificationRecipientUserArgsBuilder internal constructor() {
private var notificationName: Output? = null
private var resourceGroupName: Output? = null
private var serviceName: Output? = null
private var userId: Output? = null
private var workspaceId: Output? = null
/**
* @param value Notification Name Identifier.
*/
@JvmName("igpxealnoipqyouf")
public suspend fun notificationName(`value`: Output) {
this.notificationName = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("rpoptksbyruwwbyl")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the API Management service.
*/
@JvmName("bbnelvfvggextpki")
public suspend fun serviceName(`value`: Output) {
this.serviceName = value
}
/**
* @param value User identifier. Must be unique in the current API Management service instance.
*/
@JvmName("pypvhksvvljltkrv")
public suspend fun userId(`value`: Output) {
this.userId = value
}
/**
* @param value Workspace identifier. Must be unique in the current API Management service instance.
*/
@JvmName("eyqcbtuftojnibai")
public suspend fun workspaceId(`value`: Output) {
this.workspaceId = value
}
/**
* @param value Notification Name Identifier.
*/
@JvmName("spikvpkruoodnyoc")
public suspend fun notificationName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notificationName = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("yeurfbuxrsufhgbw")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the API Management service.
*/
@JvmName("lwnembtueetharkd")
public suspend fun serviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceName = mapped
}
/**
* @param value User identifier. Must be unique in the current API Management service instance.
*/
@JvmName("pcqnjgvyrcarqmqo")
public suspend fun userId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userId = mapped
}
/**
* @param value Workspace identifier. Must be unique in the current API Management service instance.
*/
@JvmName("qkqcqlogassvrmmu")
public suspend fun workspaceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceId = mapped
}
internal fun build(): WorkspaceNotificationRecipientUserArgs =
WorkspaceNotificationRecipientUserArgs(
notificationName = notificationName,
resourceGroupName = resourceGroupName,
serviceName = serviceName,
userId = userId,
workspaceId = workspaceId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy