SensitivityLabel

SensitivityLabel class

Represents the sensitivity label from Microsoft Purview Information Protection.

getAssignmentMethodType

NameDescription
getAssignmentMethodType ()Returns or sets the assignment function for the sensitivity label. Read/write SensitivityLabelAssignmentType.

Returns: int


getContentMarkTypes

NameDescription
getContentMarkTypes ()Returns the list of types of content marking that ought to be applied to a file.

Returns: KeyedCollection, BehaviorPropertyCollection, Collection, List, ReadOnlyCollection


getId

NameDescription
getId ()Returns or sets the id of sensitivity label. Read/write String.

Returns: String


getSiteId

NameDescription
getSiteId ()Returns or sets the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label. Read/write java.util.UUID.

Returns: UUID


isEnabled

NameDescription
isEnabled ()Indicates whether the sensitivity label is enabled.

Returns: boolean


isRemoved

NameDescription
isRemoved ()Indicates whether the sensitivity label was removed.

Returns: boolean


setAssignmentMethodType

NameDescription
setAssignmentMethodType (int)Returns or sets the assignment function for the sensitivity label. Read/write SensitivityLabelAssignmentType.

setEnabled

NameDescription
setEnabled (boolean)Indicates whether the sensitivity label is enabled.

setId

NameDescription
setId (String)Returns or sets the id of sensitivity label. Read/write String.

setRemoved

NameDescription
setRemoved (boolean)Indicates whether the sensitivity label was removed.

setSiteId

NameDescription
setSiteId (UUID)Returns or sets the Azure Active Directory (Azure AD) site identifier corresponding to the sensitivity label policy which describes the sensitivity label. Read/write java.util.UUID.