Class V1DLPPolicy


  • public class V1DLPPolicy
    extends Object
    The policy object for expression filter, one policy can have multiple dictionaries
    • Constructor Detail

      • V1DLPPolicy

        public V1DLPPolicy()
    • Method Detail

      • isActive

        public Boolean isActive()
        Indicate whether the policy is active or not
        Returns:
        active
      • setActive

        public void setActive​(Boolean active)
      • getContentTypes

        public List<String> getContentTypes()
        The list of content types that policy should apply to. Cannot be empty. Policy content types could be either of \"Messages\", \"RoomMeta\", \"SignalMeta\". Default is set to [\"Messages\"] if not specified.
        Returns:
        contentTypes
      • setContentTypes

        public void setContentTypes​(List<String> contentTypes)
      • addContentTypesItem

        public V1DLPPolicy addContentTypesItem​(String contentTypesItem)
      • getCreationDate

        public Long getCreationDate()
        Creation time of the policy in milliseconds elapsed as of epoch time.
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(Long creationDate)
      • getCreatorId

        public String getCreatorId()
        Numeric userId of the creator
        Returns:
        creatorId
      • setCreatorId

        public void setCreatorId​(String creatorId)
      • getDictionaryRefs

        public List<V1DLPDictionaryRef> getDictionaryRefs()
        List of dictionaries.
        Returns:
        dictionaryRefs
      • getLastDisabledDate

        public Long getLastDisabledDate()
        Recent disable time of the policy in milliseconds elapsed as of epoch time.
        Returns:
        lastDisabledDate
      • setLastDisabledDate

        public void setLastDisabledDate​(Long lastDisabledDate)
      • lastDisabledDate

        public V1DLPPolicy lastDisabledDate​(Long lastDisabledDate)
      • getLastUpdatedDate

        public Long getLastUpdatedDate()
        Recent update time of the policy in milliseconds elapsed as of epoch time.
        Returns:
        lastUpdatedDate
      • setLastUpdatedDate

        public void setLastUpdatedDate​(Long lastUpdatedDate)
      • lastUpdatedDate

        public V1DLPPolicy lastUpdatedDate​(Long lastUpdatedDate)
      • getName

        public String getName()
        Unique name of a policy, max 30 characters. Cannot be empty. All the leading and trailing blank spaces are trimmed.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getPolicyId

        public String getPolicyId()
        Policy Id
        Returns:
        policyId
      • setPolicyId

        public void setPolicyId​(String policyId)
      • getScopes

        public List<String> getScopes()
        List of communication scopes. Possible values are \"Internal\" (for Internal conversations) or \"External\" (for External conversations). You can apply both scopes if you set it to [\"Internal\", \"External\"].
        Returns:
        scopes
      • setScopes

        public void setScopes​(List<String> scopes)
      • getType

        public String getType()
        Type of policy. Possible values \"Block\" or \"Warn\".
        Returns:
        type
      • setType

        public void setType​(String type)
      • getVersion

        public String getVersion()
        The version of a dictionary, in format \"major.minor\". Initial value will set by backend as \"1.0\" when created. Whenever the dictionary version needs to be changed, the minor version by 1 unless minor == 999, then the major version is increased by 1 until it reaches 999.
        Returns:
        version
      • setVersion

        public void setVersion​(String version)