Class EnvironmentContext

java.lang.Object
com.flagsmith.flagengine.EnvironmentContext

@Generated("jsonschema2pojo") public class EnvironmentContext extends Object
EnvironmentContext

Represents an environment context for feature flag evaluation.

  • Constructor Details

    • EnvironmentContext

      public EnvironmentContext()
      No args constructor for use in serialization
    • EnvironmentContext

      public EnvironmentContext(EnvironmentContext source)
      Parameters:
      source - the object being copied
    • EnvironmentContext

      public EnvironmentContext(String key, String name)
      Parameters:
      key - Key. Unique environment key. May be used for selecting a value for a multivariate feature, or for % split segmentation.
      name - Name. An environment's human-readable name.
  • Method Details

    • getKey

      public String getKey()
      Key

      Unique environment key. May be used for selecting a value for a multivariate feature, or for % split segmentation. (Required)

    • setKey

      public void setKey(String key)
      Key

      Unique environment key. May be used for selecting a value for a multivariate feature, or for % split segmentation. (Required)

    • withKey

      public EnvironmentContext withKey(String key)
    • getName

      public String getName()
      Name

      An environment's human-readable name. (Required)

    • setName

      public void setName(String name)
      Name

      An environment's human-readable name. (Required)

    • withName

      public EnvironmentContext withName(String name)
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public void setAdditionalProperty(String name, Object value)
    • withAdditionalProperty

      public EnvironmentContext withAdditionalProperty(String name, Object value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object