Class DscNodeConfigurationCreateOrUpdateParametersProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.DscNodeConfigurationCreateOrUpdateParametersProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DscNodeConfigurationCreateOrUpdateParametersProperties>
public final class DscNodeConfigurationCreateOrUpdateParametersProperties
extends Object
implements com.azure.json.JsonSerializable<DscNodeConfigurationCreateOrUpdateParametersProperties>
The parameter properties supplied to the create or update node configuration operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DscNodeConfigurationCreateOrUpdateParametersProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration property: Gets or sets the configuration of the node.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DscNodeConfigurationCreateOrUpdateParametersProperties from the JsonReader.Get the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.source()
Get the source property: Gets or sets the source.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConfiguration
(DscConfigurationAssociationProperty configuration) Set the configuration property: Gets or sets the configuration of the node.withIncrementNodeConfigurationBuild
(Boolean incrementNodeConfigurationBuild) Set the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.withSource
(ContentSource source) Set the source property: Gets or sets the source.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
-
DscNodeConfigurationCreateOrUpdateParametersProperties
public DscNodeConfigurationCreateOrUpdateParametersProperties()Creates an instance of DscNodeConfigurationCreateOrUpdateParametersProperties class.
-
-
Method Details
-
source
Get the source property: Gets or sets the source.- Returns:
- the source value.
-
withSource
Set the source property: Gets or sets the source.- Parameters:
source
- the source value to set.- Returns:
- the DscNodeConfigurationCreateOrUpdateParametersProperties object itself.
-
configuration
Get the configuration property: Gets or sets the configuration of the node.- Returns:
- the configuration value.
-
withConfiguration
public DscNodeConfigurationCreateOrUpdateParametersProperties withConfiguration(DscConfigurationAssociationProperty configuration) Set the configuration property: Gets or sets the configuration of the node.- Parameters:
configuration
- the configuration value to set.- Returns:
- the DscNodeConfigurationCreateOrUpdateParametersProperties object itself.
-
incrementNodeConfigurationBuild
Get the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.- Returns:
- the incrementNodeConfigurationBuild value.
-
withIncrementNodeConfigurationBuild
public DscNodeConfigurationCreateOrUpdateParametersProperties withIncrementNodeConfigurationBuild(Boolean incrementNodeConfigurationBuild) Set the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.- Parameters:
incrementNodeConfigurationBuild
- the incrementNodeConfigurationBuild value to set.- Returns:
- the DscNodeConfigurationCreateOrUpdateParametersProperties 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<DscNodeConfigurationCreateOrUpdateParametersProperties>
- Throws:
IOException
-
fromJson
public static DscNodeConfigurationCreateOrUpdateParametersProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DscNodeConfigurationCreateOrUpdateParametersProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DscNodeConfigurationCreateOrUpdateParametersProperties 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 DscNodeConfigurationCreateOrUpdateParametersProperties.
-