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 Summary
ConstructorsConstructorDescriptionCreates an instance of SoftwareUpdateConfigurationCollectionItem class. -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Creation time of the software update configuration, which only appears in the response.Get the frequency property: execution frequency of the schedule associated with the software update configuration.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SoftwareUpdateConfigurationCollectionItem from the JsonReader.id()
Get the id property: Resource Id of the software update configuration.Get the lastModifiedTime property: Last time software update configuration was modified, which only appears in the response.name()
Get the name property: Name of the software update configuration.nextRun()
Get the nextRun property: ext run time of the update.Get the provisioningState property: Provisioning state for the software update configuration, which only appears in the response.Get the startTime property: the start time of the update.tasks()
Get the tasks property: Pre and Post Tasks defined.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the updateConfiguration property: Update specific properties of the software update configuration.void
validate()
Validates the instance.withFrequency
(ScheduleFrequency frequency) Set the frequency property: execution frequency of the schedule associated with the software update configuration.withNextRun
(OffsetDateTime nextRun) Set the nextRun property: ext run time of the update.withStartTime
(OffsetDateTime startTime) Set the startTime property: the start time of the update.Set the tasks property: Pre and Post Tasks defined.withUpdateConfiguration
(UpdateConfiguration updateConfiguration) Set the updateConfiguration property: Update specific properties of the software update configuration.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
-
SoftwareUpdateConfigurationCollectionItem
public SoftwareUpdateConfigurationCollectionItem()Creates an instance of SoftwareUpdateConfigurationCollectionItem class.
-
-
Method Details
-
name
Get the name property: Name of the software update configuration.- Returns:
- the name value.
-
id
Get the id property: Resource Id of the software update configuration.- Returns:
- the id value.
-
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
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
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
Get the creationTime property: Creation time of the software update configuration, which only appears in the response.- Returns:
- the creationTime value.
-
lastModifiedTime
Get the lastModifiedTime property: Last time software update configuration was modified, which only appears in the response.- Returns:
- the lastModifiedTime value.
-
provisioningState
Get the provisioningState property: Provisioning state for the software update configuration, which only appears in the response.- Returns:
- the provisioningState value.
-
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
- Specified by:
toJson
in interfacecom.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.
-