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

com.pulumi.azurenative.operationalinsights.inputs.WorkspaceSkuArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.operationalinsights.inputs;

import com.pulumi.azurenative.operationalinsights.enums.WorkspaceSkuNameEnum;
import com.pulumi.core.Either;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The SKU (tier) of a workspace.
 * 
 */
public final class WorkspaceSkuArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkspaceSkuArgs Empty = new WorkspaceSkuArgs();

    /**
     * The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
     * 
     */
    @Import(name="capacityReservationLevel")
    private @Nullable Output capacityReservationLevel;

    /**
     * @return The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
     * 
     */
    public Optional> capacityReservationLevel() {
        return Optional.ofNullable(this.capacityReservationLevel);
    }

    /**
     * The name of the SKU.
     * 
     */
    @Import(name="name", required=true)
    private Output> name;

    /**
     * @return The name of the SKU.
     * 
     */
    public Output> name() {
        return this.name;
    }

    private WorkspaceSkuArgs() {}

    private WorkspaceSkuArgs(WorkspaceSkuArgs $) {
        this.capacityReservationLevel = $.capacityReservationLevel;
        this.name = $.name;
    }

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

    public static final class Builder {
        private WorkspaceSkuArgs $;

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

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

        /**
         * @param capacityReservationLevel The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
         * 
         * @return builder
         * 
         */
        public Builder capacityReservationLevel(@Nullable Output capacityReservationLevel) {
            $.capacityReservationLevel = capacityReservationLevel;
            return this;
        }

        /**
         * @param capacityReservationLevel The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
         * 
         * @return builder
         * 
         */
        public Builder capacityReservationLevel(Integer capacityReservationLevel) {
            return capacityReservationLevel(Output.of(capacityReservationLevel));
        }

        /**
         * @param name The name of the SKU.
         * 
         * @return builder
         * 
         */
        public Builder name(Output> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the SKU.
         * 
         * @return builder
         * 
         */
        public Builder name(Either name) {
            return name(Output.of(name));
        }

        /**
         * @param name The name of the SKU.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Either.ofLeft(name));
        }

        /**
         * @param name The name of the SKU.
         * 
         * @return builder
         * 
         */
        public Builder name(WorkspaceSkuNameEnum name) {
            return name(Either.ofRight(name));
        }

        public WorkspaceSkuArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("WorkspaceSkuArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy