SensitivityLabel

SensitivityLabel class

Represents the sensitivity label from Microsoft Purview Information Protection.

getAssignmentMethodType

NameDescription
getAssignmentMethodType ()Returns or sets the assignment method 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: BehaviorPropertyCollection, KeyedCollection, Collection, ReadOnlyCollection, List


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 method for the sensitivity label. Read/write SensitivityLabelAssignmentType.

Returns: void


setEnabled

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

Returns: void


setId

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

Returns: void


setRemoved

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

Returns: void


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.

Returns: void