@ConfigurationProperties(value="micronaut.application.oraclecloud.metadata") @Requires(env="oraclecloud") public class OracleCloudMetadataConfiguration extends java.lang.Object implements Toggleable
ComputePlatform.ORACLE_CLOUD
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_URL
The default url value.
|
static java.lang.String |
DEFAULT_VNIC_URL |
static java.lang.String |
PREFIX
Prefix for Oracle Cloud configuration metadata.
|
Constructor and Description |
---|
OracleCloudMetadataConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInstanceDocumentUrl() |
java.lang.String |
getMetadataUrl() |
java.lang.String |
getUrl() |
java.lang.String |
getVnicUrl()
* Default value ("http://169.254.169.254/opc/v1/vnics/").
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Default value (true).
|
void |
setInstanceDocumentUrl(java.lang.String instanceDocumentUrl) |
void |
setMetadataUrl(java.lang.String metadataUrl) |
void |
setUrl(java.lang.String url)
Default value ("http://169.254.169.254/opc/v1/instance/").
|
void |
setVnicUrl(java.lang.String vnicUrl) |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_URL
public static final java.lang.String DEFAULT_VNIC_URL
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
enabled
- Enable or disable the Oracle Cloud configurationpublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- The urlpublic java.lang.String getMetadataUrl()
public void setMetadataUrl(java.lang.String metadataUrl)
metadataUrl
- The metadata Urlpublic java.lang.String getInstanceDocumentUrl()
public void setInstanceDocumentUrl(java.lang.String instanceDocumentUrl)
instanceDocumentUrl
- The instance document Urlpublic java.lang.String getVnicUrl()
public void setVnicUrl(java.lang.String vnicUrl)
vnicUrl
- The instance document Url