RestoreFileSpec Class

  • java.lang.Object
    • com.azure.resourcemanager.storagesync.models.RestoreFileSpec

Implements

public final class RestoreFileSpec
implements JsonSerializable<RestoreFileSpec>

Restore file spec.

Constructor Summary

Constructor Description
RestoreFileSpec()

Creates an instance of RestoreFileSpec class.

Method Summary

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

Reads an instance of RestoreFileSpec from the JsonReader.

Boolean isdir()

Get the isdir property: Restore file spec isdir.

String path()

Get the path property: Restore file spec path.

JsonWriter toJson(JsonWriter jsonWriter)
RestoreFileSpec withIsdir(Boolean isdir)

Set the isdir property: Restore file spec isdir.

RestoreFileSpec withPath(String path)

Set the path property: Restore file spec path.

Methods inherited from java.lang.Object

Constructor Details

RestoreFileSpec

public RestoreFileSpec()

Creates an instance of RestoreFileSpec class.

Method Details

fromJson

public static RestoreFileSpec fromJson(JsonReader jsonReader)

Reads an instance of RestoreFileSpec from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isdir

public Boolean isdir()

Get the isdir property: Restore file spec isdir.

Returns:

the isdir value.

path

public String path()

Get the path property: Restore file spec path.

Returns:

the path value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withIsdir

public RestoreFileSpec withIsdir(Boolean isdir)

Set the isdir property: Restore file spec isdir.

Parameters:

isdir - the isdir value to set.

Returns:

the RestoreFileSpec object itself.

withPath

public RestoreFileSpec withPath(String path)

Set the path property: Restore file spec path.

Parameters:

path - the path value to set.

Returns:

the RestoreFileSpec object itself.

Applies to