Class ApplyArtifactsRequest

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

public final class ApplyArtifactsRequest extends Object implements com.azure.json.JsonSerializable<ApplyArtifactsRequest>
Request body for applying artifacts to a virtual machine.
  • Constructor Details

    • ApplyArtifactsRequest

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

    • artifacts

      public List<ArtifactInstallProperties> artifacts()
      Get the artifacts property: The list of artifacts to apply.
      Returns:
      the artifacts value.
    • withArtifacts

      public ApplyArtifactsRequest withArtifacts(List<ArtifactInstallProperties> artifacts)
      Set the artifacts property: The list of artifacts to apply.
      Parameters:
      artifacts - the artifacts value to set.
      Returns:
      the ApplyArtifactsRequest 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<ApplyArtifactsRequest>
      Throws:
      IOException
    • fromJson

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