Package com.microsoft.graph.models
Class DriveProtectionUnit
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ProtectionUnitBase
com.microsoft.graph.models.DriveProtectionUnit
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class DriveProtectionUnit
extends ProtectionUnitBase
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DriveProtectionUnit
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the directoryObjectId property value.Gets the displayName property value.getEmail()
Gets the email property value.The deserialization information for the current modelvoid
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setDirectoryObjectId
(String value) Sets the directoryObjectId property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the email property value.Methods inherited from class com.microsoft.graph.models.ProtectionUnitBase
getCreatedBy, getCreatedDateTime, getError, getLastModifiedBy, getLastModifiedDateTime, getPolicyId, getStatus, setCreatedBy, setCreatedDateTime, setError, setLastModifiedBy, setLastModifiedDateTime, setPolicyId, setStatus
Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
DriveProtectionUnit
public DriveProtectionUnit()Instantiates a newDriveProtectionUnit
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static DriveProtectionUnit 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
DriveProtectionUnit
-
getDirectoryObjectId
Gets the directoryObjectId property value. ID of the directory object.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. Display name of the directory object.- Returns:
- a
String
-
getEmail
Gets the email property value. Email associated with the directory object.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classProtectionUnitBase
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serialize
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
serialize
in classProtectionUnitBase
- Parameters:
writer
- Serialization writer to use to serialize this model
-
setDirectoryObjectId
Sets the directoryObjectId property value. ID of the directory object.- Parameters:
value
- Value to set for the directoryObjectId property.
-
setDisplayName
Sets the displayName property value. Display name of the directory object.- Parameters:
value
- Value to set for the displayName property.
-
setEmail
Sets the email property value. Email associated with the directory object.- Parameters:
value
- Value to set for the email property.
-