Class ConfigItem

java.lang.Object
com.gooddata.sdk.model.hierarchicalconfig.ConfigItem

public class ConfigItem
extends java.lang.Object
Contains information about hierarchical configuration object aka platform setting aka feature flag. Purpose of config item is carrying information about some specific feature of Gooddata platform.
  • Field Details

  • Constructor Details

    • ConfigItem

      public ConfigItem​(java.lang.String key, java.lang.String value)
      Creates new config item with given key/name and value.
      Parameters:
      key - unique key/name of config item
      value - value of config item
  • Method Details

    • getKey

      public java.lang.String getKey()
      Get unique key/name of config item. The same as getName().
    • getName

      public java.lang.String getName()
      Get unique key/name of config item. The same as getKey().
    • getValue

      public java.lang.String getValue()
    • getSource

      public java.lang.String getSource()
    • getLinks

      public com.gooddata.sdk.model.hierarchicalconfig.ConfigItem.Links getLinks()
    • setValue

      public void setValue​(java.lang.String value)
    • isEnabled

      public boolean isEnabled()
      Conversion method from String to Boolean type.
      Returns:
      returns converted value: true or false
    • setEnabled

      public void setEnabled​(java.lang.Boolean value)
    • getSourceType

      public SourceType getSourceType()
      Conversion method from source to SourceType enum.
      Returns:
      returns SourceType or null, if source is not recognized
    • getUri

      public java.lang.String getUri()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object