LinuxParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.LinuxParameters

Implements

public final class LinuxParameters
implements JsonSerializable<LinuxParameters>

Input for InstallPatches on a Linux VM, as directly received by the API.

Constructor Summary

Constructor Description
LinuxParameters()

Creates an instance of LinuxParameters class.

Method Summary

Modifier and Type Method and Description
List<VMGuestPatchClassificationLinux> classificationsToInclude()

Get the classificationsToInclude property: The update classifications to select when installing patches for Linux.

static LinuxParameters fromJson(JsonReader jsonReader)

Reads an instance of LinuxParameters from the JsonReader.

String maintenanceRunId()

Get the maintenanceRunId property: This is used as a maintenance run identifier for Auto VM Guest Patching in Linux.

List<String> packageNameMasksToExclude()

Get the packageNameMasksToExclude property: packages to exclude in the patch operation.

List<String> packageNameMasksToInclude()

Get the packageNameMasksToInclude property: packages to include in the patch operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LinuxParameters withClassificationsToInclude(List<VMGuestPatchClassificationLinux> classificationsToInclude)

Set the classificationsToInclude property: The update classifications to select when installing patches for Linux.

LinuxParameters withMaintenanceRunId(String maintenanceRunId)

Set the maintenanceRunId property: This is used as a maintenance run identifier for Auto VM Guest Patching in Linux.

LinuxParameters withPackageNameMasksToExclude(List<String> packageNameMasksToExclude)

Set the packageNameMasksToExclude property: packages to exclude in the patch operation.

LinuxParameters withPackageNameMasksToInclude(List<String> packageNameMasksToInclude)

Set the packageNameMasksToInclude property: packages to include in the patch operation.

Methods inherited from java.lang.Object

Constructor Details

LinuxParameters

public LinuxParameters()

Creates an instance of LinuxParameters class.

Method Details

classificationsToInclude

public List<VMGuestPatchClassificationLinux> classificationsToInclude()

Get the classificationsToInclude property: The update classifications to select when installing patches for Linux.

Returns:

the classificationsToInclude value.

fromJson

public static LinuxParameters fromJson(JsonReader jsonReader)

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.

maintenanceRunId

public String maintenanceRunId()

Get the maintenanceRunId property: This is used as a maintenance run identifier for Auto VM Guest Patching in Linux.

Returns:

the maintenanceRunId value.

packageNameMasksToExclude

public List<String> packageNameMasksToExclude()

Get the packageNameMasksToExclude property: packages to exclude in the patch operation. Format: packageName_packageVersion.

Returns:

the packageNameMasksToExclude value.

packageNameMasksToInclude

public List<String> packageNameMasksToInclude()

Get the packageNameMasksToInclude property: packages to include in the patch operation. Format: packageName_packageVersion.

Returns:

the packageNameMasksToInclude value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withMaintenanceRunId

public LinuxParameters withMaintenanceRunId(String maintenanceRunId)

Set the maintenanceRunId property: This is used as a maintenance run identifier for Auto VM Guest Patching in Linux.

Parameters:

maintenanceRunId - the maintenanceRunId value to set.

Returns:

the LinuxParameters object itself.

withPackageNameMasksToExclude

public LinuxParameters withPackageNameMasksToExclude(List<String> packageNameMasksToExclude)

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.

withPackageNameMasksToInclude

public LinuxParameters withPackageNameMasksToInclude(List<String> packageNameMasksToInclude)

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.

Applies to