Share via


SummaryCollection Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcemover.models.SummaryCollection

Implements

public final class SummaryCollection
implements JsonSerializable<SummaryCollection>

Summary Collection.

Constructor Summary

Constructor Description
SummaryCollection()

Creates an instance of SummaryCollection class.

Method Summary

Modifier and Type Method and Description
String fieldName()

Get the fieldName property: Gets or sets the field name on which summary is done.

static SummaryCollection fromJson(JsonReader jsonReader)

Reads an instance of SummaryCollection from the JsonReader.

List<Summary> summary()

Get the summary property: Gets or sets the list of summary items.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SummaryCollection withFieldName(String fieldName)

Set the fieldName property: Gets or sets the field name on which summary is done.

SummaryCollection withSummary(List<Summary> summary)

Set the summary property: Gets or sets the list of summary items.

Methods inherited from java.lang.Object

Constructor Details

SummaryCollection

public SummaryCollection()

Creates an instance of SummaryCollection class.

Method Details

fieldName

public String fieldName()

Get the fieldName property: Gets or sets the field name on which summary is done.

Returns:

the fieldName value.

fromJson

public static SummaryCollection fromJson(JsonReader jsonReader)

Reads an instance of SummaryCollection from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

summary

public List

summary()

Get the summary property: Gets or sets the list of summary items.

Returns:

the summary value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFieldName

public SummaryCollection withFieldName(String fieldName)

Set the fieldName property: Gets or sets the field name on which summary is done.

Parameters:

fieldName - the fieldName value to set.

Returns:

the SummaryCollection object itself.

withSummary

public SummaryCollection withSummary(List

summary)

Set the summary property: Gets or sets the list of summary items.

Parameters:

summary - the summary value to set.

Returns:

the SummaryCollection object itself.

Applies to