
com.pulumi.azurenative.labservices.LabAccount 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.labservices;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.labservices.LabAccountArgs;
import com.pulumi.azurenative.labservices.outputs.LatestOperationResultResponse;
import com.pulumi.azurenative.labservices.outputs.SizeConfigurationPropertiesResponse;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Represents a lab account.
* Azure REST API version: 2018-10-15. Prior API version in Azure Native 1.x: 2018-10-15.
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:labservices:LabAccount myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
* ```
*
*/
@ResourceType(type="azure-native:labservices:LabAccount")
public class LabAccount extends com.pulumi.resources.CustomResource {
/**
* Represents if region selection is enabled
*
*/
@Export(name="enabledRegionSelection", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> enabledRegionSelection;
/**
* @return Represents if region selection is enabled
*
*/
public Output> enabledRegionSelection() {
return Codegen.optional(this.enabledRegionSelection);
}
/**
* The details of the latest operation. ex: status, error
*
*/
@Export(name="latestOperationResult", refs={LatestOperationResultResponse.class}, tree="[0]")
private Output latestOperationResult;
/**
* @return The details of the latest operation. ex: status, error
*
*/
public Output latestOperationResult() {
return this.latestOperationResult;
}
/**
* The location of the resource.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> location;
/**
* @return The location of the resource.
*
*/
public Output> location() {
return Codegen.optional(this.location);
}
/**
* 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 provisioning status of the resource.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> provisioningState;
/**
* @return The provisioning status of the resource.
*
*/
public Output> provisioningState() {
return Codegen.optional(this.provisioningState);
}
/**
* Represents the size configuration under the lab account
*
*/
@Export(name="sizeConfiguration", refs={SizeConfigurationPropertiesResponse.class}, tree="[0]")
private Output sizeConfiguration;
/**
* @return Represents the size configuration under the lab account
*
*/
public Output sizeConfiguration() {
return this.sizeConfiguration;
}
/**
* The tags of the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return The tags of the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The type of the resource.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource.
*
*/
public Output type() {
return this.type;
}
/**
* The unique immutable identifier of a resource (Guid).
*
*/
@Export(name="uniqueIdentifier", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> uniqueIdentifier;
/**
* @return The unique immutable identifier of a resource (Guid).
*
*/
public Output> uniqueIdentifier() {
return Codegen.optional(this.uniqueIdentifier);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public LabAccount(java.lang.String name) {
this(name, LabAccountArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public LabAccount(java.lang.String name, LabAccountArgs 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 LabAccount(java.lang.String name, LabAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:labservices:LabAccount", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private LabAccount(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:labservices:LabAccount", name, null, makeResourceOptions(options, id), false);
}
private static LabAccountArgs makeArgs(LabAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? LabAccountArgs.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:labservices/v20181015:LabAccount").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 LabAccount get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new LabAccount(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy