MicrosoftGraphHashes Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphHashes

Implements

public final class MicrosoftGraphHashes
implements JsonSerializable<MicrosoftGraphHashes>

hashes.

Constructor Summary

Constructor Description
MicrosoftGraphHashes()

Creates an instance of MicrosoftGraphHashes class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: hashes.

String crc32Hash()

Get the crc32Hash property: The CRC32 value of the file in little endian (if available).

static MicrosoftGraphHashes fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphHashes from the JsonReader.

String quickXorHash()

Get the quickXorHash property: A proprietary hash of the file that can be used to determine if the contents of the file have changed (if available).

String sha1Hash()

Get the sha1Hash property: SHA1 hash for the contents of the file (if available).

String sha256Hash()

Get the sha256Hash property: SHA256 hash for the contents of the file (if available).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphHashes withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: hashes.

MicrosoftGraphHashes withCrc32Hash(String crc32Hash)

Set the crc32Hash property: The CRC32 value of the file in little endian (if available).

MicrosoftGraphHashes withQuickXorHash(String quickXorHash)

Set the quickXorHash property: A proprietary hash of the file that can be used to determine if the contents of the file have changed (if available).

MicrosoftGraphHashes withSha1Hash(String sha1Hash)

Set the sha1Hash property: SHA1 hash for the contents of the file (if available).

MicrosoftGraphHashes withSha256Hash(String sha256Hash)

Set the sha256Hash property: SHA256 hash for the contents of the file (if available).

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphHashes

public MicrosoftGraphHashes()

Creates an instance of MicrosoftGraphHashes class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: hashes.

Returns:

the additionalProperties value.

crc32Hash

public String crc32Hash()

Get the crc32Hash property: The CRC32 value of the file in little endian (if available). Read-only.

Returns:

the crc32Hash value.

fromJson

public static MicrosoftGraphHashes fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphHashes from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

quickXorHash

public String quickXorHash()

Get the quickXorHash property: A proprietary hash of the file that can be used to determine if the contents of the file have changed (if available). Read-only.

Returns:

the quickXorHash value.

sha1Hash

public String sha1Hash()

Get the sha1Hash property: SHA1 hash for the contents of the file (if available). Read-only.

Returns:

the sha1Hash value.

sha256Hash

public String sha256Hash()

Get the sha256Hash property: SHA256 hash for the contents of the file (if available). Read-only.

Returns:

the sha256Hash value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphHashes withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: hashes.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphHashes object itself.

withCrc32Hash

public MicrosoftGraphHashes withCrc32Hash(String crc32Hash)

Set the crc32Hash property: The CRC32 value of the file in little endian (if available). Read-only.

Parameters:

crc32Hash - the crc32Hash value to set.

Returns:

the MicrosoftGraphHashes object itself.

withQuickXorHash

public MicrosoftGraphHashes withQuickXorHash(String quickXorHash)

Set the quickXorHash property: A proprietary hash of the file that can be used to determine if the contents of the file have changed (if available). Read-only.

Parameters:

quickXorHash - the quickXorHash value to set.

Returns:

the MicrosoftGraphHashes object itself.

withSha1Hash

public MicrosoftGraphHashes withSha1Hash(String sha1Hash)

Set the sha1Hash property: SHA1 hash for the contents of the file (if available). Read-only.

Parameters:

sha1Hash - the sha1Hash value to set.

Returns:

the MicrosoftGraphHashes object itself.

withSha256Hash

public MicrosoftGraphHashes withSha256Hash(String sha256Hash)

Set the sha256Hash property: SHA256 hash for the contents of the file (if available). Read-only.

Parameters:

sha256Hash - the sha256Hash value to set.

Returns:

the MicrosoftGraphHashes object itself.

Applies to