Class OracleCloudMetadataConfiguration

java.lang.Object
io.micronaut.discovery.cloud.oraclecloud.OracleCloudMetadataConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable

@ConfigurationProperties("micronaut.application.oraclecloud.metadata") @Requires(env="oraclecloud") @Requires(classes=io.micronaut.runtime.ApplicationConfiguration.class) @Primary public class OracleCloudMetadataConfiguration extends Object implements io.micronaut.core.util.Toggleable
Default configuration for retrieving Oracle Cloud metadata for ComputePlatform.ORACLE_CLOUD.
Since:
1.2.0
Author:
Todd Sharp
  • Field Details

  • Constructor Details

    • OracleCloudMetadataConfiguration

      public OracleCloudMetadataConfiguration()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      Whether the Oracle Cloud configuration is enabled
    • setEnabled

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

      public String getUrl()
      Returns:
      The Url
    • setUrl

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

      public String getMetadataUrl()
      Returns:
      The metadata Url
    • setMetadataUrl

      public void setMetadataUrl(String metadataUrl)
      Parameters:
      metadataUrl - The metadata Url
    • getInstanceDocumentUrl

      public String getInstanceDocumentUrl()
      Returns:
      The instance document Url
    • setInstanceDocumentUrl

      public void setInstanceDocumentUrl(String instanceDocumentUrl)
      Parameters:
      instanceDocumentUrl - The instance document Url
    • getVnicUrl

      public String getVnicUrl()
      Returns:
      The VNIC Url
    • setVnicUrl

      public void setVnicUrl(String vnicUrl)
      Parameters:
      vnicUrl - The instance document Url