Class RetentionLabel
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.security.RetentionLabel
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class RetentionLabel
extends Entity
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 RetentionLabel
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the actionAfterRetentionPeriod property value.Gets the behaviorDuringRetentionPeriod property value.Gets the createdBy property value.Gets the createdDateTime property value.Gets the defaultRecordBehavior property value.Gets the descriptionForAdmins property value.Gets the descriptionForUsers property value.Gets the descriptors property value.Gets the displayName property value.Gets the dispositionReviewStages property value.The deserialization information for the current modelGets the isInUse property value.Gets the labelToBeApplied property value.Gets the lastModifiedBy property value.Gets the lastModifiedDateTime property value.Gets the retentionDuration property value.Gets the retentionEventType property value.Gets the retentionTrigger property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the actionAfterRetentionPeriod property value.void
Sets the behaviorDuringRetentionPeriod property value.void
setCreatedBy
(IdentitySet value) Sets the createdBy property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
Sets the defaultRecordBehavior property value.void
setDescriptionForAdmins
(String value) Sets the descriptionForAdmins property value.void
setDescriptionForUsers
(String value) Sets the descriptionForUsers property value.void
setDescriptors
(FilePlanDescriptor value) Sets the descriptors property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the dispositionReviewStages property value.void
setIsInUse
(Boolean value) Sets the isInUse property value.void
setLabelToBeApplied
(String value) Sets the labelToBeApplied property value.void
setLastModifiedBy
(IdentitySet value) Sets the lastModifiedBy property value.void
Sets the lastModifiedDateTime property value.void
Sets the retentionDuration property value.void
Sets the retentionEventType property value.void
Sets the retentionTrigger property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
RetentionLabel
public RetentionLabel()Instantiates a newRetentionLabel
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static RetentionLabel 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
RetentionLabel
-
getActionAfterRetentionPeriod
Gets the actionAfterRetentionPeriod property value. Specifies the action to take on the labeled document after the period specified by the retentionDuration property expires. The possible values are: none, delete, startDispositionReview, unknownFutureValue.- Returns:
- a
ActionAfterRetentionPeriod
-
getBehaviorDuringRetentionPeriod
Gets the behaviorDuringRetentionPeriod property value. Specifies how the behavior of a document with this label should be during the retention period. The possible values are: doNotRetain, retain, retainAsRecord, retainAsRegulatoryRecord, unknownFutureValue.- Returns:
- a
BehaviorDuringRetentionPeriod
-
getCreatedBy
Gets the createdBy property value. Represents the user who created the retentionLabel.- Returns:
- a
IdentitySet
-
getCreatedDateTime
Gets the createdDateTime property value. Represents the date and time in which the retentionLabel is created.- Returns:
- a
OffsetDateTime
-
getDefaultRecordBehavior
Gets the defaultRecordBehavior property value. Specifies the locked or unlocked state of a record label when it is created.The possible values are: startLocked, startUnlocked, unknownFutureValue.- Returns:
- a
DefaultRecordBehavior
-
getDescriptionForAdmins
Gets the descriptionForAdmins property value. Provides label information for the admin. Optional.- Returns:
- a
String
-
getDescriptionForUsers
Gets the descriptionForUsers property value. Provides the label information for the user. Optional.- Returns:
- a
String
-
getDescriptors
Gets the descriptors property value. Represents out-of-the-box values that provide more options to improve the manageability and organization of the content you need to label.- Returns:
- a
FilePlanDescriptor
-
getDisplayName
Gets the displayName property value. Unique string that defines a label name.- Returns:
- a
String
-
getDispositionReviewStages
Gets the dispositionReviewStages property value. When action at the end of retention is chosen as 'dispositionReview', dispositionReviewStages specifies a sequential set of stages with at least one reviewer in each stage.- Returns:
- a
List<DispositionReviewStage>
-
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 classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsInUse
Gets the isInUse property value. Specifies whether the label is currently being used.- Returns:
- a
Boolean
-
getLabelToBeApplied
Gets the labelToBeApplied property value. Specifies the replacement label to be applied automatically after the retention period of the current label ends.- Returns:
- a
String
-
getLastModifiedBy
Gets the lastModifiedBy property value. The user who last modified the retentionLabel.- Returns:
- a
IdentitySet
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. The latest date time when the retentionLabel was modified.- Returns:
- a
OffsetDateTime
-
getRetentionDuration
Gets the retentionDuration property value. Specifies the number of days to retain the content.- Returns:
- a
RetentionDuration
-
getRetentionEventType
Gets the retentionEventType property value. Represents the type associated with a retention event.- Returns:
- a
RetentionEventType
-
getRetentionTrigger
Gets the retentionTrigger property value. Specifies whether the retention duration is calculated from the content creation date, labeled date, or last modification date. The possible values are: dateLabeled, dateCreated, dateModified, dateOfEvent, unknownFutureValue.- Returns:
- a
RetentionTrigger
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setActionAfterRetentionPeriod
Sets the actionAfterRetentionPeriod property value. Specifies the action to take on the labeled document after the period specified by the retentionDuration property expires. The possible values are: none, delete, startDispositionReview, unknownFutureValue.- Parameters:
value
- Value to set for the actionAfterRetentionPeriod property.
-
setBehaviorDuringRetentionPeriod
Sets the behaviorDuringRetentionPeriod property value. Specifies how the behavior of a document with this label should be during the retention period. The possible values are: doNotRetain, retain, retainAsRecord, retainAsRegulatoryRecord, unknownFutureValue.- Parameters:
value
- Value to set for the behaviorDuringRetentionPeriod property.
-
setCreatedBy
Sets the createdBy property value. Represents the user who created the retentionLabel.- Parameters:
value
- Value to set for the createdBy property.
-
setCreatedDateTime
Sets the createdDateTime property value. Represents the date and time in which the retentionLabel is created.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDefaultRecordBehavior
Sets the defaultRecordBehavior property value. Specifies the locked or unlocked state of a record label when it is created.The possible values are: startLocked, startUnlocked, unknownFutureValue.- Parameters:
value
- Value to set for the defaultRecordBehavior property.
-
setDescriptionForAdmins
Sets the descriptionForAdmins property value. Provides label information for the admin. Optional.- Parameters:
value
- Value to set for the descriptionForAdmins property.
-
setDescriptionForUsers
Sets the descriptionForUsers property value. Provides the label information for the user. Optional.- Parameters:
value
- Value to set for the descriptionForUsers property.
-
setDescriptors
Sets the descriptors property value. Represents out-of-the-box values that provide more options to improve the manageability and organization of the content you need to label.- Parameters:
value
- Value to set for the descriptors property.
-
setDisplayName
Sets the displayName property value. Unique string that defines a label name.- Parameters:
value
- Value to set for the displayName property.
-
setDispositionReviewStages
Sets the dispositionReviewStages property value. When action at the end of retention is chosen as 'dispositionReview', dispositionReviewStages specifies a sequential set of stages with at least one reviewer in each stage.- Parameters:
value
- Value to set for the dispositionReviewStages property.
-
setIsInUse
Sets the isInUse property value. Specifies whether the label is currently being used.- Parameters:
value
- Value to set for the isInUse property.
-
setLabelToBeApplied
Sets the labelToBeApplied property value. Specifies the replacement label to be applied automatically after the retention period of the current label ends.- Parameters:
value
- Value to set for the labelToBeApplied property.
-
setLastModifiedBy
Sets the lastModifiedBy property value. The user who last modified the retentionLabel.- Parameters:
value
- Value to set for the lastModifiedBy property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. The latest date time when the retentionLabel was modified.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setRetentionDuration
Sets the retentionDuration property value. Specifies the number of days to retain the content.- Parameters:
value
- Value to set for the retentionDuration property.
-
setRetentionEventType
Sets the retentionEventType property value. Represents the type associated with a retention event.- Parameters:
value
- Value to set for the retentionEventType property.
-
setRetentionTrigger
Sets the retentionTrigger property value. Specifies whether the retention duration is calculated from the content creation date, labeled date, or last modification date. The possible values are: dateLabeled, dateCreated, dateModified, dateOfEvent, unknownFutureValue.- Parameters:
value
- Value to set for the retentionTrigger property.
-