ShareAccessRight Class
- java.
lang. Object - com.
azure. resourcemanager. databoxedge. models. ShareAccessRight
- com.
Implements
public final class ShareAccessRight
implements JsonSerializable<ShareAccessRight>
Specifies the mapping between this particular user and the type of access he has on shares on this device.
Constructor Summary
| Constructor | Description |
|---|---|
| ShareAccessRight() |
Creates an instance of Share |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Share |
accessType()
Get the access |
|
static
Share |
fromJson(JsonReader jsonReader)
Reads an instance of Share |
| String |
shareId()
Get the share |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Share |
withAccessType(ShareAccessType accessType)
Set the access |
|
Share |
withShareId(String shareId)
Set the share |
Methods inherited from java.lang.Object
Constructor Details
ShareAccessRight
public ShareAccessRight()
Creates an instance of ShareAccessRight class.
Method Details
accessType
public ShareAccessType accessType()
Get the accessType property: Type of access to be allowed on the share for this user.
Returns:
fromJson
public static ShareAccessRight fromJson(JsonReader jsonReader)
Reads an instance of ShareAccessRight from the JsonReader.
Parameters:
Returns:
Throws:
shareId
public String shareId()
Get the shareId property: The share ID.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAccessType
public ShareAccessRight withAccessType(ShareAccessType accessType)
Set the accessType property: Type of access to be allowed on the share for this user.
Parameters:
Returns:
withShareId
public ShareAccessRight withShareId(String shareId)
Set the shareId property: The share ID.
Parameters:
Returns: