Class DigitalOceanMetadataConfiguration

java.lang.Object
io.micronaut.discovery.cloud.digitalocean.DigitalOceanMetadataConfiguration
All Implemented Interfaces:
Toggleable

@ConfigurationProperties("micronaut.application.digitalocean.metadata") @Requires(env="digitalocean") public class DigitalOceanMetadataConfiguration extends Object implements Toggleable
Default configuration for retrieving Digital Ocean metadata for ComputePlatform.DIGITAL_OCEAN.
Since:
1.1
Author:
Alvaro Sanchez-Mariscal
  • Field Details

  • Constructor Details

    • DigitalOceanMetadataConfiguration

      public DigitalOceanMetadataConfiguration()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Toggleable
      Returns:
      Whether the Amazon EC2 configuration is enabled
    • setEnabled

      public void setEnabled(boolean enabled)
      Default value (true).
      Parameters:
      enabled - Enable or disable the Amazon EC2 configuration
    • getUrl

      public String getUrl()
      Returns:
      The Url
    • setUrl

      public void setUrl(String url)
      Parameters:
      url - The url