SmartGroupAggregatedProperty Class

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

Implements

public final class SmartGroupAggregatedProperty
implements JsonSerializable<SmartGroupAggregatedProperty>

Aggregated property of each type.

Constructor Summary

Constructor Description
SmartGroupAggregatedProperty()

Creates an instance of SmartGroupAggregatedProperty class.

Method Summary

Modifier and Type Method and Description
Long count()

Get the count property: Total number of items of type.

static SmartGroupAggregatedProperty fromJson(JsonReader jsonReader)

Reads an instance of SmartGroupAggregatedProperty from the JsonReader.

String name()

Get the name property: Name of the type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SmartGroupAggregatedProperty withCount(Long count)

Set the count property: Total number of items of type.

SmartGroupAggregatedProperty withName(String name)

Set the name property: Name of the type.

Methods inherited from java.lang.Object

Constructor Details

SmartGroupAggregatedProperty

public SmartGroupAggregatedProperty()

Creates an instance of SmartGroupAggregatedProperty class.

Method Details

count

public Long count()

Get the count property: Total number of items of type.

Returns:

the count value.

fromJson

public static SmartGroupAggregatedProperty fromJson(JsonReader jsonReader)

Reads an instance of SmartGroupAggregatedProperty from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the type.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCount

public SmartGroupAggregatedProperty withCount(Long count)

Set the count property: Total number of items of type.

Parameters:

count - the count value to set.

Returns:

the SmartGroupAggregatedProperty object itself.

withName

public SmartGroupAggregatedProperty withName(String name)

Set the name property: Name of the type.

Parameters:

name - the name value to set.

Returns:

the SmartGroupAggregatedProperty object itself.

Applies to