Class UpdateConfiguration

java.lang.Object
com.azure.resourcemanager.automation.models.UpdateConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateConfiguration>

public final class UpdateConfiguration extends Object implements com.azure.json.JsonSerializable<UpdateConfiguration>
Update specific properties of the software update configuration.
  • Constructor Details

    • UpdateConfiguration

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

    • operatingSystem

      public OperatingSystemType operatingSystem()
      Get the operatingSystem property: operating system of target machines.
      Returns:
      the operatingSystem value.
    • withOperatingSystem

      public UpdateConfiguration withOperatingSystem(OperatingSystemType operatingSystem)
      Set the operatingSystem property: operating system of target machines.
      Parameters:
      operatingSystem - the operatingSystem value to set.
      Returns:
      the UpdateConfiguration object itself.
    • windows

      public WindowsProperties windows()
      Get the windows property: Windows specific update configuration.
      Returns:
      the windows value.
    • withWindows

      public UpdateConfiguration withWindows(WindowsProperties windows)
      Set the windows property: Windows specific update configuration.
      Parameters:
      windows - the windows value to set.
      Returns:
      the UpdateConfiguration object itself.
    • linux

      public LinuxProperties linux()
      Get the linux property: Linux specific update configuration.
      Returns:
      the linux value.
    • withLinux

      public UpdateConfiguration withLinux(LinuxProperties linux)
      Set the linux property: Linux specific update configuration.
      Parameters:
      linux - the linux value to set.
      Returns:
      the UpdateConfiguration object itself.
    • duration

      public Duration duration()
      Get the duration property: Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601.
      Returns:
      the duration value.
    • withDuration

      public UpdateConfiguration withDuration(Duration duration)
      Set the duration property: Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601.
      Parameters:
      duration - the duration value to set.
      Returns:
      the UpdateConfiguration object itself.
    • azureVirtualMachines

      public List<String> azureVirtualMachines()
      Get the azureVirtualMachines property: List of azure resource Ids for azure virtual machines targeted by the software update configuration.
      Returns:
      the azureVirtualMachines value.
    • withAzureVirtualMachines

      public UpdateConfiguration withAzureVirtualMachines(List<String> azureVirtualMachines)
      Set the azureVirtualMachines property: List of azure resource Ids for azure virtual machines targeted by the software update configuration.
      Parameters:
      azureVirtualMachines - the azureVirtualMachines value to set.
      Returns:
      the UpdateConfiguration object itself.
    • nonAzureComputerNames

      public List<String> nonAzureComputerNames()
      Get the nonAzureComputerNames property: List of names of non-azure machines targeted by the software update configuration.
      Returns:
      the nonAzureComputerNames value.
    • withNonAzureComputerNames

      public UpdateConfiguration withNonAzureComputerNames(List<String> nonAzureComputerNames)
      Set the nonAzureComputerNames property: List of names of non-azure machines targeted by the software update configuration.
      Parameters:
      nonAzureComputerNames - the nonAzureComputerNames value to set.
      Returns:
      the UpdateConfiguration object itself.
    • targets

      public TargetProperties targets()
      Get the targets property: Group targets for the software update configuration.
      Returns:
      the targets value.
    • withTargets

      public UpdateConfiguration withTargets(TargetProperties targets)
      Set the targets property: Group targets for the software update configuration.
      Parameters:
      targets - the targets value to set.
      Returns:
      the UpdateConfiguration 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<UpdateConfiguration>
      Throws:
      IOException
    • fromJson

      public static UpdateConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UpdateConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UpdateConfiguration 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 UpdateConfiguration.