Note, not all services may be available in all regions.
| Modifier and Type | Field and Description |
|---|---|
| public static final Region | |
| private static final Map | |
| private static final Map | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| pack-priv static volatile String | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| private static volatile boolean | |
| private static volatile boolean | |
| private static volatile boolean | |
| private static volatile boolean | |
| private static volatile boolean | |
| pack-priv static volatile boolean | |
| private static volatile boolean | |
| public static final Region | |
| private static volatile boolean | |
| private static final Map | |
| private static final ReentrantReadWriteLock | |
| private static final Logger | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| private static volatile String | |
| private static final String | |
| private static final String | |
| private static final Set | |
| private static final Lock | |
| private final Realm | realm
Get the realm this region belongs to. |
| private final String | regionCode
The region key as defined in https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm or null if none. |
| public static volatile Region | |
| private final String | regionId
The region identifier as defined in https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm |
| private static final String | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| private static final long | |
| private static final Map | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| public static final Region | |
| private static final Lock |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the value0 if the regionId of the compared Region is equal to the regionId
of this Region; a value less than 0 if the regionId of this Region is
lexicographically less than the regionId of the compared Region; and a value greater than
0 if the regionId of this Region is lexicographically greater than the regionId
of the compared Region.The Region to be compared. other)Implements java. Compares to regions lexicographically based on their regionId. |
| public static void | enableInstanceMetadataService()
Enables contact to IMDS (Instance Metadata Service, only available on OCI instances) if user decides to opt-in. |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static String | Returns: The endpoint.The service. service, Region The region. region)Creates a default endpoint URL for the given service in the given region. |
| public static String | Returns: The endpoint.The service. service, String The region ID. regionId)Creates a default endpoint URL for the given service in the given region. |
| public static Region | Returns: The Region object.The region code. regionCode)Returns the Region object from the public region code. |
| public static Region | Returns: The Region object.The region code or id. regionCodeOrId)Returns the Region object from the public region code or id. Throws IllegalArgumentException if the region code or id is not known. |
| public static Region | Returns: The Region object.The region ID. regionId)Returns the Region object from the canonical public region ID. Throws IllegalArgumentException if the region ID is not known. |
| private static String | |
| private static String | |
| public Optional | Returns: The endpoint for the given service, or empty if the service endpoint is not known.The service. service)Resolves a service name to its endpoint in the region, if available. |
| private static String | |
| public Realm | |
| private static Region | |
| private static Optional | |
| public String | |
| public static Region | |
| public static Region | |
| private static Region | |
| public String | |
| public int | |
| public static boolean | |
| public static boolean | Returns: true if service is enabled or else false.If Alloy config exists, read the config and check if service is enabled. |
| private static Optional | |
| private static Optional | |
| private static Optional | |
| private static void | readAlloyRegionConfigFile()
Registers region, sets hasUsedAlloyConfigFile status to true and stores the alloy enabled services to OCI_SDK_ENABLED_SERVICES_SET. |
| private static void | |
| private static void | |
| public static Region | |
| public static Region | Returns: The registered region (or existing one if found).The region ID. regionId, final Realm The realm of the new region. realm, String The 3-letter region code returned by the instance metadata service as the
'region' value, if it differs from regionId. This is only needed for very early regions. regionCode)Register a new region. |
| public static Region | Returns: The registered region (or existing one if found).The region ID. regionId, final Realm The realm of the new region. realm, String The 3-letter region code returned by the instance metadata service as the
'region' value, if it differs from regionId. This is only needed for very early regions. regionCode, boolean 'true' if region is from alloy configuration. isAlloyRegion)Register a new region. |
| private static void | |
| public static boolean | Returns: true if response from IMDS was receivedSend request to IMDS (Instance Metadata Service, only available on OCI instances), registers region, and sets hasUsedInstanceMetadataService = true. |
| private static void | registerRegionWithDefaultRealm(String regionId)
Registers region using regionId and default realm env var |
| pack-priv static void | |
| public static void | skipInstanceMetadataService()
Instructs the SDK to not contact the IMDS (Instance Metadata Service, only available on OCI instances). |
| public String | |
| public static Region | |
| public static Region[] | Returns: Known regionsReturn all known Regions in this version of the SDK, except possibly the region returned by IMDS (Instance Metadata Service, only available on OCI instances), since IMDS is not automatically contacted by this method. |