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

com.azure.resourcemanager.storage.models.AccountStatuses Maven / Gradle / Ivy

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.storage.models;

/** An instance of this class stores the availability of a storage account. */
public class AccountStatuses {
    private final AccountStatus primary;
    private final AccountStatus secondary;

    /**
     * Creates an instance of AccountStatuses class.
     *
     * @param primary the status of the primary location
     * @param secondary the status of the secondary location
     */
    public AccountStatuses(AccountStatus primary, AccountStatus secondary) {
        this.primary = primary;
        this.secondary = secondary;
    }

    /**
     * @return the status indicating whether the primary location of the storage account is available or unavailable.
     */
    public AccountStatus primary() {
        return primary;
    }

    /**
     * @return the status indicating whether the secondary location of the storage account is available or unavailable.
     *     Only available if the accountType is StandardGRS or StandardRAGRS.
     */
    public AccountStatus secondary() {
        return secondary;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy