Share via


MicrosoftGraphPhoto Class

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

Implements

public final class MicrosoftGraphPhoto
implements JsonSerializable<MicrosoftGraphPhoto>

Represents a photo.

Constructor Summary

Constructor Description
MicrosoftGraphPhoto()

Creates an instance of MicrosoftGraphPhoto class.

Method Summary

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

Get the additionalProperties property: photo.

String cameraMake()

Get the cameraMake property: Camera manufacturer.

String cameraModel()

Get the cameraModel property: Camera model.

Double exposureDenominator()

Get the exposureDenominator property: The denominator for the exposure time fraction from the camera.

Double exposureNumerator()

Get the exposureNumerator property: The numerator for the exposure time fraction from the camera.

Double fNumber()

Get the fNumber property: The F-stop value from the camera.

Double focalLength()

Get the focalLength property: The focal length from the camera.

static MicrosoftGraphPhoto fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPhoto from the JsonReader.

Integer iso()

Get the iso property: The ISO value from the camera.

Integer orientation()

Get the orientation property: The orientation value from the camera.

OffsetDateTime takenDateTime()

Get the takenDateTime property: Represents the date and time the photo was taken.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphPhoto withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: photo.

MicrosoftGraphPhoto withCameraMake(String cameraMake)

Set the cameraMake property: Camera manufacturer.

MicrosoftGraphPhoto withCameraModel(String cameraModel)

Set the cameraModel property: Camera model.

MicrosoftGraphPhoto withExposureDenominator(Double exposureDenominator)

Set the exposureDenominator property: The denominator for the exposure time fraction from the camera.

MicrosoftGraphPhoto withExposureNumerator(Double exposureNumerator)

Set the exposureNumerator property: The numerator for the exposure time fraction from the camera.

MicrosoftGraphPhoto withFNumber(Double fNumber)

Set the fNumber property: The F-stop value from the camera.

MicrosoftGraphPhoto withFocalLength(Double focalLength)

Set the focalLength property: The focal length from the camera.

MicrosoftGraphPhoto withIso(Integer iso)

Set the iso property: The ISO value from the camera.

MicrosoftGraphPhoto withOrientation(Integer orientation)

Set the orientation property: The orientation value from the camera.

MicrosoftGraphPhoto withTakenDateTime(OffsetDateTime takenDateTime)

Set the takenDateTime property: Represents the date and time the photo was taken.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPhoto

public MicrosoftGraphPhoto()

Creates an instance of MicrosoftGraphPhoto class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: photo.

Returns:

the additionalProperties value.

cameraMake

public String cameraMake()

Get the cameraMake property: Camera manufacturer. Read-only.

Returns:

the cameraMake value.

cameraModel

public String cameraModel()

Get the cameraModel property: Camera model. Read-only.

Returns:

the cameraModel value.

exposureDenominator

public Double exposureDenominator()

Get the exposureDenominator property: The denominator for the exposure time fraction from the camera. Read-only.

Returns:

the exposureDenominator value.

exposureNumerator

public Double exposureNumerator()

Get the exposureNumerator property: The numerator for the exposure time fraction from the camera. Read-only.

Returns:

the exposureNumerator value.

fNumber

public Double fNumber()

Get the fNumber property: The F-stop value from the camera. Read-only.

Returns:

the fNumber value.

focalLength

public Double focalLength()

Get the focalLength property: The focal length from the camera. Read-only.

Returns:

the focalLength value.

fromJson

public static MicrosoftGraphPhoto fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPhoto from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

iso

public Integer iso()

Get the iso property: The ISO value from the camera. Read-only.

Returns:

the iso value.

orientation

public Integer orientation()

Get the orientation property: The orientation value from the camera. Writable on OneDrive Personal.

Returns:

the orientation value.

takenDateTime

public OffsetDateTime takenDateTime()

Get the takenDateTime property: Represents the date and time the photo was taken. Read-only.

Returns:

the takenDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphPhoto withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: photo.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withCameraMake

public MicrosoftGraphPhoto withCameraMake(String cameraMake)

Set the cameraMake property: Camera manufacturer. Read-only.

Parameters:

cameraMake - the cameraMake value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withCameraModel

public MicrosoftGraphPhoto withCameraModel(String cameraModel)

Set the cameraModel property: Camera model. Read-only.

Parameters:

cameraModel - the cameraModel value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withExposureDenominator

public MicrosoftGraphPhoto withExposureDenominator(Double exposureDenominator)

Set the exposureDenominator property: The denominator for the exposure time fraction from the camera. Read-only.

Parameters:

exposureDenominator - the exposureDenominator value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withExposureNumerator

public MicrosoftGraphPhoto withExposureNumerator(Double exposureNumerator)

Set the exposureNumerator property: The numerator for the exposure time fraction from the camera. Read-only.

Parameters:

exposureNumerator - the exposureNumerator value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withFNumber

public MicrosoftGraphPhoto withFNumber(Double fNumber)

Set the fNumber property: The F-stop value from the camera. Read-only.

Parameters:

fNumber - the fNumber value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withFocalLength

public MicrosoftGraphPhoto withFocalLength(Double focalLength)

Set the focalLength property: The focal length from the camera. Read-only.

Parameters:

focalLength - the focalLength value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withIso

public MicrosoftGraphPhoto withIso(Integer iso)

Set the iso property: The ISO value from the camera. Read-only.

Parameters:

iso - the iso value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withOrientation

public MicrosoftGraphPhoto withOrientation(Integer orientation)

Set the orientation property: The orientation value from the camera. Writable on OneDrive Personal.

Parameters:

orientation - the orientation value to set.

Returns:

the MicrosoftGraphPhoto object itself.

withTakenDateTime

public MicrosoftGraphPhoto withTakenDateTime(OffsetDateTime takenDateTime)

Set the takenDateTime property: Represents the date and time the photo was taken. Read-only.

Parameters:

takenDateTime - the takenDateTime value to set.

Returns:

the MicrosoftGraphPhoto object itself.

Applies to