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>

public final class CustomTargetLags extends TargetLags
The CustomTargetLags model.
  • Constructor Details

    • CustomTargetLags

      public CustomTargetLags()
      Creates an instance of CustomTargetLags class.
  • Method Details

    • mode

      public TargetLagsMode mode()
      Get the mode property: [Required] Set target lags mode - Auto/Custom.
      Overrides:
      mode in class TargetLags
      Returns:
      the mode value.
    • values

      public List<Integer> values()
      Get the values property: [Required] Set target lags values.
      Returns:
      the values value.
    • withValues

      public CustomTargetLags withValues(List<Integer> values)
      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:
      validate in class TargetLags
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TargetLags>
      Overrides:
      toJson in class TargetLags
      Throws:
      IOException
    • fromJson

      public static CustomTargetLags fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.