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

com.azure.resourcemanager.managementgroups.models.Status Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for ManagementGroups Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Management Groups API enables consolidation of multiple subscriptions/resources into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources. . Package tag package-2021-04.

There is a newer version: 1.0.0-beta.2
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.managementgroups.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/** The status of the Tenant Backfill. */
public enum Status {
    /** Enum value NotStarted. */
    NOT_STARTED("NotStarted"),

    /** Enum value NotStartedButGroupsExist. */
    NOT_STARTED_BUT_GROUPS_EXIST("NotStartedButGroupsExist"),

    /** Enum value Started. */
    STARTED("Started"),

    /** Enum value Failed. */
    FAILED("Failed"),

    /** Enum value Cancelled. */
    CANCELLED("Cancelled"),

    /** Enum value Completed. */
    COMPLETED("Completed");

    /** The actual serialized value for a Status instance. */
    private final String value;

    Status(String value) {
        this.value = value;
    }

    /**
     * Parses a serialized value to a Status instance.
     *
     * @param value the serialized value to parse.
     * @return the parsed Status object, or null if unable to parse.
     */
    @JsonCreator
    public static Status fromString(String value) {
        if (value == null) {
            return null;
        }
        Status[] items = Status.values();
        for (Status item : items) {
            if (item.toString().equalsIgnoreCase(value)) {
                return item;
            }
        }
        return null;
    }

    /** {@inheritDoc} */
    @JsonValue
    @Override
    public String toString() {
        return this.value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy