Class ScriptActionProfile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ScriptActionProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ScriptActionProfile>

public final class ScriptActionProfile extends Object implements com.azure.json.JsonSerializable<ScriptActionProfile>
The script action profile.
  • Constructor Details

    • ScriptActionProfile

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

    • type

      public String type()
      Get the type property: Type of the script action. Supported type is bash scripts.
      Returns:
      the type value.
    • withType

      public ScriptActionProfile withType(String type)
      Set the type property: Type of the script action. Supported type is bash scripts.
      Parameters:
      type - the type value to set.
      Returns:
      the ScriptActionProfile object itself.
    • name

      public String name()
      Get the name property: Script name.
      Returns:
      the name value.
    • withName

      public ScriptActionProfile withName(String name)
      Set the name property: Script name.
      Parameters:
      name - the name value to set.
      Returns:
      the ScriptActionProfile object itself.
    • url

      public String url()
      Get the url property: Url of the script file.
      Returns:
      the url value.
    • withUrl

      public ScriptActionProfile withUrl(String url)
      Set the url property: Url of the script file.
      Parameters:
      url - the url value to set.
      Returns:
      the ScriptActionProfile object itself.
    • parameters

      public String parameters()
      Get the parameters property: Additional parameters for the script action. It should be space-separated list of arguments required for script execution.
      Returns:
      the parameters value.
    • withParameters

      public ScriptActionProfile withParameters(String parameters)
      Set the parameters property: Additional parameters for the script action. It should be space-separated list of arguments required for script execution.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the ScriptActionProfile object itself.
    • services

      public List<String> services()
      Get the services property: List of services to apply the script action.
      Returns:
      the services value.
    • withServices

      public ScriptActionProfile withServices(List<String> services)
      Set the services property: List of services to apply the script action.
      Parameters:
      services - the services value to set.
      Returns:
      the ScriptActionProfile object itself.
    • timeoutInMinutes

      public Integer timeoutInMinutes()
      Get the timeoutInMinutes property: Timeout duration for the script action in minutes.
      Returns:
      the timeoutInMinutes value.
    • withTimeoutInMinutes

      public ScriptActionProfile withTimeoutInMinutes(Integer timeoutInMinutes)
      Set the timeoutInMinutes property: Timeout duration for the script action in minutes.
      Parameters:
      timeoutInMinutes - the timeoutInMinutes value to set.
      Returns:
      the ScriptActionProfile object itself.
    • shouldPersist

      public Boolean shouldPersist()
      Get the shouldPersist property: Specify if the script should persist on the cluster.
      Returns:
      the shouldPersist value.
    • withShouldPersist

      public ScriptActionProfile withShouldPersist(Boolean shouldPersist)
      Set the shouldPersist property: Specify if the script should persist on the cluster.
      Parameters:
      shouldPersist - the shouldPersist value to set.
      Returns:
      the ScriptActionProfile 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<ScriptActionProfile>
      Throws:
      IOException
    • fromJson

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