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 Details

    • DscNodeConfigurationCreateOrUpdateParameters

      public DscNodeConfigurationCreateOrUpdateParameters()
      Creates an instance of DscNodeConfigurationCreateOrUpdateParameters class.
  • Method Details

    • name

      public String 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

      public Map<String,String> 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

      public ContentSource 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

      public DscConfigurationAssociationProperty configuration()
      Get the configuration property: Gets or sets the configuration of the node.
      Returns:
      the configuration value.
    • withConfiguration

      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

      public Boolean 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.