Class TestJobCreateParameters

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

public final class TestJobCreateParameters extends Object implements com.azure.json.JsonSerializable<TestJobCreateParameters>
The parameters supplied to the create test job operation.
  • Constructor Details

    • TestJobCreateParameters

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

    • parameters

      public Map<String,String> parameters()
      Get the parameters property: Gets or sets the parameters of the test job.
      Returns:
      the parameters value.
    • withParameters

      public TestJobCreateParameters withParameters(Map<String,String> parameters)
      Set the parameters property: Gets or sets the parameters of the test job.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the TestJobCreateParameters object itself.
    • runOn

      public String runOn()
      Get the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.
      Returns:
      the runOn value.
    • withRunOn

      public TestJobCreateParameters withRunOn(String runOn)
      Set the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.
      Parameters:
      runOn - the runOn value to set.
      Returns:
      the TestJobCreateParameters 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<TestJobCreateParameters>
      Throws:
      IOException
    • fromJson

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