TriggerBackupRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest

Implements

public final class TriggerBackupRequest
implements JsonSerializable<TriggerBackupRequest>

Trigger backup request.

Constructor Summary

Constructor Description
TriggerBackupRequest()

Creates an instance of TriggerBackupRequest class.

Method Summary

Modifier and Type Method and Description
AdHocBackupRuleOptions backupRuleOptions()

Get the backupRuleOptions property: Name for the Rule of the Policy which needs to be applied for this backup.

static TriggerBackupRequest fromJson(JsonReader jsonReader)

Reads an instance of TriggerBackupRequest from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
TriggerBackupRequest withBackupRuleOptions(AdHocBackupRuleOptions backupRuleOptions)

Set the backupRuleOptions property: Name for the Rule of the Policy which needs to be applied for this backup.

Methods inherited from java.lang.Object

Constructor Details

TriggerBackupRequest

public TriggerBackupRequest()

Creates an instance of TriggerBackupRequest class.

Method Details

backupRuleOptions

public AdHocBackupRuleOptions backupRuleOptions()

Get the backupRuleOptions property: Name for the Rule of the Policy which needs to be applied for this backup.

Returns:

the backupRuleOptions value.

fromJson

public static TriggerBackupRequest fromJson(JsonReader jsonReader)

Reads an instance of TriggerBackupRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TriggerBackupRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withBackupRuleOptions

public TriggerBackupRequest withBackupRuleOptions(AdHocBackupRuleOptions backupRuleOptions)

Set the backupRuleOptions property: Name for the Rule of the Policy which needs to be applied for this backup.

Parameters:

backupRuleOptions - the backupRuleOptions value to set.

Returns:

the TriggerBackupRequest object itself.

Applies to