你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphProfilePhoto Class

public final class MicrosoftGraphProfilePhoto
extends MicrosoftGraphEntity

profilePhoto.

Constructor Summary

Constructor Description
MicrosoftGraphProfilePhoto()

Creates an instance of MicrosoftGraphProfilePhoto class.

Method Summary

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

Get the additionalProperties property: profilePhoto.

static MicrosoftGraphProfilePhoto fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphProfilePhoto from the JsonReader.

Integer height()

Get the height property: The height of the photo.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer width()

Get the width property: The width of the photo.

MicrosoftGraphProfilePhoto withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: profilePhoto.

MicrosoftGraphProfilePhoto withHeight(Integer height)

Set the height property: The height of the photo.

MicrosoftGraphProfilePhoto withId(String id)

Set the id property: Read-only.

MicrosoftGraphProfilePhoto withWidth(Integer width)

Set the width property: The width of the photo.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphProfilePhoto

public MicrosoftGraphProfilePhoto()

Creates an instance of MicrosoftGraphProfilePhoto class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: profilePhoto.

Overrides:

MicrosoftGraphProfilePhoto.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphProfilePhoto fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphProfilePhoto from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

height

public Integer height()

Get the height property: The height of the photo. Read-only.

Returns:

the height value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphProfilePhoto.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphProfilePhoto.validate()

width

public Integer width()

Get the width property: The width of the photo. Read-only.

Returns:

the width value.

withAdditionalProperties

public MicrosoftGraphProfilePhoto withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: profilePhoto.

Overrides:

MicrosoftGraphProfilePhoto.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphProfilePhoto object itself.

withHeight

public MicrosoftGraphProfilePhoto withHeight(Integer height)

Set the height property: The height of the photo. Read-only.

Parameters:

height - the height value to set.

Returns:

the MicrosoftGraphProfilePhoto object itself.

withId

public MicrosoftGraphProfilePhoto withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphProfilePhoto.withId(String id)

Parameters:

id

withWidth

public MicrosoftGraphProfilePhoto withWidth(Integer width)

Set the width property: The width of the photo. Read-only.

Parameters:

width - the width value to set.

Returns:

the MicrosoftGraphProfilePhoto object itself.

Applies to