Class LinuxProperties
java.lang.Object
com.azure.resourcemanager.automation.models.LinuxProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LinuxProperties>
public final class LinuxProperties
extends Object
implements com.azure.json.JsonSerializable<LinuxProperties>
Linux specific update configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the excludedPackageNameMasks property: packages excluded from the software update configuration.static LinuxProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LinuxProperties from the JsonReader.Get the includedPackageClassifications property: Update classifications included in the software update configuration.Get the includedPackageNameMasks property: packages included from the software update configuration.Get the rebootSetting property: Reboot setting for the software update configuration.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withExcludedPackageNameMasks
(List<String> excludedPackageNameMasks) Set the excludedPackageNameMasks property: packages excluded from the software update configuration.withIncludedPackageClassifications
(LinuxUpdateClasses includedPackageClassifications) Set the includedPackageClassifications property: Update classifications included in the software update configuration.withIncludedPackageNameMasks
(List<String> includedPackageNameMasks) Set the includedPackageNameMasks property: packages included from the software update configuration.withRebootSetting
(String rebootSetting) Set the rebootSetting property: Reboot setting for 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
-
LinuxProperties
public LinuxProperties()Creates an instance of LinuxProperties class.
-
-
Method Details
-
includedPackageClassifications
Get the includedPackageClassifications property: Update classifications included in the software update configuration.- Returns:
- the includedPackageClassifications value.
-
withIncludedPackageClassifications
public LinuxProperties withIncludedPackageClassifications(LinuxUpdateClasses includedPackageClassifications) Set the includedPackageClassifications property: Update classifications included in the software update configuration.- Parameters:
includedPackageClassifications
- the includedPackageClassifications value to set.- Returns:
- the LinuxProperties object itself.
-
excludedPackageNameMasks
Get the excludedPackageNameMasks property: packages excluded from the software update configuration.- Returns:
- the excludedPackageNameMasks value.
-
withExcludedPackageNameMasks
Set the excludedPackageNameMasks property: packages excluded from the software update configuration.- Parameters:
excludedPackageNameMasks
- the excludedPackageNameMasks value to set.- Returns:
- the LinuxProperties object itself.
-
includedPackageNameMasks
Get the includedPackageNameMasks property: packages included from the software update configuration.- Returns:
- the includedPackageNameMasks value.
-
withIncludedPackageNameMasks
Set the includedPackageNameMasks property: packages included from the software update configuration.- Parameters:
includedPackageNameMasks
- the includedPackageNameMasks value to set.- Returns:
- the LinuxProperties object itself.
-
rebootSetting
Get the rebootSetting property: Reboot setting for the software update configuration.- Returns:
- the rebootSetting value.
-
withRebootSetting
Set the rebootSetting property: Reboot setting for the software update configuration.- Parameters:
rebootSetting
- the rebootSetting value to set.- Returns:
- the LinuxProperties 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<LinuxProperties>
- Throws:
IOException
-
fromJson
Reads an instance of LinuxProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of LinuxProperties 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 LinuxProperties.
-