Class LinuxParameters
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.LinuxParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LinuxParameters>
public final class LinuxParameters
extends Object
implements com.azure.json.JsonSerializable<LinuxParameters>
Input for InstallPatches on a Linux VM, as directly received by the API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the classificationsToInclude property: The update classifications to select when installing patches for Linux.static LinuxParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LinuxParameters from the JsonReader.Get the packageNameMasksToExclude property: packages to exclude in the patch operation.Get the packageNameMasksToInclude property: packages to include in the patch operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClassificationsToInclude(List<VMGuestPatchClassificationLinux> classificationsToInclude) Set the classificationsToInclude property: The update classifications to select when installing patches for Linux.withPackageNameMasksToExclude(List<String> packageNameMasksToExclude) Set the packageNameMasksToExclude property: packages to exclude in the patch operation.withPackageNameMasksToInclude(List<String> packageNameMasksToInclude) Set the packageNameMasksToInclude property: packages to include in the patch operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LinuxParameters
public LinuxParameters()Creates an instance of LinuxParameters class.
-
-
Method Details
-
classificationsToInclude
Get the classificationsToInclude property: The update classifications to select when installing patches for Linux.- Returns:
- the classificationsToInclude value.
-
withClassificationsToInclude
public LinuxParameters withClassificationsToInclude(List<VMGuestPatchClassificationLinux> classificationsToInclude) Set the classificationsToInclude property: The update classifications to select when installing patches for Linux.- Parameters:
classificationsToInclude- the classificationsToInclude value to set.- Returns:
- the LinuxParameters object itself.
-
packageNameMasksToInclude
Get the packageNameMasksToInclude property: packages to include in the patch operation. Format: packageName_packageVersion.- Returns:
- the packageNameMasksToInclude value.
-
withPackageNameMasksToInclude
Set the packageNameMasksToInclude property: packages to include in the patch operation. Format: packageName_packageVersion.- Parameters:
packageNameMasksToInclude- the packageNameMasksToInclude value to set.- Returns:
- the LinuxParameters object itself.
-
packageNameMasksToExclude
Get the packageNameMasksToExclude property: packages to exclude in the patch operation. Format: packageName_packageVersion.- Returns:
- the packageNameMasksToExclude value.
-
withPackageNameMasksToExclude
Set the packageNameMasksToExclude property: packages to exclude in the patch operation. Format: packageName_packageVersion.- Parameters:
packageNameMasksToExclude- the packageNameMasksToExclude value to set.- Returns:
- the LinuxParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LinuxParameters>- Throws:
IOException
-
fromJson
Reads an instance of LinuxParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LinuxParameters 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 LinuxParameters.
-