sdk/java/src/main/java/com/pulumi/ovh/Me/InstallationTemplatePartitionSchemePartition.java
// *** 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.ovh.Me;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.ovh.Me.InstallationTemplatePartitionSchemePartitionArgs;
import com.pulumi.ovh.Me.inputs.InstallationTemplatePartitionSchemePartitionState;
import com.pulumi.ovh.Utilities;
import java.lang.Integer;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * Use this resource to create a partition in the partition scheme of a custom installation template available for dedicated servers.
 * 
 * ## Example Usage
 * ```java
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.ovh.Me.InstallationTemplate;
 * import com.pulumi.ovh.Me.InstallationTemplateArgs;
 * import com.pulumi.ovh.Me.InstallationTemplatePartitionScheme;
 * import com.pulumi.ovh.Me.InstallationTemplatePartitionSchemeArgs;
 * import com.pulumi.ovh.Me.InstallationTemplatePartitionSchemePartition;
 * import com.pulumi.ovh.Me.InstallationTemplatePartitionSchemePartitionArgs;
 * 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 mytemplate = new InstallationTemplate(&#34;mytemplate&#34;, InstallationTemplateArgs.builder()        
 *             .baseTemplateName(&#34;centos7_64&#34;)
 *             .templateName(&#34;mytemplate&#34;)
 *             .defaultLanguage(&#34;fr&#34;)
 *             .build());
 * 
 *         var scheme = new InstallationTemplatePartitionScheme(&#34;scheme&#34;, InstallationTemplatePartitionSchemeArgs.builder()        
 *             .templateName(mytemplate.templateName())
 *             .priority(1)
 *             .build());
 * 
 *         var root = new InstallationTemplatePartitionSchemePartition(&#34;root&#34;, InstallationTemplatePartitionSchemePartitionArgs.builder()        
 *             .templateName(scheme.templateName())
 *             .schemeName(scheme.name())
 *             .mountpoint(&#34;/&#34;)
 *             .filesystem(&#34;ext4&#34;)
 *             .size(&#34;400&#34;)
 *             .order(1)
 *             .type(&#34;primary&#34;)
 *             .build());
 * 
 *     }
 * }
 * ```
 * 
 * ## Import
 * 
 * The resource can be imported using the `template_name`, `scheme_name`, `mountpoint` of the cluster, separated by &#34;/&#34; E.g., bash
 * 
 * ```sh
 *  $ pulumi import ovh:Me/installationTemplatePartitionSchemePartition:InstallationTemplatePartitionSchemePartition root template_name/scheme_name/mountpoint
 * ```
 * 
 */
@ResourceType(type="ovh:Me/installationTemplatePartitionSchemePartition:InstallationTemplatePartitionSchemePartition")
public class InstallationTemplatePartitionSchemePartition extends com.pulumi.resources.CustomResource {
    /**
     * Partition filesystem. Enum with possibles values:
     * - btrfs
     * - ext3
     * - ext4
     * - ntfs
     * - reiserfs
     * - swap
     * - ufs
     * - xfs
     * - zfs
     * 
     */
    @Export(name="filesystem", refs={String.class}, tree="[0]")
    private Output<String> filesystem;

    /**
     * @return Partition filesystem. Enum with possibles values:
     * - btrfs
     * - ext3
     * - ext4
     * - ntfs
     * - reiserfs
     * - swap
     * - ufs
     * - xfs
     * - zfs
     * 
     */
    public Output<String> filesystem() {
        return this.filesystem;
    }
    /**
     * partition mount point.
     * 
     */
    @Export(name="mountpoint", refs={String.class}, tree="[0]")
    private Output<String> mountpoint;

    /**
     * @return partition mount point.
     * 
     */
    public Output<String> mountpoint() {
        return this.mountpoint;
    }
    /**
     * step or order. specifies the creation order of the partition on the disk
     * 
     */
    @Export(name="order", refs={Integer.class}, tree="[0]")
    private Output<Integer> order;

    /**
     * @return step or order. specifies the creation order of the partition on the disk
     * 
     */
    public Output<Integer> order() {
        return this.order;
    }
    /**
     * raid partition type. Enum with possible values:
     * - raid0
     * - raid1
     * - raid10
     * - raid5
     * - raid6
     * 
     */
    @Export(name="raid", refs={String.class}, tree="[0]")
    private Output<String> raid;

    /**
     * @return raid partition type. Enum with possible values:
     * - raid0
     * - raid1
     * - raid10
     * - raid5
     * - raid6
     * 
     */
    public Output<String> raid() {
        return this.raid;
    }
    /**
     * The partition scheme name.
     * 
     */
    @Export(name="schemeName", refs={String.class}, tree="[0]")
    private Output<String> schemeName;

    /**
     * @return The partition scheme name.
     * 
     */
    public Output<String> schemeName() {
        return this.schemeName;
    }
    /**
     * size of partition in MB, 0 =&gt; rest of the space.
     * 
     */
    @Export(name="size", refs={Integer.class}, tree="[0]")
    private Output<Integer> size;

    /**
     * @return size of partition in MB, 0 =&gt; rest of the space.
     * 
     */
    public Output<Integer> size() {
        return this.size;
    }
    /**
     * The template name of the partition scheme.
     * 
     */
    @Export(name="templateName", refs={String.class}, tree="[0]")
    private Output<String> templateName;

    /**
     * @return The template name of the partition scheme.
     * 
     */
    public Output<String> templateName() {
        return this.templateName;
    }
    /**
     * partition type. Enum with possible values:
     * - lv
     * - primary
     * - logical
     * 
     */
    @Export(name="type", refs={String.class}, tree="[0]")
    private Output<String> type;

    /**
     * @return partition type. Enum with possible values:
     * - lv
     * - primary
     * - logical
     * 
     */
    public Output<String> type() {
        return this.type;
    }
    /**
     * The volume name needed for proxmox distribution
     * 
     */
    @Export(name="volumeName", refs={String.class}, tree="[0]")
    private Output<String> volumeName;

    /**
     * @return The volume name needed for proxmox distribution
     * 
     */
    public Output<String> volumeName() {
        return this.volumeName;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public InstallationTemplatePartitionSchemePartition(String name) {
        this(name, InstallationTemplatePartitionSchemePartitionArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public InstallationTemplatePartitionSchemePartition(String name, InstallationTemplatePartitionSchemePartitionArgs 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 InstallationTemplatePartitionSchemePartition(String name, InstallationTemplatePartitionSchemePartitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ovh:Me/installationTemplatePartitionSchemePartition:InstallationTemplatePartitionSchemePartition", name, args == null ? InstallationTemplatePartitionSchemePartitionArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private InstallationTemplatePartitionSchemePartition(String name, Output<String> id, @Nullable InstallationTemplatePartitionSchemePartitionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ovh:Me/installationTemplatePartitionSchemePartition:InstallationTemplatePartitionSchemePartition", name, state, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> 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 InstallationTemplatePartitionSchemePartition get(String name, Output<String> id, @Nullable InstallationTemplatePartitionSchemePartitionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new InstallationTemplatePartitionSchemePartition(name, id, state, options);
    }
}
