次の方法で共有


ShareCredentialDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.ShareCredentialDetails

Implements

public final class ShareCredentialDetails
implements JsonSerializable<ShareCredentialDetails>

Credential details of the shares in account.

Constructor Summary

Constructor Description
ShareCredentialDetails()

Creates an instance of ShareCredentialDetails class.

Method Summary

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

Reads an instance of ShareCredentialDetails from the JsonReader.

String password()

Get the password property: Password for the share.

String shareName()

Get the shareName property: Name of the share.

ShareDestinationFormatType shareType()

Get the shareType property: Type of the share.

List<AccessProtocol> supportedAccessProtocols()

Get the supportedAccessProtocols property: Access protocols supported on the device.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: User name for the share.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ShareCredentialDetails

public ShareCredentialDetails()

Creates an instance of ShareCredentialDetails class.

Method Details

fromJson

public static ShareCredentialDetails fromJson(JsonReader jsonReader)

Reads an instance of ShareCredentialDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

password

public String password()

Get the password property: Password for the share.

Returns:

the password value.

shareName

public String shareName()

Get the shareName property: Name of the share.

Returns:

the shareName value.

shareType

public ShareDestinationFormatType shareType()

Get the shareType property: Type of the share.

Returns:

the shareType value.

supportedAccessProtocols

public List<AccessProtocol> supportedAccessProtocols()

Get the supportedAccessProtocols property: Access protocols supported on the device.

Returns:

the supportedAccessProtocols value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: User name for the share.

Returns:

the username value.

validate

public void validate()

Validates the instance.

Applies to