com.pulumi.gcp.migrationcenter.kotlin.PreferenceSetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.migrationcenter.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.migrationcenter.PreferenceSetArgs.builder
import com.pulumi.gcp.migrationcenter.kotlin.inputs.PreferenceSetVirtualMachinePreferencesArgs
import com.pulumi.gcp.migrationcenter.kotlin.inputs.PreferenceSetVirtualMachinePreferencesArgsBuilder
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
/**
* Manages the PreferenceSet resource.
* To get more information about PreferenceSet, see:
* * [API documentation](https://cloud.google.com/migration-center/docs/reference/rest/v1)
* * How-to Guides
* * [Managing Migration Preferences](https://cloud.google.com/migration-center/docs/migration-preferences)
* ## Example Usage
* ### Preference Set Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const _default = new gcp.migrationcenter.PreferenceSet("default", {
* location: "us-central1",
* preferenceSetId: "preference-set-test",
* description: "Terraform integration test description",
* displayName: "Terraform integration test display",
* virtualMachinePreferences: {
* vmwareEnginePreferences: {
* cpuOvercommitRatio: 1.5,
* },
* sizingOptimizationStrategy: "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* targetProduct: "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.migrationcenter.PreferenceSet("default",
* location="us-central1",
* preference_set_id="preference-set-test",
* description="Terraform integration test description",
* display_name="Terraform integration test display",
* virtual_machine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesArgs(
* vmware_engine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs(
* cpu_overcommit_ratio=1.5,
* ),
* sizing_optimization_strategy="SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* target_product="COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* ))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Gcp.MigrationCenter.PreferenceSet("default", new()
* {
* Location = "us-central1",
* PreferenceSetId = "preference-set-test",
* Description = "Terraform integration test description",
* DisplayName = "Terraform integration test display",
* VirtualMachinePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesArgs
* {
* VmwareEnginePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs
* {
* CpuOvercommitRatio = 1.5,
* },
* SizingOptimizationStrategy = "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* TargetProduct = "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/migrationcenter"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := migrationcenter.NewPreferenceSet(ctx, "default", &migrationcenter.PreferenceSetArgs{
* Location: pulumi.String("us-central1"),
* PreferenceSetId: pulumi.String("preference-set-test"),
* Description: pulumi.String("Terraform integration test description"),
* DisplayName: pulumi.String("Terraform integration test display"),
* VirtualMachinePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesArgs{
* VmwareEnginePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs{
* CpuOvercommitRatio: pulumi.Float64(1.5),
* },
* SizingOptimizationStrategy: pulumi.String("SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE"),
* TargetProduct: pulumi.String("COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE"),
* },
* })
* 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.gcp.migrationcenter.PreferenceSet;
* import com.pulumi.gcp.migrationcenter.PreferenceSetArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs;
* 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 default_ = new PreferenceSet("default", PreferenceSetArgs.builder()
* .location("us-central1")
* .preferenceSetId("preference-set-test")
* .description("Terraform integration test description")
* .displayName("Terraform integration test display")
* .virtualMachinePreferences(PreferenceSetVirtualMachinePreferencesArgs.builder()
* .vmwareEnginePreferences(PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs.builder()
* .cpuOvercommitRatio(1.5)
* .build())
* .sizingOptimizationStrategy("SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE")
* .targetProduct("COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:migrationcenter:PreferenceSet
* properties:
* location: us-central1
* preferenceSetId: preference-set-test
* description: Terraform integration test description
* displayName: Terraform integration test display
* virtualMachinePreferences:
* vmwareEnginePreferences:
* cpuOvercommitRatio: 1.5
* sizingOptimizationStrategy: SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE
* targetProduct: COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE
* ```
*
* ### Preference Set Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const _default = new gcp.migrationcenter.PreferenceSet("default", {
* location: "us-central1",
* preferenceSetId: "preference-set-test",
* description: "Terraform integration test description",
* displayName: "Terraform integration test display",
* virtualMachinePreferences: {
* vmwareEnginePreferences: {
* cpuOvercommitRatio: 1.5,
* storageDeduplicationCompressionRatio: 1.3,
* commitmentPlan: "ON_DEMAND",
* },
* sizingOptimizationStrategy: "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* targetProduct: "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* commitmentPlan: "COMMITMENT_PLAN_ONE_YEAR",
* regionPreferences: {
* preferredRegions: ["us-central1"],
* },
* soleTenancyPreferences: {
* commitmentPlan: "ON_DEMAND",
* cpuOvercommitRatio: 1.2,
* hostMaintenancePolicy: "HOST_MAINTENANCE_POLICY_DEFAULT",
* nodeTypes: [{
* nodeName: "tf-test",
* }],
* },
* computeEnginePreferences: {
* licenseType: "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE",
* machinePreferences: {
* allowedMachineSeries: [{
* code: "C3",
* }],
* },
* },
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.migrationcenter.PreferenceSet("default",
* location="us-central1",
* preference_set_id="preference-set-test",
* description="Terraform integration test description",
* display_name="Terraform integration test display",
* virtual_machine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesArgs(
* vmware_engine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs(
* cpu_overcommit_ratio=1.5,
* storage_deduplication_compression_ratio=1.3,
* commitment_plan="ON_DEMAND",
* ),
* sizing_optimization_strategy="SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* target_product="COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* commitment_plan="COMMITMENT_PLAN_ONE_YEAR",
* region_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs(
* preferred_regions=["us-central1"],
* ),
* sole_tenancy_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs(
* commitment_plan="ON_DEMAND",
* cpu_overcommit_ratio=1.2,
* host_maintenance_policy="HOST_MAINTENANCE_POLICY_DEFAULT",
* node_types=[gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs(
* node_name="tf-test",
* )],
* ),
* compute_engine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs(
* license_type="LICENSE_TYPE_BRING_YOUR_OWN_LICENSE",
* machine_preferences=gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs(
* allowed_machine_series=[gcp.migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArgs(
* code="C3",
* )],
* ),
* ),
* ))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Gcp.MigrationCenter.PreferenceSet("default", new()
* {
* Location = "us-central1",
* PreferenceSetId = "preference-set-test",
* Description = "Terraform integration test description",
* DisplayName = "Terraform integration test display",
* VirtualMachinePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesArgs
* {
* VmwareEnginePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs
* {
* CpuOvercommitRatio = 1.5,
* StorageDeduplicationCompressionRatio = 1.3,
* CommitmentPlan = "ON_DEMAND",
* },
* SizingOptimizationStrategy = "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE",
* TargetProduct = "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE",
* CommitmentPlan = "COMMITMENT_PLAN_ONE_YEAR",
* RegionPreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs
* {
* PreferredRegions = new[]
* {
* "us-central1",
* },
* },
* SoleTenancyPreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs
* {
* CommitmentPlan = "ON_DEMAND",
* CpuOvercommitRatio = 1.2,
* HostMaintenancePolicy = "HOST_MAINTENANCE_POLICY_DEFAULT",
* NodeTypes = new[]
* {
* new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs
* {
* NodeName = "tf-test",
* },
* },
* },
* ComputeEnginePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs
* {
* LicenseType = "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE",
* MachinePreferences = new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs
* {
* AllowedMachineSeries = new[]
* {
* new Gcp.MigrationCenter.Inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArgs
* {
* Code = "C3",
* },
* },
* },
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/migrationcenter"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := migrationcenter.NewPreferenceSet(ctx, "default", &migrationcenter.PreferenceSetArgs{
* Location: pulumi.String("us-central1"),
* PreferenceSetId: pulumi.String("preference-set-test"),
* Description: pulumi.String("Terraform integration test description"),
* DisplayName: pulumi.String("Terraform integration test display"),
* VirtualMachinePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesArgs{
* VmwareEnginePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs{
* CpuOvercommitRatio: pulumi.Float64(1.5),
* StorageDeduplicationCompressionRatio: pulumi.Float64(1.3),
* CommitmentPlan: pulumi.String("ON_DEMAND"),
* },
* SizingOptimizationStrategy: pulumi.String("SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE"),
* TargetProduct: pulumi.String("COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE"),
* CommitmentPlan: pulumi.String("COMMITMENT_PLAN_ONE_YEAR"),
* RegionPreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs{
* PreferredRegions: pulumi.StringArray{
* pulumi.String("us-central1"),
* },
* },
* SoleTenancyPreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs{
* CommitmentPlan: pulumi.String("ON_DEMAND"),
* CpuOvercommitRatio: pulumi.Float64(1.2),
* HostMaintenancePolicy: pulumi.String("HOST_MAINTENANCE_POLICY_DEFAULT"),
* NodeTypes: migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArray{
* &migrationcenter.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs{
* NodeName: pulumi.String("tf-test"),
* },
* },
* },
* ComputeEnginePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs{
* LicenseType: pulumi.String("LICENSE_TYPE_BRING_YOUR_OWN_LICENSE"),
* MachinePreferences: &migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs{
* AllowedMachineSeries: migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArray{
* &migrationcenter.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArgs{
* Code: pulumi.String("C3"),
* },
* },
* },
* },
* },
* })
* 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.gcp.migrationcenter.PreferenceSet;
* import com.pulumi.gcp.migrationcenter.PreferenceSetArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs;
* import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs;
* 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 default_ = new PreferenceSet("default", PreferenceSetArgs.builder()
* .location("us-central1")
* .preferenceSetId("preference-set-test")
* .description("Terraform integration test description")
* .displayName("Terraform integration test display")
* .virtualMachinePreferences(PreferenceSetVirtualMachinePreferencesArgs.builder()
* .vmwareEnginePreferences(PreferenceSetVirtualMachinePreferencesVmwareEnginePreferencesArgs.builder()
* .cpuOvercommitRatio(1.5)
* .storageDeduplicationCompressionRatio(1.3)
* .commitmentPlan("ON_DEMAND")
* .build())
* .sizingOptimizationStrategy("SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE")
* .targetProduct("COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE")
* .commitmentPlan("COMMITMENT_PLAN_ONE_YEAR")
* .regionPreferences(PreferenceSetVirtualMachinePreferencesRegionPreferencesArgs.builder()
* .preferredRegions("us-central1")
* .build())
* .soleTenancyPreferences(PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs.builder()
* .commitmentPlan("ON_DEMAND")
* .cpuOvercommitRatio(1.2)
* .hostMaintenancePolicy("HOST_MAINTENANCE_POLICY_DEFAULT")
* .nodeTypes(PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs.builder()
* .nodeName("tf-test")
* .build())
* .build())
* .computeEnginePreferences(PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesArgs.builder()
* .licenseType("LICENSE_TYPE_BRING_YOUR_OWN_LICENSE")
* .machinePreferences(PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesArgs.builder()
* .allowedMachineSeries(PreferenceSetVirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesArgs.builder()
* .code("C3")
* .build())
* .build())
* .build())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:migrationcenter:PreferenceSet
* properties:
* location: us-central1
* preferenceSetId: preference-set-test
* description: Terraform integration test description
* displayName: Terraform integration test display
* virtualMachinePreferences:
* vmwareEnginePreferences:
* cpuOvercommitRatio: 1.5
* storageDeduplicationCompressionRatio: 1.3
* commitmentPlan: ON_DEMAND
* sizingOptimizationStrategy: SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE
* targetProduct: COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE
* commitmentPlan: COMMITMENT_PLAN_ONE_YEAR
* regionPreferences:
* preferredRegions:
* - us-central1
* soleTenancyPreferences:
* commitmentPlan: ON_DEMAND
* cpuOvercommitRatio: 1.2
* hostMaintenancePolicy: HOST_MAINTENANCE_POLICY_DEFAULT
* nodeTypes:
* - nodeName: tf-test
* computeEnginePreferences:
* licenseType: LICENSE_TYPE_BRING_YOUR_OWN_LICENSE
* machinePreferences:
* allowedMachineSeries:
* - code: C3
* ```
*
* ## Import
* PreferenceSet can be imported using any of these accepted formats:
* * `projects/{{project}}/locations/{{location}}/preferenceSets/{{preference_set_id}}`
* * `{{project}}/{{location}}/{{preference_set_id}}`
* * `{{location}}/{{preference_set_id}}`
* When using the `pulumi import` command, PreferenceSet can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:migrationcenter/preferenceSet:PreferenceSet default projects/{{project}}/locations/{{location}}/preferenceSets/{{preference_set_id}}
* ```
* ```sh
* $ pulumi import gcp:migrationcenter/preferenceSet:PreferenceSet default {{project}}/{{location}}/{{preference_set_id}}
* ```
* ```sh
* $ pulumi import gcp:migrationcenter/preferenceSet:PreferenceSet default {{location}}/{{preference_set_id}}
* ```
* @property description A description of the preference set.
* @property displayName User-friendly display name. Maximum length is 63 characters.
* @property location Part of `parent`. See documentation of `projectsId`.
* @property preferenceSetId Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression `a-z?`.
* - - -
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property virtualMachinePreferences VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.
* Structure is documented below.
*/
public data class PreferenceSetArgs(
public val description: Output? = null,
public val displayName: Output? = null,
public val location: Output? = null,
public val preferenceSetId: Output? = null,
public val project: Output? = null,
public val virtualMachinePreferences: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.migrationcenter.PreferenceSetArgs =
com.pulumi.gcp.migrationcenter.PreferenceSetArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.preferenceSetId(preferenceSetId?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.virtualMachinePreferences(
virtualMachinePreferences?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [PreferenceSetArgs].
*/
@PulumiTagMarker
public class PreferenceSetArgsBuilder internal constructor() {
private var description: Output? = null
private var displayName: Output? = null
private var location: Output? = null
private var preferenceSetId: Output? = null
private var project: Output? = null
private var virtualMachinePreferences: Output? = null
/**
* @param value A description of the preference set.
*/
@JvmName("lumnsabdfqhajnfn")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value User-friendly display name. Maximum length is 63 characters.
*/
@JvmName("tynpnmdsthvxqyqq")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value Part of `parent`. See documentation of `projectsId`.
*/
@JvmName("nakiskgmarxwuybf")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression `a-z?`.
* - - -
*/
@JvmName("yfvoldvuqncfvvnk")
public suspend fun preferenceSetId(`value`: Output) {
this.preferenceSetId = value
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("hpcljghnbdnnqwut")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.
* Structure is documented below.
*/
@JvmName("gdqbcyvhxpjmlqmj")
public suspend fun virtualMachinePreferences(`value`: Output) {
this.virtualMachinePreferences = value
}
/**
* @param value A description of the preference set.
*/
@JvmName("ftbfgjqfudjlwpmu")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value User-friendly display name. Maximum length is 63 characters.
*/
@JvmName("epxisgkavxtfybey")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayName = mapped
}
/**
* @param value Part of `parent`. See documentation of `projectsId`.
*/
@JvmName("lwwsbuffnjibaybe")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression `a-z?`.
* - - -
*/
@JvmName("fkbqolnluksevxlm")
public suspend fun preferenceSetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preferenceSetId = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("oaykvryjplkgfivq")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.
* Structure is documented below.
*/
@JvmName("ikaraynwyweidehp")
public suspend fun virtualMachinePreferences(`value`: PreferenceSetVirtualMachinePreferencesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualMachinePreferences = mapped
}
/**
* @param argument VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.
* Structure is documented below.
*/
@JvmName("yamtlmstgwwllesh")
public suspend fun virtualMachinePreferences(argument: suspend PreferenceSetVirtualMachinePreferencesArgsBuilder.() -> Unit) {
val toBeMapped = PreferenceSetVirtualMachinePreferencesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.virtualMachinePreferences = mapped
}
internal fun build(): PreferenceSetArgs = PreferenceSetArgs(
description = description,
displayName = displayName,
location = location,
preferenceSetId = preferenceSetId,
project = project,
virtualMachinePreferences = virtualMachinePreferences,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy