Package com.microsoft.graph.models
Class MailboxProtectionUnit
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ProtectionUnitBase
com.microsoft.graph.models.MailboxProtectionUnit
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class MailboxProtectionUnit
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 MailboxProtectionUnitcreateFromDiscriminatorValue(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 modelvoidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetDirectoryObjectId(String value) Sets the directoryObjectId property value.voidsetDisplayName(String value) Sets the displayName property value.voidSets 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, setStatusMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
MailboxProtectionUnit
public MailboxProtectionUnit()Instantiates a newMailboxProtectionUnitand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static MailboxProtectionUnit 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
MailboxProtectionUnit
-
getDirectoryObjectId
Gets the directoryObjectId property value. The 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 address 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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin 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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classProtectionUnitBase- Parameters:
writer- Serialization writer to use to serialize this model
-
setDirectoryObjectId
Sets the directoryObjectId property value. The 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 address associated with the directory object.- Parameters:
value- Value to set for the email property.
-