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

com.azure.resourcemanager.compute.models.ComputeUsageUnit Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Compute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.44.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.compute.models;

import com.azure.core.util.ExpandableStringEnum;

import java.util.Collection;

/** Compute usage units. */
public final class ComputeUsageUnit extends ExpandableStringEnum {
    /** Static value Count for ComputeUsageUnit. */
    public static final ComputeUsageUnit COUNT = fromString("Count");

    /** Static value Bytes for ComputeUsageUnit. */
    public static final ComputeUsageUnit BYTES = fromString("Bytes");

    /** Static value Seconds for ComputeUsageUnit. */
    public static final ComputeUsageUnit SECONDS = fromString("Seconds");

    /** Static value Percent for ComputeUsageUnit. */
    public static final ComputeUsageUnit PERCENT = fromString("Percent");

    /** Static value CountsPerSecond for ComputeUsageUnit. */
    public static final ComputeUsageUnit COUNTS_PER_SECOND = fromString("CountsPerSecond");

    /** Static value BytesPerSecond for ComputeUsageUnit. */
    public static final ComputeUsageUnit BYTES_PER_SECOND = fromString("BytesPerSecond");

    /**
     * Creates or finds a compute usage unit based on its name.
     *
     * @param name a name
     * @return a corresponding ComputeUsageUnit
     */
    public static ComputeUsageUnit fromString(String name) {
        return fromString(name, ComputeUsageUnit.class);
    }

    /** @return known compute usage units */
    public Collection values() {
        return values(ComputeUsageUnit.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy