AlertsSummaryGroup Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.AlertsSummaryGroup

Implements

public final class AlertsSummaryGroup
implements JsonSerializable<AlertsSummaryGroup>

Group the result set.

Constructor Summary

Constructor Description
AlertsSummaryGroup()

Creates an instance of AlertsSummaryGroup class.

Method Summary

Modifier and Type Method and Description
static AlertsSummaryGroup fromJson(JsonReader jsonReader)

Reads an instance of AlertsSummaryGroup from the JsonReader.

String groupedby()

Get the groupedby property: Name of the field aggregated.

Long smartGroupsCount()

Get the smartGroupsCount property: Total count of the smart groups.

JsonWriter toJson(JsonWriter jsonWriter)
Long total()

Get the total property: Total count of the result set.

void validate()

Validates the instance.

List<AlertsSummaryGroupItem> values()

Get the values property: List of the items.

AlertsSummaryGroup withGroupedby(String groupedby)

Set the groupedby property: Name of the field aggregated.

AlertsSummaryGroup withSmartGroupsCount(Long smartGroupsCount)

Set the smartGroupsCount property: Total count of the smart groups.

AlertsSummaryGroup withTotal(Long total)

Set the total property: Total count of the result set.

AlertsSummaryGroup withValues(List<AlertsSummaryGroupItem> values)

Set the values property: List of the items.

Methods inherited from java.lang.Object

Constructor Details

AlertsSummaryGroup

public AlertsSummaryGroup()

Creates an instance of AlertsSummaryGroup class.

Method Details

fromJson

public static AlertsSummaryGroup fromJson(JsonReader jsonReader)

Reads an instance of AlertsSummaryGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AlertsSummaryGroup 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 AlertsSummaryGroup.

groupedby

public String groupedby()

Get the groupedby property: Name of the field aggregated.

Returns:

the groupedby value.

smartGroupsCount

public Long smartGroupsCount()

Get the smartGroupsCount property: Total count of the smart groups.

Returns:

the smartGroupsCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

total

public Long total()

Get the total property: Total count of the result set.

Returns:

the total value.

validate

public void validate()

Validates the instance.

values

public List<AlertsSummaryGroupItem> values()

Get the values property: List of the items.

Returns:

the values value.

withGroupedby

public AlertsSummaryGroup withGroupedby(String groupedby)

Set the groupedby property: Name of the field aggregated.

Parameters:

groupedby - the groupedby value to set.

Returns:

the AlertsSummaryGroup object itself.

withSmartGroupsCount

public AlertsSummaryGroup withSmartGroupsCount(Long smartGroupsCount)

Set the smartGroupsCount property: Total count of the smart groups.

Parameters:

smartGroupsCount - the smartGroupsCount value to set.

Returns:

the AlertsSummaryGroup object itself.

withTotal

public AlertsSummaryGroup withTotal(Long total)

Set the total property: Total count of the result set.

Parameters:

total - the total value to set.

Returns:

the AlertsSummaryGroup object itself.

withValues

public AlertsSummaryGroup withValues(List<AlertsSummaryGroupItem> values)

Set the values property: List of the items.

Parameters:

values - the values value to set.

Returns:

the AlertsSummaryGroup object itself.

Applies to