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

com.pulumi.azurenative.migrate.kotlin.GroupsOperationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.migrate.kotlin

import com.pulumi.azurenative.migrate.GroupsOperationArgs.builder
import com.pulumi.azurenative.migrate.kotlin.enums.AssessmentType
import com.pulumi.azurenative.migrate.kotlin.enums.GroupType
import com.pulumi.azurenative.migrate.kotlin.enums.ProvisioningState
import com.pulumi.core.Either
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.collections.List
import kotlin.jvm.JvmName

/**
 * Group resource.
 * Azure REST API version: 2023-03-15.
 * Other available API versions: 2023-04-01-preview.
 * ## Example Usage
 * ### GroupsOperations_Create_MaximumSet_Gen
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var groupsOperation = new AzureNative.Migrate.GroupsOperation("groupsOperation", new()
 *     {
 *         GroupName = "kuchatur-test",
 *         GroupType = AzureNative.Migrate.GroupType.Default,
 *         ProjectName = "app18700project",
 *         ProvisioningState = AzureNative.Migrate.ProvisioningState.Succeeded,
 *         ResourceGroupName = "ayagrawrg",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := migrate.NewGroupsOperation(ctx, "groupsOperation", &migrate.GroupsOperationArgs{
 * 			GroupName:         pulumi.String("kuchatur-test"),
 * 			GroupType:         pulumi.String(migrate.GroupTypeDefault),
 * 			ProjectName:       pulumi.String("app18700project"),
 * 			ProvisioningState: pulumi.String(migrate.ProvisioningStateSucceeded),
 * 			ResourceGroupName: pulumi.String("ayagrawrg"),
 * 		})
 * 		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.migrate.GroupsOperation;
 * import com.pulumi.azurenative.migrate.GroupsOperationArgs;
 * 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 groupsOperation = new GroupsOperation("groupsOperation", GroupsOperationArgs.builder()
 *             .groupName("kuchatur-test")
 *             .groupType("Default")
 *             .projectName("app18700project")
 *             .provisioningState("Succeeded")
 *             .resourceGroupName("ayagrawrg")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:migrate:GroupsOperation kuchatur-test /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}
 * ```
 * @property groupName Group ARM name
 * @property groupType The type of group.
 * @property projectName Assessment Project Name
 * @property provisioningState The status of the last operation.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property supportedAssessmentTypes List of assessment types supported on this group.
 */
public data class GroupsOperationArgs(
    public val groupName: Output? = null,
    public val groupType: Output>? = null,
    public val projectName: Output? = null,
    public val provisioningState: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val supportedAssessmentTypes: Output>>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.GroupsOperationArgs =
        com.pulumi.azurenative.migrate.GroupsOperationArgs.builder()
            .groupName(groupName?.applyValue({ args0 -> args0 }))
            .groupType(
                groupType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .projectName(projectName?.applyValue({ args0 -> args0 }))
            .provisioningState(
                provisioningState?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .supportedAssessmentTypes(
                supportedAssessmentTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform({ args0 -> args0 }, { args0 ->
                            args0.let({ args0 ->
                                args0.toJava()
                            })
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GroupsOperationArgs].
 */
@PulumiTagMarker
public class GroupsOperationArgsBuilder internal constructor() {
    private var groupName: Output? = null

    private var groupType: Output>? = null

    private var projectName: Output? = null

    private var provisioningState: Output>? = null

    private var resourceGroupName: Output? = null

    private var supportedAssessmentTypes: Output>>? = null

    /**
     * @param value Group ARM name
     */
    @JvmName("grqaslperwwuyvxb")
    public suspend fun groupName(`value`: Output) {
        this.groupName = value
    }

    /**
     * @param value The type of group.
     */
    @JvmName("aovftsmfuyxsddjd")
    public suspend fun groupType(`value`: Output>) {
        this.groupType = value
    }

    /**
     * @param value Assessment Project Name
     */
    @JvmName("wswoohorgwpwvvgx")
    public suspend fun projectName(`value`: Output) {
        this.projectName = value
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("osbaodhxtxyssjpx")
    public suspend fun provisioningState(`value`: Output>) {
        this.provisioningState = value
    }

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

    /**
     * @param value List of assessment types supported on this group.
     */
    @JvmName("olfbuwhsfveliplo")
    public suspend fun supportedAssessmentTypes(`value`: Output>>) {
        this.supportedAssessmentTypes = value
    }

    @JvmName("selqfaiuaxqwbmnb")
    public suspend fun supportedAssessmentTypes(vararg values: Output>) {
        this.supportedAssessmentTypes = Output.all(values.asList())
    }

    /**
     * @param values List of assessment types supported on this group.
     */
    @JvmName("rmolkaucbcqaglou")
    public suspend fun supportedAssessmentTypes(values: List>>) {
        this.supportedAssessmentTypes = Output.all(values)
    }

    /**
     * @param value Group ARM name
     */
    @JvmName("gvkdeqppqqupmbni")
    public suspend fun groupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupName = mapped
    }

    /**
     * @param value The type of group.
     */
    @JvmName("hieixgkbaiuqxovq")
    public suspend fun groupType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupType = mapped
    }

    /**
     * @param value The type of group.
     */
    @JvmName("ludxvwddeydpnsip")
    public fun groupType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.groupType = mapped
    }

    /**
     * @param value The type of group.
     */
    @JvmName("prpedwcrjmfyijwp")
    public fun groupType(`value`: GroupType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.groupType = mapped
    }

    /**
     * @param value Assessment Project Name
     */
    @JvmName("stmkosjntjtgyisc")
    public suspend fun projectName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectName = mapped
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("paupuyhxddoerriw")
    public suspend fun provisioningState(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("osufdaqpqcvyuyfx")
    public fun provisioningState(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

    /**
     * @param value The status of the last operation.
     */
    @JvmName("gnucjghkirmbkqfy")
    public fun provisioningState(`value`: ProvisioningState) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningState = mapped
    }

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

    /**
     * @param value List of assessment types supported on this group.
     */
    @JvmName("vdkhlbkeppmsytih")
    public suspend fun supportedAssessmentTypes(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.supportedAssessmentTypes = mapped
    }

    /**
     * @param values List of assessment types supported on this group.
     */
    @JvmName("idbxgcwrmtfofvof")
    public suspend fun supportedAssessmentTypes(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedAssessmentTypes = mapped
    }

    internal fun build(): GroupsOperationArgs = GroupsOperationArgs(
        groupName = groupName,
        groupType = groupType,
        projectName = projectName,
        provisioningState = provisioningState,
        resourceGroupName = resourceGroupName,
        supportedAssessmentTypes = supportedAssessmentTypes,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy