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

com.pulumi.azurenative.desktopvirtualization.Application Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.desktopvirtualization;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.desktopvirtualization.ApplicationArgs;
import com.pulumi.azurenative.desktopvirtualization.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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Schema for Application properties.
 * Azure REST API version: 2022-09-09. Prior API version in Azure Native 1.x: 2021-02-01-preview.
 * 
 * Other available API versions: 2022-10-14-preview, 2023-07-07-preview, 2023-09-05, 2023-10-04-preview, 2023-11-01-preview, 2024-01-16-preview, 2024-03-06-preview, 2024-04-03, 2024-04-08-preview.
 * 
 * ## Example Usage
 * ### Application_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.desktopvirtualization.Application;
 * import com.pulumi.azurenative.desktopvirtualization.ApplicationArgs;
 * 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 application = new Application("application", ApplicationArgs.builder()
 *             .applicationGroupName("applicationGroup1")
 *             .applicationName("application1")
 *             .commandLineArguments("arguments")
 *             .commandLineSetting("Allow")
 *             .description("des1")
 *             .filePath("path")
 *             .friendlyName("friendly")
 *             .iconIndex(1)
 *             .iconPath("icon")
 *             .resourceGroupName("resourceGroup1")
 *             .showInPortal(true)
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:desktopvirtualization:Application applicationGroup1/application1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName} * ``` * */ @ResourceType(type="azure-native:desktopvirtualization:Application") public class Application extends com.pulumi.resources.CustomResource { /** * Resource Type of Application. * */ @Export(name="applicationType", refs={String.class}, tree="[0]") private Output applicationType; /** * @return Resource Type of Application. * */ public Output> applicationType() { return Codegen.optional(this.applicationType); } /** * Command Line Arguments for Application. * */ @Export(name="commandLineArguments", refs={String.class}, tree="[0]") private Output commandLineArguments; /** * @return Command Line Arguments for Application. * */ public Output> commandLineArguments() { return Codegen.optional(this.commandLineArguments); } /** * Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all. * */ @Export(name="commandLineSetting", refs={String.class}, tree="[0]") private Output commandLineSetting; /** * @return Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all. * */ public Output commandLineSetting() { return this.commandLineSetting; } /** * Description of Application. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Description of Application. * */ public Output> description() { return Codegen.optional(this.description); } /** * Specifies a path for the executable file for the application. * */ @Export(name="filePath", refs={String.class}, tree="[0]") private Output filePath; /** * @return Specifies a path for the executable file for the application. * */ public Output> filePath() { return Codegen.optional(this.filePath); } /** * Friendly name of Application. * */ @Export(name="friendlyName", refs={String.class}, tree="[0]") private Output friendlyName; /** * @return Friendly name of Application. * */ public Output> friendlyName() { return Codegen.optional(this.friendlyName); } /** * the icon a 64 bit string as a byte array. * */ @Export(name="iconContent", refs={String.class}, tree="[0]") private Output iconContent; /** * @return the icon a 64 bit string as a byte array. * */ public Output iconContent() { return this.iconContent; } /** * Hash of the icon. * */ @Export(name="iconHash", refs={String.class}, tree="[0]") private Output iconHash; /** * @return Hash of the icon. * */ public Output iconHash() { return this.iconHash; } /** * Index of the icon. * */ @Export(name="iconIndex", refs={Integer.class}, tree="[0]") private Output iconIndex; /** * @return Index of the icon. * */ public Output> iconIndex() { return Codegen.optional(this.iconIndex); } /** * Path to icon. * */ @Export(name="iconPath", refs={String.class}, tree="[0]") private Output iconPath; /** * @return Path to icon. * */ public Output> iconPath() { return Codegen.optional(this.iconPath); } /** * Specifies the package application Id for MSIX applications * */ @Export(name="msixPackageApplicationId", refs={String.class}, tree="[0]") private Output msixPackageApplicationId; /** * @return Specifies the package application Id for MSIX applications * */ public Output> msixPackageApplicationId() { return Codegen.optional(this.msixPackageApplicationId); } /** * Specifies the package family name for MSIX applications * */ @Export(name="msixPackageFamilyName", refs={String.class}, tree="[0]") private Output msixPackageFamilyName; /** * @return Specifies the package family name for MSIX applications * */ public Output> msixPackageFamilyName() { return Codegen.optional(this.msixPackageFamilyName); } /** * 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; } /** * ObjectId of Application. (internal use) * */ @Export(name="objectId", refs={String.class}, tree="[0]") private Output objectId; /** * @return ObjectId of Application. (internal use) * */ public Output objectId() { return this.objectId; } /** * Specifies whether to show the RemoteApp program in the RD Web Access server. * */ @Export(name="showInPortal", refs={Boolean.class}, tree="[0]") private Output showInPortal; /** * @return Specifies whether to show the RemoteApp program in the RD Web Access server. * */ public Output> showInPortal() { return Codegen.optional(this.showInPortal); } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ 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 Application(java.lang.String name) { this(name, ApplicationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Application(java.lang.String name, ApplicationArgs 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 Application(java.lang.String name, ApplicationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:desktopvirtualization:Application", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Application(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:desktopvirtualization:Application", name, null, makeResourceOptions(options, id), false); } private static ApplicationArgs makeArgs(ApplicationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ApplicationArgs.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:desktopvirtualization/v20190123preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20190924preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20191210preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20200921preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201019preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201102preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201110preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210114preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210201preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210309preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210401preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210712:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210903preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220210preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220401preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220909:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20221014preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20230707preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20230905:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20231004preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20231101preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240116preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240306preview:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240403:Application").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240408preview:Application").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 Application get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Application(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy