AlertsSummaryGroupItem Class

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

Implements

public final class AlertsSummaryGroupItem
implements JsonSerializable<AlertsSummaryGroupItem>

Alerts summary group item.

Constructor Summary

Constructor Description
AlertsSummaryGroupItem()

Creates an instance of AlertsSummaryGroupItem class.

Method Summary

Modifier and Type Method and Description
Long count()

Get the count property: Count of the aggregated field.

static AlertsSummaryGroupItem fromJson(JsonReader jsonReader)

Reads an instance of AlertsSummaryGroupItem from the JsonReader.

String groupedby()

Get the groupedby property: Name of the field aggregated.

String name()

Get the name property: Value of the aggregated field.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<AlertsSummaryGroupItem> values()

Get the values property: List of the items.

AlertsSummaryGroupItem withCount(Long count)

Set the count property: Count of the aggregated field.

AlertsSummaryGroupItem withGroupedby(String groupedby)

Set the groupedby property: Name of the field aggregated.

AlertsSummaryGroupItem withName(String name)

Set the name property: Value of the aggregated field.

AlertsSummaryGroupItem withValues(List<AlertsSummaryGroupItem> values)

Set the values property: List of the items.

Methods inherited from java.lang.Object

Constructor Details

AlertsSummaryGroupItem

public AlertsSummaryGroupItem()

Creates an instance of AlertsSummaryGroupItem class.

Method Details

count

public Long count()

Get the count property: Count of the aggregated field.

Returns:

the count value.

fromJson

public static AlertsSummaryGroupItem fromJson(JsonReader jsonReader)

Reads an instance of AlertsSummaryGroupItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

groupedby

public String groupedby()

Get the groupedby property: Name of the field aggregated.

Returns:

the groupedby value.

name

public String name()

Get the name property: Value of the aggregated field.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

values

public List<AlertsSummaryGroupItem> values()

Get the values property: List of the items.

Returns:

the values value.

withCount

public AlertsSummaryGroupItem withCount(Long count)

Set the count property: Count of the aggregated field.

Parameters:

count - the count value to set.

Returns:

the AlertsSummaryGroupItem object itself.

withGroupedby

public AlertsSummaryGroupItem withGroupedby(String groupedby)

Set the groupedby property: Name of the field aggregated.

Parameters:

groupedby - the groupedby value to set.

Returns:

the AlertsSummaryGroupItem object itself.

withName

public AlertsSummaryGroupItem withName(String name)

Set the name property: Value of the aggregated field.

Parameters:

name - the name value to set.

Returns:

the AlertsSummaryGroupItem object itself.

withValues

public AlertsSummaryGroupItem withValues(List<AlertsSummaryGroupItem> values)

Set the values property: List of the items.

Parameters:

values - the values value to set.

Returns:

the AlertsSummaryGroupItem object itself.

Applies to