Class UpdateConfiguration

java.lang.Object
com.azure.resourcemanager.automation.models.UpdateConfiguration

public final class UpdateConfiguration extends Object
Update specific properties of the software update configuration.
  • Constructor Details

    • UpdateConfiguration

      public UpdateConfiguration()
  • 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.