Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// *** 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.azure.desktopvirtualization;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.desktopvirtualization.ApplicationGroupArgs;
import com.pulumi.azure.desktopvirtualization.inputs.ApplicationGroupState;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages a Virtual Desktop Application Group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Virtual Desktop Application Groups can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:desktopvirtualization/applicationGroup:ApplicationGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup1/providers/Microsoft.DesktopVirtualization/applicationGroups/myapplicationgroup
* ```
*
*/
@ResourceType(type="azure:desktopvirtualization/applicationGroup:ApplicationGroup")
public class ApplicationGroup extends com.pulumi.resources.CustomResource {
/**
* Option to set the display name for the default sessionDesktop desktop when `type` is set to `Desktop`.
*
*/
@Export(name="defaultDesktopDisplayName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> defaultDesktopDisplayName;
/**
* @return Option to set the display name for the default sessionDesktop desktop when `type` is set to `Desktop`.
*
*/
public Output> defaultDesktopDisplayName() {
return Codegen.optional(this.defaultDesktopDisplayName);
}
/**
* Option to set a description for the Virtual Desktop Application Group.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Option to set a description for the Virtual Desktop Application Group.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* Option to set a friendly name for the Virtual Desktop Application Group.
*
*/
@Export(name="friendlyName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> friendlyName;
/**
* @return Option to set a friendly name for the Virtual Desktop Application Group.
*
*/
public Output> friendlyName() {
return Codegen.optional(this.friendlyName);
}
/**
* Resource ID for a Virtual Desktop Host Pool to associate with the Virtual Desktop Application Group. Changing the name forces a new resource to be created.
*
*/
@Export(name="hostPoolId", refs={String.class}, tree="[0]")
private Output hostPoolId;
/**
* @return Resource ID for a Virtual Desktop Host Pool to associate with the Virtual Desktop Application Group. Changing the name forces a new resource to be created.
*
*/
public Output hostPoolId() {
return this.hostPoolId;
}
/**
* The location/region where the Virtual Desktop Application Group is located. Changing this forces a new resource to be created.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The location/region where the Virtual Desktop Application Group is located. Changing this forces a new resource to be created.
*
*/
public Output location() {
return this.location;
}
/**
* The name of the Virtual Desktop Application Group. Changing the name forces a new resource to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the Virtual Desktop Application Group. Changing the name forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The name of the resource group in which to create the Virtual Desktop Application Group. Changing this forces a new resource to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the resource group in which to create the Virtual Desktop Application Group. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* A mapping of tags to assign to the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags to assign to the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Type of Virtual Desktop Application Group. Valid options are `RemoteApp` or `Desktop` application groups. Changing this forces a new resource to be created.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Type of Virtual Desktop Application Group. Valid options are `RemoteApp` or `Desktop` application groups. Changing this forces a new resource to be created.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ApplicationGroup(java.lang.String name) {
this(name, ApplicationGroupArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ApplicationGroup(java.lang.String name, ApplicationGroupArgs 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 ApplicationGroup(java.lang.String name, ApplicationGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:desktopvirtualization/applicationGroup:ApplicationGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ApplicationGroup(java.lang.String name, Output id, @Nullable ApplicationGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:desktopvirtualization/applicationGroup:ApplicationGroup", name, state, makeResourceOptions(options, id), false);
}
private static ApplicationGroupArgs makeArgs(ApplicationGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ApplicationGroupArgs.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())
.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 state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static ApplicationGroup get(java.lang.String name, Output id, @Nullable ApplicationGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ApplicationGroup(name, id, state, options);
}
}