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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptActionProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScriptActionProfile from the JsonReader.name()Get the name property: Script name.Get the parameters property: Additional parameters for the script action.services()Get the services property: List of services to apply the script action.Get the shouldPersist property: Specify if the script should persist on the cluster.Get the timeoutInMinutes property: Timeout duration for the script action in minutes.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the script action.url()Get the url property: Url of the script file.voidvalidate()Validates the instance.Set the name property: Script name.withParameters(String parameters) Set the parameters property: Additional parameters for the script action.withServices(List<String> services) Set the services property: List of services to apply the script action.withShouldPersist(Boolean shouldPersist) Set the shouldPersist property: Specify if the script should persist on the cluster.withTimeoutInMinutes(Integer timeoutInMinutes) Set the timeoutInMinutes property: Timeout duration for the script action in minutes.Set the type property: Type of the script action.Set the url property: Url of the script file.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ScriptActionProfile
public ScriptActionProfile()Creates an instance of ScriptActionProfile class.
-
-
Method Details
-
type
Get the type property: Type of the script action. Supported type is bash scripts.- Returns:
- the type value.
-
withType
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
-
withName
Set the name property: Script name.- Parameters:
name- the name value to set.- Returns:
- the ScriptActionProfile object itself.
-
url
-
withUrl
Set the url property: Url of the script file.- Parameters:
url- the url value to set.- Returns:
- the ScriptActionProfile object itself.
-
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
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
-
withServices
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
Get the timeoutInMinutes property: Timeout duration for the script action in minutes.- Returns:
- the timeoutInMinutes value.
-
withTimeoutInMinutes
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
Get the shouldPersist property: Specify if the script should persist on the cluster.- Returns:
- the shouldPersist value.
-
withShouldPersist
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ScriptActionProfile>- Throws:
IOException
-
fromJson
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.
-