Class ActivityParameterSet
java.lang.Object
com.azure.resourcemanager.automation.models.ActivityParameterSet
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ActivityParameterSet>
public final class ActivityParameterSet
extends Object
implements com.azure.json.JsonSerializable<ActivityParameterSet>
Definition of the activity parameter set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivityParameterSet
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ActivityParameterSet from the JsonReader.name()
Get the name property: Gets or sets the name of the activity parameter set.Get the parameters property: Gets or sets the parameters of the activity parameter set.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the name property: Gets or sets the name of the activity parameter set.withParameters
(List<ActivityParameter> parameters) Set the parameters property: Gets or sets the parameters of the activity parameter set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ActivityParameterSet
public ActivityParameterSet()Creates an instance of ActivityParameterSet class.
-
-
Method Details
-
name
Get the name property: Gets or sets the name of the activity parameter set.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the activity parameter set.- Parameters:
name
- the name value to set.- Returns:
- the ActivityParameterSet object itself.
-
parameters
Get the parameters property: Gets or sets the parameters of the activity parameter set.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Gets or sets the parameters of the activity parameter set.- Parameters:
parameters
- the parameters value to set.- Returns:
- the ActivityParameterSet object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ActivityParameterSet>
- Throws:
IOException
-
fromJson
public static ActivityParameterSet fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ActivityParameterSet from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ActivityParameterSet 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 ActivityParameterSet.
-