@ConfigurationProperties(value="micronaut.application.digitalocean.metadata") @Requires(env="digitalocean") public class DigitalOceanMetadataConfiguration extends Object implements Toggleable
ComputePlatform.DIGITAL_OCEAN
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static String |
DEFAULT_URL
The default url value.
|
static String |
PREFIX |
Constructor and Description |
---|
DigitalOceanMetadataConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getUrl() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Default value (true).
|
void |
setUrl(String url)
Default value ("http://169.254.169.254/metadata/v1.json").
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public static final String DEFAULT_URL
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
enabled
- Enable or disable the Amazon EC2 configurationpublic String getUrl()
public void setUrl(String url)
url
- The url