Class DigestConfig

java.lang.Object
com.azure.resourcemanager.advisor.models.DigestConfig

public final class DigestConfig extends Object
Advisor Digest configuration entity.
  • Constructor Details

    • DigestConfig

      public DigestConfig()
      Creates an instance of DigestConfig class.
  • Method Details

    • name

      public String name()
      Get the name property: Name of digest configuration. Value is case-insensitive and must be unique within a subscription.
      Returns:
      the name value.
    • withName

      public DigestConfig withName(String name)
      Set the name property: Name of digest configuration. Value is case-insensitive and must be unique within a subscription.
      Parameters:
      name - the name value to set.
      Returns:
      the DigestConfig object itself.
    • actionGroupResourceId

      public String actionGroupResourceId()
      Get the actionGroupResourceId property: Action group resource id used by digest.
      Returns:
      the actionGroupResourceId value.
    • withActionGroupResourceId

      public DigestConfig withActionGroupResourceId(String actionGroupResourceId)
      Set the actionGroupResourceId property: Action group resource id used by digest.
      Parameters:
      actionGroupResourceId - the actionGroupResourceId value to set.
      Returns:
      the DigestConfig object itself.
    • frequency

      public Integer frequency()
      Get the frequency property: Frequency that digest will be triggered, in days. Value must be between 7 and 30 days inclusive.
      Returns:
      the frequency value.
    • withFrequency

      public DigestConfig withFrequency(Integer frequency)
      Set the frequency property: Frequency that digest will be triggered, in days. Value must be between 7 and 30 days inclusive.
      Parameters:
      frequency - the frequency value to set.
      Returns:
      the DigestConfig object itself.
    • categories

      public List<Category> categories()
      Get the categories property: Categories to send digest for. If categories are not provided, then digest will be sent for all categories.
      Returns:
      the categories value.
    • withCategories

      public DigestConfig withCategories(List<Category> categories)
      Set the categories property: Categories to send digest for. If categories are not provided, then digest will be sent for all categories.
      Parameters:
      categories - the categories value to set.
      Returns:
      the DigestConfig object itself.
    • language

      public String language()
      Get the language property: Language for digest content body. Value must be ISO 639-1 code for one of Azure portal supported languages. Otherwise, it will be converted into one. Default value is English (en).
      Returns:
      the language value.
    • withLanguage

      public DigestConfig withLanguage(String language)
      Set the language property: Language for digest content body. Value must be ISO 639-1 code for one of Azure portal supported languages. Otherwise, it will be converted into one. Default value is English (en).
      Parameters:
      language - the language value to set.
      Returns:
      the DigestConfig object itself.
    • state

      public DigestConfigState state()
      Get the state property: State of digest configuration.
      Returns:
      the state value.
    • withState

      public DigestConfig withState(DigestConfigState state)
      Set the state property: State of digest configuration.
      Parameters:
      state - the state value to set.
      Returns:
      the DigestConfig object itself.
    • validate

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