com.azure.resourcemanager.storage.models.AccountStatuses Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storage Show documentation
Show all versions of azure-resourcemanager-storage Show documentation
This package contains Microsoft Azure Storage Management SDK.
// 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