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

com.pulumi.azurenative.migrate.GroupsOperation Maven / Gradle / Ivy

There is a newer version: 2.78.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.migrate;

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

/**
 * Group resource.
 * Azure REST API version: 2023-03-15.
 * 
 * Other available API versions: 2023-04-01-preview, 2023-05-01-preview.
 * 
 * ## Example Usage
 * ### GroupsOperations_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.GroupsOperation;
 * import com.pulumi.azurenative.migrate.GroupsOperationArgs;
 * 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 groupsOperation = new GroupsOperation("groupsOperation", GroupsOperationArgs.builder()
 *             .groupName("kuchatur-test")
 *             .groupType("Default")
 *             .projectName("app18700project")
 *             .provisioningState("Succeeded")
 *             .resourceGroupName("ayagrawrg")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:migrate:GroupsOperation kuchatur-test /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName} * ``` * */ @ResourceType(type="azure-native:migrate:GroupsOperation") public class GroupsOperation extends com.pulumi.resources.CustomResource { /** * If the assessments are in running state. * */ @Export(name="areAssessmentsRunning", refs={Boolean.class}, tree="[0]") private Output areAssessmentsRunning; /** * @return If the assessments are in running state. * */ public Output areAssessmentsRunning() { return this.areAssessmentsRunning; } /** * List of References to Assessments created on this group. * */ @Export(name="assessments", refs={List.class,String.class}, tree="[0,1]") private Output> assessments; /** * @return List of References to Assessments created on this group. * */ public Output> assessments() { return this.assessments; } /** * Time when this group was created. Date-Time represented in ISO-8601 format. * */ @Export(name="createdTimestamp", refs={String.class}, tree="[0]") private Output createdTimestamp; /** * @return Time when this group was created. Date-Time represented in ISO-8601 format. * */ public Output createdTimestamp() { return this.createdTimestamp; } /** * Whether the group has been created and is valid. * */ @Export(name="groupStatus", refs={String.class}, tree="[0]") private Output groupStatus; /** * @return Whether the group has been created and is valid. * */ public Output groupStatus() { return this.groupStatus; } /** * The type of group. * */ @Export(name="groupType", refs={String.class}, tree="[0]") private Output groupType; /** * @return The type of group. * */ public Output> groupType() { return Codegen.optional(this.groupType); } /** * Number of machines part of this group. * */ @Export(name="machineCount", refs={Integer.class}, tree="[0]") private Output machineCount; /** * @return Number of machines part of this group. * */ public Output machineCount() { return this.machineCount; } /** * 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 Codegen.optional(this.provisioningState); } /** * List of assessment types supported on this group. * */ @Export(name="supportedAssessmentTypes", refs={List.class,String.class}, tree="[0,1]") private Output> supportedAssessmentTypes; /** * @return List of assessment types supported on this group. * */ public Output>> supportedAssessmentTypes() { return Codegen.optional(this.supportedAssessmentTypes); } /** * 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; } /** * Time when this group was last updated. Date-Time represented in ISO-8601 format. * */ @Export(name="updatedTimestamp", refs={String.class}, tree="[0]") private Output updatedTimestamp; /** * @return Time when this group was last updated. Date-Time represented in ISO-8601 format. * */ public Output updatedTimestamp() { return this.updatedTimestamp; } /** * * @param name The _unique_ name of the resulting resource. */ public GroupsOperation(java.lang.String name) { this(name, GroupsOperationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public GroupsOperation(java.lang.String name, GroupsOperationArgs 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 GroupsOperation(java.lang.String name, GroupsOperationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:migrate:GroupsOperation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private GroupsOperation(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:migrate:GroupsOperation", name, null, makeResourceOptions(options, id), false); } private static GroupsOperationArgs makeArgs(GroupsOperationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? GroupsOperationArgs.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/v20191001:GroupsOperation").build()), Output.of(Alias.builder().type("azure-native:migrate/v20230315:GroupsOperation").build()), Output.of(Alias.builder().type("azure-native:migrate/v20230401preview:GroupsOperation").build()), Output.of(Alias.builder().type("azure-native:migrate/v20230501preview:GroupsOperation").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 GroupsOperation get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new GroupsOperation(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy