
com.pulumi.azurenative.migrate.BusinessCaseOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.migrate;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.migrate.BusinessCaseOperationArgs;
import com.pulumi.azurenative.migrate.outputs.ReportDetailsResponse;
import com.pulumi.azurenative.migrate.outputs.SettingsResponse;
import com.pulumi.azurenative.migrate.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Business case resource.
* Azure REST API version: 2023-04-01-preview.
*
* Other available API versions: 2023-05-01-preview, 2023-09-09-preview.
*
* ## Example Usage
* ### BusinessCaseOperations_Create_MaximumSet_Gen
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.migrate.BusinessCaseOperation;
* import com.pulumi.azurenative.migrate.BusinessCaseOperationArgs;
* import com.pulumi.azurenative.migrate.inputs.SettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.AzureSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.OnPremiseSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.ComputeSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.LinuxServerLicensingSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.VirtualizationSoftwareSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.WindowsServerLicensingSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.FacilitySettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.LaborSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.ManagementSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.HypervVirtualizationManagementSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.OtherManagementCostsSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.ThirdPartyManagementSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.VsphereManagementSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.NetworkSettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.SecuritySettingsArgs;
* import com.pulumi.azurenative.migrate.inputs.StorageSettingsArgs;
* 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 businessCaseOperation = new BusinessCaseOperation("businessCaseOperation", BusinessCaseOperationArgs.builder()
* .businessCaseName("sample-business-case")
* .projectName("multipleto8617project")
* .resourceGroupName("rgopenapi")
* .settings(SettingsArgs.builder()
* .azureSettings(AzureSettingsArgs.builder()
* .avsLaborCostPercentage(0)
* .businessCaseType("OptimizeForCost")
* .comfortFactor(29)
* .currency("USD")
* .discountPercentage(83)
* .iaasLaborCostPercentage(94)
* .infrastructureGrowthRate(83)
* .networkCostPercentage(40)
* .paasLaborCostPercentage(47)
* .perYearMigrationCompletionPercentage(Map.ofEntries(
* Map.entry("Year0", 20),
* Map.entry("Year1", 30),
* Map.entry("Year2", 60),
* Map.entry("Year3", 90)
* ))
* .performanceDataEndTime("2023-11-08T07:10:07.764Z")
* .performanceDataStartTime("2023-11-08T07:10:07.764Z")
* .performanceUtilizationPercentile(4)
* .savingsOption("RI3Year")
* .targetLocation("WestUs2")
* .wacc(79)
* .workloadDiscoverySource("Appliance")
* .build())
* .onPremiseSettings(OnPremiseSettingsArgs.builder()
* .computeSettings(ComputeSettingsArgs.builder()
* .hyperthreadCoreToMemoryRatio(12)
* .price(16)
* .rhelLinuxServerLicensing(LinuxServerLicensingSettingsArgs.builder()
* .licenseCost(9)
* .build())
* .sqlServerLicensing(SqlServerLicensingSettingsArgs.builder()
* .licenseCost(27)
* .softwareAssuranceCost(16)
* .version("Enterprise")
* .build())
* .suseLinuxServerLicensing(LinuxServerLicensingSettingsArgs.builder()
* .licenseCost(9)
* .build())
* .virtualizationSoftwareSettings(VirtualizationSoftwareSettingsArgs.builder()
* .licenseAndSupportList(VsphereLicenseArgs.builder()
* .basicSupportCost(22)
* .licenseCost(8)
* .licenseType("VSphereStandard")
* .productionSupportCost(22)
* .build())
* .numberOfPhysicalCoresPerLicense(17)
* .softwareAssuranceCost(14)
* .build())
* .windowsServerLicensing(WindowsServerLicensingSettingsArgs.builder()
* .licenseCost(9)
* .licensesPerCore(11)
* .softwareAssuranceCost(1)
* .build())
* .build())
* .facilitySettings(FacilitySettingsArgs.builder()
* .facilitiesCost(7)
* .build())
* .laborSettings(LaborSettingsArgs.builder()
* .hourlyAdminCost(25)
* .physicalServersPerAdmin(6)
* .virtualMachinesPerAdmin(24)
* .build())
* .managementSettings(ManagementSettingsArgs.builder()
* .hypervVirtualizationManagementSettings(HypervVirtualizationManagementSettingsArgs.builder()
* .licenseAndSupportList(HypervLicenseArgs.builder()
* .licenseCost(4)
* .licenseType("Standard")
* .build())
* .numberOfPhysicalCoresPerLicense(2)
* .softwareAssuranceCost(11)
* .build())
* .otherManagementCostsSettings(OtherManagementCostsSettingsArgs.builder()
* .dataProtectionCostPerServerPerYear(18)
* .monitoringCostPerServerPerYear(10)
* .patchingCostPerServerPerYear(18)
* .build())
* .thirdPartyManagementSettings(ThirdPartyManagementSettingsArgs.builder()
* .licenseCost(23)
* .supportCost(9)
* .build())
* .vsphereManagementSettings(VsphereManagementSettingsArgs.builder()
* .licenseAndSupportList(VsphereManagementLicenseArgs.builder()
* .basicSupportCost(1)
* .licenseCost(6)
* .licenseType("VSphereServerStandard")
* .productionSupportCost(18)
* .build())
* .build())
* .build())
* .networkSettings(NetworkSettingsArgs.builder()
* .hardwareSoftwareCostPercentage(50)
* .maintenanceCostPercentage(48)
* .build())
* .securitySettings(SecuritySettingsArgs.builder()
* .serverSecurityCostPerServerPerYear(14)
* .sqlServerSecurityCostPerServerPerYear(7)
* .build())
* .storageSettings(StorageSettingsArgs.builder()
* .costPerGbPerMonth(22)
* .maintainanceCostPercentageToAcquisitionCost(1)
* .build())
* .build())
* .build())
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:migrate:BusinessCaseOperation sample-business-case /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/businessCases/{businessCaseName}
* ```
*
*/
@ResourceType(type="azure-native:migrate:BusinessCaseOperation")
public class BusinessCaseOperation extends com.pulumi.resources.CustomResource {
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* The status of the last operation.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return The status of the last operation.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Gets the state of business case reports.
*
*/
@Export(name="reportStatusDetails", refs={List.class,ReportDetailsResponse.class}, tree="[0,1]")
private Output> reportStatusDetails;
/**
* @return Gets the state of business case reports.
*
*/
public Output> reportStatusDetails() {
return this.reportStatusDetails;
}
/**
* Business case settings.
*
*/
@Export(name="settings", refs={SettingsResponse.class}, tree="[0]")
private Output* @Nullable */ SettingsResponse> settings;
/**
* @return Business case settings.
*
*/
public Output> settings() {
return Codegen.optional(this.settings);
}
/**
* Business case state.
*
*/
@Export(name="state", refs={String.class}, tree="[0]")
private Output state;
/**
* @return Business case state.
*
*/
public Output state() {
return this.state;
}
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public BusinessCaseOperation(java.lang.String name) {
this(name, BusinessCaseOperationArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public BusinessCaseOperation(java.lang.String name, BusinessCaseOperationArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public BusinessCaseOperation(java.lang.String name, BusinessCaseOperationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:migrate:BusinessCaseOperation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private BusinessCaseOperation(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:migrate:BusinessCaseOperation", name, null, makeResourceOptions(options, id), false);
}
private static BusinessCaseOperationArgs makeArgs(BusinessCaseOperationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? BusinessCaseOperationArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:migrate/v20230401preview:BusinessCaseOperation").build()),
Output.of(Alias.builder().type("azure-native:migrate/v20230501preview:BusinessCaseOperation").build()),
Output.of(Alias.builder().type("azure-native:migrate/v20230909preview:BusinessCaseOperation").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static BusinessCaseOperation get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new BusinessCaseOperation(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy