Class DscNodeUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.DscNodeUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DscNodeUpdateParameters>
public final class DscNodeUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<DscNodeUpdateParameters>
The parameters supplied to the update dsc node operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DscNodeUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DscNodeUpdateParameters
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DscNodeUpdateParameters from the JsonReader.nodeId()
Get the nodeId property: Gets or sets the id of the dsc node.Get the properties property: The properties property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withNodeId
(String nodeId) Set the nodeId property: Gets or sets the id of the dsc node.withProperties
(DscNodeUpdateParametersProperties properties) Set the properties property: The properties property.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
-
DscNodeUpdateParameters
public DscNodeUpdateParameters()Creates an instance of DscNodeUpdateParameters class.
-
-
Method Details
-
nodeId
Get the nodeId property: Gets or sets the id of the dsc node.- Returns:
- the nodeId value.
-
withNodeId
Set the nodeId property: Gets or sets the id of the dsc node.- Parameters:
nodeId
- the nodeId value to set.- Returns:
- the DscNodeUpdateParameters object itself.
-
properties
Get the properties property: The properties property.- Returns:
- the properties value.
-
withProperties
Set the properties property: The properties property.- Parameters:
properties
- the properties value to set.- Returns:
- the DscNodeUpdateParameters 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<DscNodeUpdateParameters>
- Throws:
IOException
-
fromJson
public static DscNodeUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DscNodeUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DscNodeUpdateParameters 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 DscNodeUpdateParameters.
-