MicrosoftGraphFile Class

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

Implements

public final class MicrosoftGraphFile
implements JsonSerializable<MicrosoftGraphFile>

file.

Constructor Summary

Constructor Description
MicrosoftGraphFile()

Creates an instance of MicrosoftGraphFile class.

Method Summary

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

Get the additionalProperties property: file.

static MicrosoftGraphFile fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphFile from the JsonReader.

MicrosoftGraphHashes hashes()

Get the hashes property: hashes.

String mimeType()

Get the mimeType property: The MIME type for the file.

Boolean processingMetadata()

Get the processingMetadata property: The processingMetadata property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphFile withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: file.

MicrosoftGraphFile withHashes(MicrosoftGraphHashes hashes)

Set the hashes property: hashes.

MicrosoftGraphFile withMimeType(String mimeType)

Set the mimeType property: The MIME type for the file.

MicrosoftGraphFile withProcessingMetadata(Boolean processingMetadata)

Set the processingMetadata property: The processingMetadata property.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphFile

public MicrosoftGraphFile()

Creates an instance of MicrosoftGraphFile class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: file.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphFile fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphFile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hashes

public MicrosoftGraphHashes hashes()

Get the hashes property: hashes.

Returns:

the hashes value.

mimeType

public String mimeType()

Get the mimeType property: The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded. Read-only.

Returns:

the mimeType value.

processingMetadata

public Boolean processingMetadata()

Get the processingMetadata property: The processingMetadata property.

Returns:

the processingMetadata value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphFile withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: file.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphFile object itself.

withHashes

public MicrosoftGraphFile withHashes(MicrosoftGraphHashes hashes)

Set the hashes property: hashes.

Parameters:

hashes - the hashes value to set.

Returns:

the MicrosoftGraphFile object itself.

withMimeType

public MicrosoftGraphFile withMimeType(String mimeType)

Set the mimeType property: The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded. Read-only.

Parameters:

mimeType - the mimeType value to set.

Returns:

the MicrosoftGraphFile object itself.

withProcessingMetadata

public MicrosoftGraphFile withProcessingMetadata(Boolean processingMetadata)

Set the processingMetadata property: The processingMetadata property.

Parameters:

processingMetadata - the processingMetadata value to set.

Returns:

the MicrosoftGraphFile object itself.

Applies to