Class DscNodeConfigurationCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.DscNodeConfigurationCreateOrUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DscNodeConfigurationCreateOrUpdateParameters>
public final class DscNodeConfigurationCreateOrUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<DscNodeConfigurationCreateOrUpdateParameters>
The parameters supplied to the create or update node configuration operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DscNodeConfigurationCreateOrUpdateParameters 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 DscNodeConfigurationCreateOrUpdateParameters from the JsonReader.Get the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.name()
Get the name property: Name of the node configuration.source()
Get the source property: Gets or sets the source.tags()
Get the tags property: Gets or sets the tags attached to the resource.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.Set the name property: Name of the node configuration.withSource
(ContentSource source) Set the source property: Gets or sets the source.Set the tags property: Gets or sets the tags attached to the resource.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
-
DscNodeConfigurationCreateOrUpdateParameters
public DscNodeConfigurationCreateOrUpdateParameters()Creates an instance of DscNodeConfigurationCreateOrUpdateParameters class.
-
-
Method Details
-
name
Get the name property: Name of the node configuration.- Returns:
- the name value.
-
withName
Set the name property: Name of the node configuration.- Parameters:
name
- the name value to set.- Returns:
- the DscNodeConfigurationCreateOrUpdateParameters object itself.
-
tags
Get the tags property: Gets or sets the tags attached to the resource.- Returns:
- the tags value.
-
withTags
Set the tags property: Gets or sets the tags attached to the resource.- Parameters:
tags
- the tags value to set.- Returns:
- the DscNodeConfigurationCreateOrUpdateParameters object itself.
-
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 DscNodeConfigurationCreateOrUpdateParameters object itself.
-
configuration
Get the configuration property: Gets or sets the configuration of the node.- Returns:
- the configuration value.
-
withConfiguration
public DscNodeConfigurationCreateOrUpdateParameters withConfiguration(DscConfigurationAssociationProperty configuration) Set the configuration property: Gets or sets the configuration of the node.- Parameters:
configuration
- the configuration value to set.- Returns:
- the DscNodeConfigurationCreateOrUpdateParameters object itself.
-
incrementNodeConfigurationBuild
Get the incrementNodeConfigurationBuild property: If a new build version of NodeConfiguration is required.- Returns:
- the incrementNodeConfigurationBuild value.
-
withIncrementNodeConfigurationBuild
public DscNodeConfigurationCreateOrUpdateParameters 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 DscNodeConfigurationCreateOrUpdateParameters 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<DscNodeConfigurationCreateOrUpdateParameters>
- Throws:
IOException
-
fromJson
public static DscNodeConfigurationCreateOrUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DscNodeConfigurationCreateOrUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DscNodeConfigurationCreateOrUpdateParameters 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 DscNodeConfigurationCreateOrUpdateParameters.
-