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