Class DigestConfig
java.lang.Object
com.azure.resourcemanager.advisor.models.DigestConfig
Advisor Digest configuration entity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the actionGroupResourceId property: Action group resource id used by digest.Get the categories property: Categories to send digest for.Get the frequency property: Frequency that digest will be triggered, in days.language()
Get the language property: Language for digest content body.name()
Get the name property: Name of digest configuration.state()
Get the state property: State of digest configuration.void
validate()
Validates the instance.withActionGroupResourceId
(String actionGroupResourceId) Set the actionGroupResourceId property: Action group resource id used by digest.withCategories
(List<Category> categories) Set the categories property: Categories to send digest for.withFrequency
(Integer frequency) Set the frequency property: Frequency that digest will be triggered, in days.withLanguage
(String language) Set the language property: Language for digest content body.Set the name property: Name of digest configuration.withState
(DigestConfigState state) Set the state property: State of digest configuration.
-
Constructor Details
-
DigestConfig
public DigestConfig()Creates an instance of DigestConfig class.
-
-
Method Details
-
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
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
Get the actionGroupResourceId property: Action group resource id used by digest.- Returns:
- the actionGroupResourceId value.
-
withActionGroupResourceId
Set the actionGroupResourceId property: Action group resource id used by digest.- Parameters:
actionGroupResourceId
- the actionGroupResourceId value to set.- Returns:
- the DigestConfig object itself.
-
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
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
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
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
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
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
Get the state property: State of digest configuration.- Returns:
- the state value.
-
withState
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.
-