Package com.microsoft.graph.models
Class Photo
java.lang.Object
com.microsoft.graph.models.Photo
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Photo
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PhotocreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.Gets the cameraMake property value.Gets the cameraModel property value.Gets the exposureDenominator property value.Gets the exposureNumerator property value.The deserialization information for the current modelGets the fNumber property value.Gets the focalLength property value.getIso()Gets the iso property value.Gets the @odata.type property value.Gets the orientation property value.Gets the takenDateTime property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidsetCameraMake(String value) Sets the cameraMake property value.voidsetCameraModel(String value) Sets the cameraModel property value.voidsetExposureDenominator(Double value) Sets the exposureDenominator property value.voidsetExposureNumerator(Double value) Sets the exposureNumerator property value.voidsetFNumber(Double value) Sets the fNumber property value.voidsetFocalLength(Double value) Sets the focalLength property value.voidSets the iso property value.voidsetOdataType(String value) Sets the @odata.type property value.voidsetOrientation(Integer value) Sets the orientation property value.voidsetTakenDateTime(OffsetDateTime value) Sets the takenDateTime property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
Photo
public Photo()Instantiates a newPhotoand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Photo createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
Photo
-
getAdditionalData
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getBackingStore
@Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()Gets the backingStore property value. Stores model information.- Specified by:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
getCameraMake
Gets the cameraMake property value. Camera manufacturer. Read-only.- Returns:
- a
String
-
getCameraModel
Gets the cameraModel property value. Camera model. Read-only.- Returns:
- a
String
-
getExposureDenominator
Gets the exposureDenominator property value. The denominator for the exposure time fraction from the camera. Read-only.- Returns:
- a
Double
-
getExposureNumerator
Gets the exposureNumerator property value. The numerator for the exposure time fraction from the camera. Read-only.- Returns:
- a
Double
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model -
getFNumber
Gets the fNumber property value. The F-stop value from the camera. Read-only.- Returns:
- a
Double
-
getFocalLength
Gets the focalLength property value. The focal length from the camera. Read-only.- Returns:
- a
Double
-
getIso
Gets the iso property value. The ISO value from the camera. Read-only.- Returns:
- a
Integer
-
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getOrientation
Gets the orientation property value. The orientation value from the camera. Writable on OneDrive Personal.- Returns:
- a
Integer
-
getTakenDateTime
Gets the takenDateTime property value. Represents the date and time the photo was taken. Read-only.- Returns:
- a
OffsetDateTime
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.- Parameters:
value- Value to set for the AdditionalData property.
-
setBackingStore
public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value. Stores model information.- Parameters:
value- Value to set for the backingStore property.
-
setCameraMake
Sets the cameraMake property value. Camera manufacturer. Read-only.- Parameters:
value- Value to set for the cameraMake property.
-
setCameraModel
Sets the cameraModel property value. Camera model. Read-only.- Parameters:
value- Value to set for the cameraModel property.
-
setExposureDenominator
Sets the exposureDenominator property value. The denominator for the exposure time fraction from the camera. Read-only.- Parameters:
value- Value to set for the exposureDenominator property.
-
setExposureNumerator
Sets the exposureNumerator property value. The numerator for the exposure time fraction from the camera. Read-only.- Parameters:
value- Value to set for the exposureNumerator property.
-
setFNumber
Sets the fNumber property value. The F-stop value from the camera. Read-only.- Parameters:
value- Value to set for the fNumber property.
-
setFocalLength
Sets the focalLength property value. The focal length from the camera. Read-only.- Parameters:
value- Value to set for the focalLength property.
-
setIso
Sets the iso property value. The ISO value from the camera. Read-only.- Parameters:
value- Value to set for the iso property.
-
setOdataType
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setOrientation
Sets the orientation property value. The orientation value from the camera. Writable on OneDrive Personal.- Parameters:
value- Value to set for the orientation property.
-
setTakenDateTime
Sets the takenDateTime property value. Represents the date and time the photo was taken. Read-only.- Parameters:
value- Value to set for the takenDateTime property.
-