Class CustomTargetLags
java.lang.Object
com.azure.resourcemanager.machinelearning.models.TargetLags
com.azure.resourcemanager.machinelearning.models.CustomTargetLags
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TargetLags>
The CustomTargetLags model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTargetLagsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomTargetLags from the JsonReader.mode()Get the mode property: [Required] Set target lags mode - Auto/Custom.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.values()Get the values property: [Required] Set target lags values.withValues(List<Integer> values) Set the values property: [Required] Set target lags values.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
-
CustomTargetLags
public CustomTargetLags()Creates an instance of CustomTargetLags class.
-
-
Method Details
-
mode
Get the mode property: [Required] Set target lags mode - Auto/Custom.- Overrides:
modein classTargetLags- Returns:
- the mode value.
-
values
Get the values property: [Required] Set target lags values.- Returns:
- the values value.
-
withValues
Set the values property: [Required] Set target lags values.- Parameters:
values- the values value to set.- Returns:
- the CustomTargetLags object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classTargetLags- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TargetLags>- Overrides:
toJsonin classTargetLags- Throws:
IOException
-
fromJson
Reads an instance of CustomTargetLags from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomTargetLags if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CustomTargetLags.
-