AlertsSummaryGroupItem Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. AlertsSummaryGroupItem
- com.
Implements
public final class AlertsSummaryGroupItem
implements JsonSerializable<AlertsSummaryGroupItem>
Alerts summary group item.
Constructor Summary
| Constructor | Description |
|---|---|
| AlertsSummaryGroupItem() |
Creates an instance of Alerts |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Long |
count()
Get the count property: Count of the aggregated field. |
|
static
Alerts |
fromJson(JsonReader jsonReader)
Reads an instance of Alerts |
| String |
groupedby()
Get the groupedby property: Name of the field aggregated. |
| String |
name()
Get the name property: Value of the aggregated field. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
List<Alerts |
values()
Get the values property: List of the items. |
|
Alerts |
withCount(Long count)
Set the count property: Count of the aggregated field. |
|
Alerts |
withGroupedby(String groupedby)
Set the groupedby property: Name of the field aggregated. |
|
Alerts |
withName(String name)
Set the name property: Value of the aggregated field. |
|
Alerts |
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:
fromJson
public static AlertsSummaryGroupItem fromJson(JsonReader jsonReader)
Reads an instance of AlertsSummaryGroupItem from the JsonReader.
Parameters:
Returns:
Throws:
groupedby
public String groupedby()
Get the groupedby property: Name of the field aggregated.
Returns:
name
public String name()
Get the name property: Value of the aggregated field.
Returns:
toJson
validate
public void validate()
Validates the instance.
values
public List<AlertsSummaryGroupItem> values()
Get the values property: List of the items.
Returns:
withCount
public AlertsSummaryGroupItem withCount(Long count)
Set the count property: Count of the aggregated field.
Parameters:
Returns:
withGroupedby
public AlertsSummaryGroupItem withGroupedby(String groupedby)
Set the groupedby property: Name of the field aggregated.
Parameters:
Returns:
withName
public AlertsSummaryGroupItem withName(String name)
Set the name property: Value of the aggregated field.
Parameters:
Returns:
withValues
public AlertsSummaryGroupItem withValues(List<AlertsSummaryGroupItem> values)
Set the values property: List of the items.
Parameters:
Returns: