Aracılığıyla paylaş


FileSourceInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.databoxedge.models.FileSourceInfo

Implements

public final class FileSourceInfo
implements JsonSerializable<FileSourceInfo>

File source details.

Constructor Summary

Constructor Description
FileSourceInfo()

Creates an instance of FileSourceInfo class.

Method Summary

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

Reads an instance of FileSourceInfo from the JsonReader.

String shareId()

Get the shareId property: File share ID.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FileSourceInfo withShareId(String shareId)

Set the shareId property: File share ID.

Methods inherited from java.lang.Object

Constructor Details

FileSourceInfo

public FileSourceInfo()

Creates an instance of FileSourceInfo class.

Method Details

fromJson

public static FileSourceInfo fromJson(JsonReader jsonReader)

Reads an instance of FileSourceInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

shareId

public String shareId()

Get the shareId property: File share ID.

Returns:

the shareId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withShareId

public FileSourceInfo withShareId(String shareId)

Set the shareId property: File share ID.

Parameters:

shareId - the shareId value to set.

Returns:

the FileSourceInfo object itself.

Applies to