Share via


AzureCloud Class

public final class AzureCloud
extends ExpandableStringEnum<AzureCloud>

An expandable enum that describes Azure cloud environment.

Field Summary

Modifier and Type Field and Description
static final AzureCloud AZURE_CHINA_CLOUD

Azure China cloud.

static final AzureCloud AZURE_PUBLIC_CLOUD

Azure public cloud.

static final AzureCloud AZURE_US_GOVERNMENT_CLOUD

Azure US government cloud.

Constructor Summary

Constructor Description
AzureCloud()

Deprecated

Use one of the constants or the fromString(String cloudName) factory method.

Creates a new instance of AzureCloud without a #toString() value.

Method Summary

Modifier and Type Method and Description
static AzureCloud fromString(String cloudName)

Creates or finds an AzureCloud from its string representation.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AZURE_CHINA_CLOUD

public static final AzureCloud AZURE_CHINA_CLOUD

Azure China cloud.

AZURE_PUBLIC_CLOUD

public static final AzureCloud AZURE_PUBLIC_CLOUD

Azure public cloud.

AZURE_US_GOVERNMENT_CLOUD

public static final AzureCloud AZURE_US_GOVERNMENT_CLOUD

Azure US government cloud.

Constructor Details

AzureCloud

@Deprecated
public AzureCloud()

Deprecated

Use one of the constants or the fromString(String cloudName) factory method.

Creates a new instance of AzureCloud without a #toString() value.

This constructor shouldn't be called as it will produce a AzureCloud which doesn't have a String enum value.

Method Details

fromString

public static AzureCloud fromString(String cloudName)

Creates or finds an AzureCloud from its string representation.

Parameters:

cloudName - cloud name to look for

Returns:

the corresponding AzureCloud

Applies to