SyncBackupInstanceRequest Class

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

Implements

public final class SyncBackupInstanceRequest
implements JsonSerializable<SyncBackupInstanceRequest>

Sync BackupInstance Request.

Constructor Summary

Constructor Description
SyncBackupInstanceRequest()

Creates an instance of SyncBackupInstanceRequest class.

Method Summary

Modifier and Type Method and Description
static SyncBackupInstanceRequest fromJson(JsonReader jsonReader)

Reads an instance of SyncBackupInstanceRequest from the JsonReader.

SyncType syncType()

Get the syncType property: Field indicating sync type e.g.

JsonWriter toJson(JsonWriter jsonWriter)
SyncBackupInstanceRequest withSyncType(SyncType syncType)

Set the syncType property: Field indicating sync type e.g.

Methods inherited from java.lang.Object

Constructor Details

SyncBackupInstanceRequest

public SyncBackupInstanceRequest()

Creates an instance of SyncBackupInstanceRequest class.

Method Details

fromJson

public static SyncBackupInstanceRequest fromJson(JsonReader jsonReader)

Reads an instance of SyncBackupInstanceRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SyncBackupInstanceRequest 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 SyncBackupInstanceRequest.

syncType

public SyncType syncType()

Get the syncType property: Field indicating sync type e.g. to sync only in case of failure or in all cases.

Returns:

the syncType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withSyncType

public SyncBackupInstanceRequest withSyncType(SyncType syncType)

Set the syncType property: Field indicating sync type e.g. to sync only in case of failure or in all cases.

Parameters:

syncType - the syncType value to set.

Returns:

the SyncBackupInstanceRequest object itself.

Applies to