Class SoftwareUpdateConfigurationCollectionItem

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

public final class SoftwareUpdateConfigurationCollectionItem extends Object implements com.azure.json.JsonSerializable<SoftwareUpdateConfigurationCollectionItem>
Software update configuration collection item properties.
  • Constructor Details

    • SoftwareUpdateConfigurationCollectionItem

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

    • name

      public String name()
      Get the name property: Name of the software update configuration.
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Resource Id of the software update configuration.
      Returns:
      the id value.
    • updateConfiguration

      public UpdateConfiguration updateConfiguration()
      Get the updateConfiguration property: Update specific properties of the software update configuration.
      Returns:
      the updateConfiguration value.
    • withUpdateConfiguration

      public SoftwareUpdateConfigurationCollectionItem withUpdateConfiguration(UpdateConfiguration updateConfiguration)
      Set the updateConfiguration property: Update specific properties of the software update configuration.
      Parameters:
      updateConfiguration - the updateConfiguration value to set.
      Returns:
      the SoftwareUpdateConfigurationCollectionItem object itself.
    • tasks

      Get the tasks property: Pre and Post Tasks defined.
      Returns:
      the tasks value.
    • withTasks

      Set the tasks property: Pre and Post Tasks defined.
      Parameters:
      tasks - the tasks value to set.
      Returns:
      the SoftwareUpdateConfigurationCollectionItem object itself.
    • frequency

      public ScheduleFrequency frequency()
      Get the frequency property: execution frequency of the schedule associated with the software update configuration.
      Returns:
      the frequency value.
    • withFrequency

      Set the frequency property: execution frequency of the schedule associated with the software update configuration.
      Parameters:
      frequency - the frequency value to set.
      Returns:
      the SoftwareUpdateConfigurationCollectionItem object itself.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: the start time of the update.
      Returns:
      the startTime value.
    • withStartTime

      Set the startTime property: the start time of the update.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the SoftwareUpdateConfigurationCollectionItem object itself.
    • creationTime

      public OffsetDateTime creationTime()
      Get the creationTime property: Creation time of the software update configuration, which only appears in the response.
      Returns:
      the creationTime value.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: Last time software update configuration was modified, which only appears in the response.
      Returns:
      the lastModifiedTime value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Provisioning state for the software update configuration, which only appears in the response.
      Returns:
      the provisioningState value.
    • nextRun

      public OffsetDateTime nextRun()
      Get the nextRun property: ext run time of the update.
      Returns:
      the nextRun value.
    • withNextRun

      Set the nextRun property: ext run time of the update.
      Parameters:
      nextRun - the nextRun value to set.
      Returns:
      the SoftwareUpdateConfigurationCollectionItem 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<SoftwareUpdateConfigurationCollectionItem>
      Throws:
      IOException
    • fromJson

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