Class FlavorData
java.lang.Object
com.azure.resourcemanager.machinelearning.models.FlavorData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FlavorData>
The FlavorData model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()Get the data property: Model flavor-specific data.static FlavorDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FlavorData from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the data property: Model flavor-specific data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FlavorData
public FlavorData()Creates an instance of FlavorData class.
-
-
Method Details
-
data
Get the data property: Model flavor-specific data.- Returns:
- the data value.
-
withData
Set the data property: Model flavor-specific data.- Parameters:
data- the data value to set.- Returns:
- the FlavorData object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FlavorData>- Throws:
IOException
-
fromJson
Reads an instance of FlavorData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FlavorData 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 FlavorData.
-