Package com.symphony.api.model
Class V1DLPPolicy
- java.lang.Object
-
- com.symphony.api.model.V1DLPPolicy
-
public class V1DLPPolicy extends Object
The policy object for expression filter, one policy can have multiple dictionaries
-
-
Constructor Summary
Constructors Constructor Description V1DLPPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1DLPPolicy
active(Boolean active)
V1DLPPolicy
addContentTypesItem(String contentTypesItem)
V1DLPPolicy
addDictionaryRefsItem(V1DLPDictionaryRef dictionaryRefsItem)
V1DLPPolicy
addScopesItem(String scopesItem)
V1DLPPolicy
contentTypes(List<String> contentTypes)
V1DLPPolicy
creationDate(Long creationDate)
V1DLPPolicy
creatorId(String creatorId)
V1DLPPolicy
dictionaryRefs(List<V1DLPDictionaryRef> dictionaryRefs)
List<String>
getContentTypes()
The list of content types that policy should apply to.Long
getCreationDate()
Creation time of the policy in milliseconds elapsed as of epoch time.String
getCreatorId()
Numeric userId of the creatorList<V1DLPDictionaryRef>
getDictionaryRefs()
List of dictionaries.Long
getLastDisabledDate()
Recent disable time of the policy in milliseconds elapsed as of epoch time.Long
getLastUpdatedDate()
Recent update time of the policy in milliseconds elapsed as of epoch time.String
getName()
Unique name of a policy, max 30 characters.String
getPolicyId()
Policy IdList<String>
getScopes()
List of communication scopes.String
getType()
Type of policy.String
getVersion()
The version of a dictionary, in format \"major.minor\".Boolean
isActive()
Indicate whether the policy is active or notV1DLPPolicy
lastDisabledDate(Long lastDisabledDate)
V1DLPPolicy
lastUpdatedDate(Long lastUpdatedDate)
V1DLPPolicy
name(String name)
V1DLPPolicy
policyId(String policyId)
V1DLPPolicy
scopes(List<String> scopes)
void
setActive(Boolean active)
void
setContentTypes(List<String> contentTypes)
void
setCreationDate(Long creationDate)
void
setCreatorId(String creatorId)
void
setDictionaryRefs(List<V1DLPDictionaryRef> dictionaryRefs)
void
setLastDisabledDate(Long lastDisabledDate)
void
setLastUpdatedDate(Long lastUpdatedDate)
void
setName(String name)
void
setPolicyId(String policyId)
void
setScopes(List<String> scopes)
void
setType(String type)
void
setVersion(String version)
String
toString()
V1DLPPolicy
type(String type)
V1DLPPolicy
version(String version)
-
-
-
Method Detail
-
isActive
public Boolean isActive()
Indicate whether the policy is active or not- Returns:
- active
-
setActive
public void setActive(Boolean active)
-
active
public V1DLPPolicy active(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
-
contentTypes
public V1DLPPolicy contentTypes(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)
-
creationDate
public V1DLPPolicy creationDate(Long creationDate)
-
getCreatorId
public String getCreatorId()
Numeric userId of the creator- Returns:
- creatorId
-
setCreatorId
public void setCreatorId(String creatorId)
-
creatorId
public V1DLPPolicy creatorId(String creatorId)
-
getDictionaryRefs
public List<V1DLPDictionaryRef> getDictionaryRefs()
List of dictionaries.- Returns:
- dictionaryRefs
-
setDictionaryRefs
public void setDictionaryRefs(List<V1DLPDictionaryRef> dictionaryRefs)
-
dictionaryRefs
public V1DLPPolicy dictionaryRefs(List<V1DLPDictionaryRef> dictionaryRefs)
-
addDictionaryRefsItem
public V1DLPPolicy addDictionaryRefsItem(V1DLPDictionaryRef dictionaryRefsItem)
-
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)
-
name
public V1DLPPolicy name(String name)
-
getPolicyId
public String getPolicyId()
Policy Id- Returns:
- policyId
-
setPolicyId
public void setPolicyId(String policyId)
-
policyId
public V1DLPPolicy policyId(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
-
scopes
public V1DLPPolicy scopes(List<String> scopes)
-
addScopesItem
public V1DLPPolicy addScopesItem(String scopesItem)
-
getType
public String getType()
Type of policy. Possible values \"Block\" or \"Warn\".- Returns:
- type
-
setType
public void setType(String type)
-
type
public V1DLPPolicy type(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)
-
version
public V1DLPPolicy version(String version)
-
-