Class DeploymentLogsRequest

java.lang.Object
com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest
All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentLogsRequest>

public final class DeploymentLogsRequest extends Object implements com.azure.json.JsonSerializable<DeploymentLogsRequest>
The DeploymentLogsRequest model.
  • Constructor Details

    • DeploymentLogsRequest

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

    • containerType

      public ContainerType containerType()
      Get the containerType property: The type of container to retrieve logs from.
      Returns:
      the containerType value.
    • withContainerType

      public DeploymentLogsRequest withContainerType(ContainerType containerType)
      Set the containerType property: The type of container to retrieve logs from.
      Parameters:
      containerType - the containerType value to set.
      Returns:
      the DeploymentLogsRequest object itself.
    • tail

      public Integer tail()
      Get the tail property: The maximum number of lines to tail.
      Returns:
      the tail value.
    • withTail

      public DeploymentLogsRequest withTail(Integer tail)
      Set the tail property: The maximum number of lines to tail.
      Parameters:
      tail - the tail value to set.
      Returns:
      the DeploymentLogsRequest object itself.
    • validate

      public void validate()
      Validates the instance.
      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<DeploymentLogsRequest>
      Throws:
      IOException
    • fromJson

      public static DeploymentLogsRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DeploymentLogsRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DeploymentLogsRequest 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 DeploymentLogsRequest.