DigestConfig Class
- java.
lang. Object - com.
azure. resourcemanager. advisor. models. DigestConfig
- com.
Implements
public final class DigestConfig
implements JsonSerializable<DigestConfig>
Advisor Digest configuration entity.
Constructor Summary
| Constructor | Description |
|---|---|
| DigestConfig() |
Creates an instance of Digest |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
actionGroupResourceId()
Get the action |
| List<Category> |
categories()
Get the categories property: Categories to send digest for. |
| Integer |
frequency()
Get the frequency property: Frequency that digest will be triggered, in days. |
|
static
Digest |
fromJson(JsonReader jsonReader)
Reads an instance of Digest |
| String |
language()
Get the language property: Language for digest content body. |
| String |
name()
Get the name property: Name of digest configuration. |
|
Digest |
state()
Get the state property: State of digest configuration. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Digest |
withActionGroupResourceId(String actionGroupResourceId)
Set the action |
|
Digest |
withCategories(List<Category> categories)
Set the categories property: Categories to send digest for. |
|
Digest |
withFrequency(Integer frequency)
Set the frequency property: Frequency that digest will be triggered, in days. |
|
Digest |
withLanguage(String language)
Set the language property: Language for digest content body. |
|
Digest |
withName(String name)
Set the name property: Name of digest configuration. |
|
Digest |
withState(DigestConfigState state)
Set the state property: State of digest configuration. |
Methods inherited from java.lang.Object
Constructor Details
DigestConfig
public DigestConfig()
Creates an instance of DigestConfig class.
Method Details
actionGroupResourceId
public String actionGroupResourceId()
Get the actionGroupResourceId property: Action group resource id used by digest.
Returns:
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:
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:
fromJson
public static DigestConfig fromJson(JsonReader jsonReader)
Reads an instance of DigestConfig from the JsonReader.
Parameters:
Returns:
Throws:
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:
name
public String name()
Get the name property: Name of digest configuration. Value is case-insensitive and must be unique within a subscription.
Returns:
state
public DigestConfigState state()
Get the state property: State of digest configuration.
Returns:
toJson
validate
public void validate()
Validates the instance.
withActionGroupResourceId
public DigestConfig withActionGroupResourceId(String actionGroupResourceId)
Set the actionGroupResourceId property: Action group resource id used by digest.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withState
public DigestConfig withState(DigestConfigState state)
Set the state property: State of digest configuration.
Parameters:
Returns: