StorageDataShareAsset Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.StorageDataShareAsset

Implements

public final class StorageDataShareAsset
implements JsonSerializable<StorageDataShareAsset>

Properties of a shared resource.

Constructor Summary

Constructor Description
StorageDataShareAsset()

Creates an instance of StorageDataShareAsset class.

Method Summary

Modifier and Type Method and Description
String assetPath()

Get the assetPath property: Source Path to be shared.

String displayName()

Get the displayName property: Consumer visible name of the original path.

static StorageDataShareAsset fromJson(JsonReader jsonReader)

Reads an instance of StorageDataShareAsset from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageDataShareAsset withAssetPath(String assetPath)

Set the assetPath property: Source Path to be shared.

StorageDataShareAsset withDisplayName(String displayName)

Set the displayName property: Consumer visible name of the original path.

Methods inherited from java.lang.Object

Constructor Details

StorageDataShareAsset

public StorageDataShareAsset()

Creates an instance of StorageDataShareAsset class.

Method Details

assetPath

public String assetPath()

Get the assetPath property: Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.

Returns:

the assetPath value.

displayName

public String displayName()

Get the displayName property: Consumer visible name of the original path.

Returns:

the displayName value.

fromJson

public static StorageDataShareAsset fromJson(JsonReader jsonReader)

Reads an instance of StorageDataShareAsset from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageDataShareAsset 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:

validate

public void validate()

Validates the instance.

withAssetPath

public StorageDataShareAsset withAssetPath(String assetPath)

Set the assetPath property: Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.

Parameters:

assetPath - the assetPath value to set.

Returns:

the StorageDataShareAsset object itself.

withDisplayName

public StorageDataShareAsset withDisplayName(String displayName)

Set the displayName property: Consumer visible name of the original path.

Parameters:

displayName - the displayName value to set.

Returns:

the StorageDataShareAsset object itself.

Applies to