DigestConfig Class

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

Implements

public final class DigestConfig
implements JsonSerializable<DigestConfig>

Advisor Digest configuration entity.

Constructor Summary

Constructor Description
DigestConfig()

Creates an instance of DigestConfig class.

Method Summary

Modifier and Type Method and Description
String actionGroupResourceId()

Get the actionGroupResourceId property: Action group resource id used by digest.

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 DigestConfig fromJson(JsonReader jsonReader)

Reads an instance of DigestConfig from the JsonReader.

String language()

Get the language property: Language for digest content body.

String name()

Get the name property: Name of digest configuration.

DigestConfigState state()

Get the state property: State of digest configuration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DigestConfig withActionGroupResourceId(String actionGroupResourceId)

Set the actionGroupResourceId property: Action group resource id used by digest.

DigestConfig withCategories(List<Category> categories)

Set the categories property: Categories to send digest for.

DigestConfig withFrequency(Integer frequency)

Set the frequency property: Frequency that digest will be triggered, in days.

DigestConfig withLanguage(String language)

Set the language property: Language for digest content body.

DigestConfig withName(String name)

Set the name property: Name of digest configuration.

DigestConfig 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:

the actionGroupResourceId value.

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.

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.

fromJson

public static DigestConfig fromJson(JsonReader jsonReader)

Reads an instance of DigestConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DigestConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DigestConfig.

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.

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.

state

public DigestConfigState state()

Get the state property: State of digest configuration.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

actionGroupResourceId - the actionGroupResourceId value to set.

Returns:

the DigestConfig object itself.

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.

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.

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.

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.

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.

Applies to