InputPatchConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.maintenance.models.InputPatchConfiguration

public final class InputPatchConfiguration

Input configuration for a patch run.

Constructor Summary

Constructor Description
InputPatchConfiguration()

Creates an instance of InputPatchConfiguration class.

Method Summary

Modifier and Type Method and Description
InputLinuxParameters linuxParameters()

Get the linuxParameters property: Input parameters specific to patching Linux machine.

RebootOptions rebootSetting()

Get the rebootSetting property: Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.

void validate()

Validates the instance.

InputWindowsParameters windowsParameters()

Get the windowsParameters property: Input parameters specific to patching a Windows machine.

InputPatchConfiguration withLinuxParameters(InputLinuxParameters linuxParameters)

Set the linuxParameters property: Input parameters specific to patching Linux machine.

InputPatchConfiguration withRebootSetting(RebootOptions rebootSetting)

Set the rebootSetting property: Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.

InputPatchConfiguration withWindowsParameters(InputWindowsParameters windowsParameters)

Set the windowsParameters property: Input parameters specific to patching a Windows machine.

Methods inherited from java.lang.Object

Constructor Details

InputPatchConfiguration

public InputPatchConfiguration()

Creates an instance of InputPatchConfiguration class.

Method Details

linuxParameters

public InputLinuxParameters linuxParameters()

Get the linuxParameters property: Input parameters specific to patching Linux machine. For Windows machines, do not pass this property.

Returns:

the linuxParameters value.

rebootSetting

public RebootOptions rebootSetting()

Get the rebootSetting property: Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.

Returns:

the rebootSetting value.

validate

public void validate()

Validates the instance.

windowsParameters

public InputWindowsParameters windowsParameters()

Get the windowsParameters property: Input parameters specific to patching a Windows machine. For Linux machines, do not pass this property.

Returns:

the windowsParameters value.

withLinuxParameters

public InputPatchConfiguration withLinuxParameters(InputLinuxParameters linuxParameters)

Set the linuxParameters property: Input parameters specific to patching Linux machine. For Windows machines, do not pass this property.

Parameters:

linuxParameters - the linuxParameters value to set.

Returns:

the InputPatchConfiguration object itself.

withRebootSetting

public InputPatchConfiguration withRebootSetting(RebootOptions rebootSetting)

Set the rebootSetting property: Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.

Parameters:

rebootSetting - the rebootSetting value to set.

Returns:

the InputPatchConfiguration object itself.

withWindowsParameters

public InputPatchConfiguration withWindowsParameters(InputWindowsParameters windowsParameters)

Set the windowsParameters property: Input parameters specific to patching a Windows machine. For Linux machines, do not pass this property.

Parameters:

windowsParameters - the windowsParameters value to set.

Returns:

the InputPatchConfiguration object itself.

Applies to