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

com.ovhcloud.pulumi.ovh.Me.InstallationTemplatePartitionSchemeHardwareRaidArgs Maven / Gradle / Ivy

There is a newer version: 1.4.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.ovhcloud.pulumi.ovh.Me;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class InstallationTemplatePartitionSchemeHardwareRaidArgs extends com.pulumi.resources.ResourceArgs {

    public static final InstallationTemplatePartitionSchemeHardwareRaidArgs Empty = new InstallationTemplatePartitionSchemeHardwareRaidArgs();

    /**
     * Disk List. Syntax is cX:dY for disks and [cX:dY,cX:dY] for groups. With X and Y resp. the controller id and the disk id.
     * 
     */
    @Import(name="disks", required=true)
    private Output> disks;

    /**
     * @return Disk List. Syntax is cX:dY for disks and [cX:dY,cX:dY] for groups. With X and Y resp. the controller id and the disk id.
     * 
     */
    public Output> disks() {
        return this.disks;
    }

    /**
     * RAID mode (raid0, raid1, raid10, raid5, raid50, raid6, raid60).
     * 
     */
    @Import(name="mode", required=true)
    private Output mode;

    /**
     * @return RAID mode (raid0, raid1, raid10, raid5, raid50, raid6, raid60).
     * 
     */
    public Output mode() {
        return this.mode;
    }

    /**
     * Hardware RAID name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Hardware RAID name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The partition scheme name.
     * 
     */
    @Import(name="schemeName", required=true)
    private Output schemeName;

    /**
     * @return The partition scheme name.
     * 
     */
    public Output schemeName() {
        return this.schemeName;
    }

    /**
     * Specifies the creation order of the hardware RAID.
     * 
     */
    @Import(name="step", required=true)
    private Output step;

    /**
     * @return Specifies the creation order of the hardware RAID.
     * 
     */
    public Output step() {
        return this.step;
    }

    /**
     * The template name of the partition scheme.
     * 
     */
    @Import(name="templateName", required=true)
    private Output templateName;

    /**
     * @return The template name of the partition scheme.
     * 
     */
    public Output templateName() {
        return this.templateName;
    }

    private InstallationTemplatePartitionSchemeHardwareRaidArgs() {}

    private InstallationTemplatePartitionSchemeHardwareRaidArgs(InstallationTemplatePartitionSchemeHardwareRaidArgs $) {
        this.disks = $.disks;
        this.mode = $.mode;
        this.name = $.name;
        this.schemeName = $.schemeName;
        this.step = $.step;
        this.templateName = $.templateName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(InstallationTemplatePartitionSchemeHardwareRaidArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private InstallationTemplatePartitionSchemeHardwareRaidArgs $;

        public Builder() {
            $ = new InstallationTemplatePartitionSchemeHardwareRaidArgs();
        }

        public Builder(InstallationTemplatePartitionSchemeHardwareRaidArgs defaults) {
            $ = new InstallationTemplatePartitionSchemeHardwareRaidArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param disks Disk List. Syntax is cX:dY for disks and [cX:dY,cX:dY] for groups. With X and Y resp. the controller id and the disk id.
         * 
         * @return builder
         * 
         */
        public Builder disks(Output> disks) {
            $.disks = disks;
            return this;
        }

        /**
         * @param disks Disk List. Syntax is cX:dY for disks and [cX:dY,cX:dY] for groups. With X and Y resp. the controller id and the disk id.
         * 
         * @return builder
         * 
         */
        public Builder disks(List disks) {
            return disks(Output.of(disks));
        }

        /**
         * @param disks Disk List. Syntax is cX:dY for disks and [cX:dY,cX:dY] for groups. With X and Y resp. the controller id and the disk id.
         * 
         * @return builder
         * 
         */
        public Builder disks(String... disks) {
            return disks(List.of(disks));
        }

        /**
         * @param mode RAID mode (raid0, raid1, raid10, raid5, raid50, raid6, raid60).
         * 
         * @return builder
         * 
         */
        public Builder mode(Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode RAID mode (raid0, raid1, raid10, raid5, raid50, raid6, raid60).
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param name Hardware RAID name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Hardware RAID name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param schemeName The partition scheme name.
         * 
         * @return builder
         * 
         */
        public Builder schemeName(Output schemeName) {
            $.schemeName = schemeName;
            return this;
        }

        /**
         * @param schemeName The partition scheme name.
         * 
         * @return builder
         * 
         */
        public Builder schemeName(String schemeName) {
            return schemeName(Output.of(schemeName));
        }

        /**
         * @param step Specifies the creation order of the hardware RAID.
         * 
         * @return builder
         * 
         */
        public Builder step(Output step) {
            $.step = step;
            return this;
        }

        /**
         * @param step Specifies the creation order of the hardware RAID.
         * 
         * @return builder
         * 
         */
        public Builder step(Integer step) {
            return step(Output.of(step));
        }

        /**
         * @param templateName The template name of the partition scheme.
         * 
         * @return builder
         * 
         */
        public Builder templateName(Output templateName) {
            $.templateName = templateName;
            return this;
        }

        /**
         * @param templateName The template name of the partition scheme.
         * 
         * @return builder
         * 
         */
        public Builder templateName(String templateName) {
            return templateName(Output.of(templateName));
        }

        public InstallationTemplatePartitionSchemeHardwareRaidArgs build() {
            if ($.disks == null) {
                throw new MissingRequiredPropertyException("InstallationTemplatePartitionSchemeHardwareRaidArgs", "disks");
            }
            if ($.mode == null) {
                throw new MissingRequiredPropertyException("InstallationTemplatePartitionSchemeHardwareRaidArgs", "mode");
            }
            if ($.schemeName == null) {
                throw new MissingRequiredPropertyException("InstallationTemplatePartitionSchemeHardwareRaidArgs", "schemeName");
            }
            if ($.step == null) {
                throw new MissingRequiredPropertyException("InstallationTemplatePartitionSchemeHardwareRaidArgs", "step");
            }
            if ($.templateName == null) {
                throw new MissingRequiredPropertyException("InstallationTemplatePartitionSchemeHardwareRaidArgs", "templateName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy