MicrosoftGraphThumbnail Class

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

Implements

public final class MicrosoftGraphThumbnail
implements JsonSerializable<MicrosoftGraphThumbnail>

thumbnail.

Constructor Summary

Constructor Description
MicrosoftGraphThumbnail()

Creates an instance of MicrosoftGraphThumbnail class.

Method Summary

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

Get the additionalProperties property: thumbnail.

byte[] content()

Get the content property: The content stream for the thumbnail.

static MicrosoftGraphThumbnail fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphThumbnail from the JsonReader.

Integer height()

Get the height property: The height of the thumbnail, in pixels.

String sourceItemId()

Get the sourceItemId property: The unique identifier of the item that provided the thumbnail.

JsonWriter toJson(JsonWriter jsonWriter)
String url()

Get the url property: The URL used to fetch the thumbnail content.

void validate()

Validates the instance.

Integer width()

Get the width property: The width of the thumbnail, in pixels.

MicrosoftGraphThumbnail withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: thumbnail.

MicrosoftGraphThumbnail withContent(byte[] content)

Set the content property: The content stream for the thumbnail.

MicrosoftGraphThumbnail withHeight(Integer height)

Set the height property: The height of the thumbnail, in pixels.

MicrosoftGraphThumbnail withSourceItemId(String sourceItemId)

Set the sourceItemId property: The unique identifier of the item that provided the thumbnail.

MicrosoftGraphThumbnail withUrl(String url)

Set the url property: The URL used to fetch the thumbnail content.

MicrosoftGraphThumbnail withWidth(Integer width)

Set the width property: The width of the thumbnail, in pixels.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphThumbnail

public MicrosoftGraphThumbnail()

Creates an instance of MicrosoftGraphThumbnail class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: thumbnail.

Returns:

the additionalProperties value.

content

public byte[] content()

Get the content property: The content stream for the thumbnail.

Returns:

the content value.

fromJson

public static MicrosoftGraphThumbnail fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphThumbnail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

height

public Integer height()

Get the height property: The height of the thumbnail, in pixels.

Returns:

the height value.

sourceItemId

public String sourceItemId()

Get the sourceItemId property: The unique identifier of the item that provided the thumbnail. This is only available when a folder thumbnail is requested.

Returns:

the sourceItemId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

url

public String url()

Get the url property: The URL used to fetch the thumbnail content.

Returns:

the url value.

validate

public void validate()

Validates the instance.

width

public Integer width()

Get the width property: The width of the thumbnail, in pixels.

Returns:

the width value.

withAdditionalProperties

public MicrosoftGraphThumbnail withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: thumbnail.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphThumbnail object itself.

withContent

public MicrosoftGraphThumbnail withContent(byte[] content)

Set the content property: The content stream for the thumbnail.

Parameters:

content - the content value to set.

Returns:

the MicrosoftGraphThumbnail object itself.

withHeight

public MicrosoftGraphThumbnail withHeight(Integer height)

Set the height property: The height of the thumbnail, in pixels.

Parameters:

height - the height value to set.

Returns:

the MicrosoftGraphThumbnail object itself.

withSourceItemId

public MicrosoftGraphThumbnail withSourceItemId(String sourceItemId)

Set the sourceItemId property: The unique identifier of the item that provided the thumbnail. This is only available when a folder thumbnail is requested.

Parameters:

sourceItemId - the sourceItemId value to set.

Returns:

the MicrosoftGraphThumbnail object itself.

withUrl

public MicrosoftGraphThumbnail withUrl(String url)

Set the url property: The URL used to fetch the thumbnail content.

Parameters:

url - the url value to set.

Returns:

the MicrosoftGraphThumbnail object itself.

withWidth

public MicrosoftGraphThumbnail withWidth(Integer width)

Set the width property: The width of the thumbnail, in pixels.

Parameters:

width - the width value to set.

Returns:

the MicrosoftGraphThumbnail object itself.

Applies to