com.pulumi.azurenative.labservices.Environment 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.EnvironmentArgs;
import com.pulumi.azurenative.labservices.outputs.LatestOperationResultResponse;
import com.pulumi.azurenative.labservices.outputs.NetworkInterfaceResponse;
import com.pulumi.azurenative.labservices.outputs.ResourceSetResponse;
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 an environment instance
* 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:Environment myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
* ```
*
*/
@ResourceType(type="azure-native:labservices:Environment")
public class Environment extends com.pulumi.resources.CustomResource {
/**
* The name or email address of the user who has claimed the environment
*
*/
@Export(name="claimedByUserName", refs={String.class}, tree="[0]")
private Output claimedByUserName;
/**
* @return The name or email address of the user who has claimed the environment
*
*/
public Output claimedByUserName() {
return this.claimedByUserName;
}
/**
* The AAD object Id of the user who has claimed the environment
*
*/
@Export(name="claimedByUserObjectId", refs={String.class}, tree="[0]")
private Output claimedByUserObjectId;
/**
* @return The AAD object Id of the user who has claimed the environment
*
*/
public Output claimedByUserObjectId() {
return this.claimedByUserObjectId;
}
/**
* The user principal Id of the user who has claimed the environment
*
*/
@Export(name="claimedByUserPrincipalId", refs={String.class}, tree="[0]")
private Output claimedByUserPrincipalId;
/**
* @return The user principal Id of the user who has claimed the environment
*
*/
public Output claimedByUserPrincipalId() {
return this.claimedByUserPrincipalId;
}
/**
* Is the environment claimed or not
*
*/
@Export(name="isClaimed", refs={Boolean.class}, tree="[0]")
private Output isClaimed;
/**
* @return Is the environment claimed or not
*
*/
public Output isClaimed() {
return this.isClaimed;
}
/**
* Last known power state of the environment
*
*/
@Export(name="lastKnownPowerState", refs={String.class}, tree="[0]")
private Output lastKnownPowerState;
/**
* @return Last known power state of the environment
*
*/
public Output lastKnownPowerState() {
return this.lastKnownPowerState;
}
/**
* 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;
}
/**
* Network details of the environment
*
*/
@Export(name="networkInterface", refs={NetworkInterfaceResponse.class}, tree="[0]")
private Output networkInterface;
/**
* @return Network details of the environment
*
*/
public Output networkInterface() {
return this.networkInterface;
}
/**
* When the password was last reset on the environment.
*
*/
@Export(name="passwordLastReset", refs={String.class}, tree="[0]")
private Output passwordLastReset;
/**
* @return When the password was last reset on the environment.
*
*/
public Output passwordLastReset() {
return this.passwordLastReset;
}
/**
* 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);
}
/**
* The set of a VM and the setting id it was created for
*
*/
@Export(name="resourceSets", refs={ResourceSetResponse.class}, tree="[0]")
private Output* @Nullable */ ResourceSetResponse> resourceSets;
/**
* @return The set of a VM and the setting id it was created for
*
*/
public Output> resourceSets() {
return Codegen.optional(this.resourceSets);
}
/**
* 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);
}
/**
* How long the environment has been used by a lab user
*
*/
@Export(name="totalUsage", refs={String.class}, tree="[0]")
private Output totalUsage;
/**
* @return How long the environment has been used by a lab user
*
*/
public Output totalUsage() {
return this.totalUsage;
}
/**
* 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 Environment(java.lang.String name) {
this(name, EnvironmentArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Environment(java.lang.String name, EnvironmentArgs 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 Environment(java.lang.String name, EnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:labservices:Environment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Environment(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:labservices:Environment", name, null, makeResourceOptions(options, id), false);
}
private static EnvironmentArgs makeArgs(EnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? EnvironmentArgs.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:Environment").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 Environment get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Environment(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy