com.pulumi.azurenative.migrate.kotlin.ImportCollectorArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.migrate.kotlin
import com.pulumi.azurenative.migrate.ImportCollectorArgs.builder
import com.pulumi.azurenative.migrate.kotlin.inputs.ImportCollectorPropertiesArgs
import com.pulumi.azurenative.migrate.kotlin.inputs.ImportCollectorPropertiesArgsBuilder
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
/**
*
* Azure REST API version: 2019-10-01. Prior API version in Azure Native 1.x: 2019-10-01.
* ## Example Usage
* ### ImportCollectors_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var importCollector = new AzureNative.Migrate.ImportCollector("importCollector", new()
* {
* ImportCollectorName = "importCollector2952",
* ProjectName = "rajoshCCY9671project",
* ResourceGroupName = "markusavstestrg",
* });
* });
* ```
* ```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.NewImportCollector(ctx, "importCollector", &migrate.ImportCollectorArgs{
* ImportCollectorName: pulumi.String("importCollector2952"),
* ProjectName: pulumi.String("rajoshCCY9671project"),
* ResourceGroupName: pulumi.String("markusavstestrg"),
* })
* 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.ImportCollector;
* import com.pulumi.azurenative.migrate.ImportCollectorArgs;
* 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 importCollector = new ImportCollector("importCollector", ImportCollectorArgs.builder()
* .importCollectorName("importCollector2952")
* .projectName("rajoshCCY9671project")
* .resourceGroupName("markusavstestrg")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:migrate:ImportCollector importCollector2952 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/importcollectors/{importCollectorName}
* ```
* @property eTag
* @property importCollectorName Unique name of a Import collector within a project.
* @property projectName Name of the Azure Migrate project.
* @property properties
* @property resourceGroupName Name of the Azure Resource Group that project is part of.
*/
public data class ImportCollectorArgs(
public val eTag: Output? = null,
public val importCollectorName: Output? = null,
public val projectName: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.migrate.ImportCollectorArgs =
com.pulumi.azurenative.migrate.ImportCollectorArgs.builder()
.eTag(eTag?.applyValue({ args0 -> args0 }))
.importCollectorName(importCollectorName?.applyValue({ args0 -> args0 }))
.projectName(projectName?.applyValue({ args0 -> args0 }))
.properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ImportCollectorArgs].
*/
@PulumiTagMarker
public class ImportCollectorArgsBuilder internal constructor() {
private var eTag: Output? = null
private var importCollectorName: Output? = null
private var projectName: Output? = null
private var properties: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value
*/
@JvmName("urdfxtiulciodmrs")
public suspend fun eTag(`value`: Output) {
this.eTag = value
}
/**
* @param value Unique name of a Import collector within a project.
*/
@JvmName("rfnxygduliokdgrj")
public suspend fun importCollectorName(`value`: Output) {
this.importCollectorName = value
}
/**
* @param value Name of the Azure Migrate project.
*/
@JvmName("qhapysonutihqxno")
public suspend fun projectName(`value`: Output) {
this.projectName = value
}
/**
* @param value
*/
@JvmName("qrfytjefcncoxppj")
public suspend fun properties(`value`: Output) {
this.properties = value
}
/**
* @param value Name of the Azure Resource Group that project is part of.
*/
@JvmName("tamtnltiiowvirco")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value
*/
@JvmName("qelcoqiyjvuvmnfi")
public suspend fun eTag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eTag = mapped
}
/**
* @param value Unique name of a Import collector within a project.
*/
@JvmName("mjoqsoiajfyokwsr")
public suspend fun importCollectorName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.importCollectorName = mapped
}
/**
* @param value Name of the Azure Migrate project.
*/
@JvmName("ksdvykpuqjpmdpdf")
public suspend fun projectName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.projectName = mapped
}
/**
* @param value
*/
@JvmName("pyqoamamurljfcbo")
public suspend fun properties(`value`: ImportCollectorPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param argument
*/
@JvmName("tbwsdurfeqvtouma")
public suspend fun properties(argument: suspend ImportCollectorPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = ImportCollectorPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.properties = mapped
}
/**
* @param value Name of the Azure Resource Group that project is part of.
*/
@JvmName("mpkccfiqqmvyivib")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): ImportCollectorArgs = ImportCollectorArgs(
eTag = eTag,
importCollectorName = importCollectorName,
projectName = projectName,
properties = properties,
resourceGroupName = resourceGroupName,
)
}