Class UnitSystemsInfo

java.lang.Object
com.azure.resourcemanager.agrifood.models.UnitSystemsInfo

public final class UnitSystemsInfo extends Object
Unit systems info for the data provider.
  • Constructor Details

    • UnitSystemsInfo

      public UnitSystemsInfo()
  • Method Details

    • key

      public String key()
      Get the key property: UnitSystem key sent as part of ProviderInput.
      Returns:
      the key value.
    • withKey

      public UnitSystemsInfo withKey(String key)
      Set the key property: UnitSystem key sent as part of ProviderInput.
      Parameters:
      key - the key value to set.
      Returns:
      the UnitSystemsInfo object itself.
    • values

      public List<String> values()
      Get the values property: List of unit systems supported by this data provider.
      Returns:
      the values value.
    • withValues

      public UnitSystemsInfo withValues(List<String> values)
      Set the values property: List of unit systems supported by this data provider.
      Parameters:
      values - the values value to set.
      Returns:
      the UnitSystemsInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.