Package com.symphony.api.model
Class V3DLPPolicy
- java.lang.Object
-
- com.symphony.api.model.V3DLPPolicy
-
public class V3DLPPolicy extends Object
A policy is the main entity of V3 policy/rule system. It is responsible to define rules and add scope constraints to the engine.
-
-
Constructor Summary
Constructors Constructor Description V3DLPPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V3DLPPolicy
active(Boolean active)
V3DLPPolicy
addAppliesToItem(V3DLPPolicyAppliesTo appliesToItem)
V3DLPPolicy
addScopesItem(String scopesItem)
V3DLPPolicy
appliesTo(List<V3DLPPolicyAppliesTo> appliesTo)
V3DLPPolicy
creationDate(Long creationDate)
V3DLPPolicy
creatorId(Long creatorId)
V3DLPPolicy
deleted(Boolean deleted)
List<V3DLPPolicyAppliesTo>
getAppliesTo()
Get appliesToLong
getCreationDate()
Creation time of the policy in milliseconds elapsed as of epoch time.Long
getCreatorId()
Numeric userId of the creator.String
getId()
Unique identifier for policy.Long
getLastDisabledDate()
Recent disable time of the policy in milliseconds elapsed as of epoch.Long
getLastUpdatedDate()
Recent update time of the policy in milliseconds elapsed as of epoch.String
getName()
Unique name of policy, max 30 characters.String
getPolicyId()
Policy Id.List<String>
getScopes()
List of communication scopes.String
getVersion()
The version of the policy, in format \"major.minor\".V3DLPPolicy
id(String id)
Boolean
isisActive()
Indicate whether the policy is active or not.Boolean
isisDeleted()
Indicate whether the policy is deleted or not.Boolean
isisSystemPolicy()
Get systemPolicyV3DLPPolicy
lastDisabledDate(Long lastDisabledDate)
V3DLPPolicy
lastUpdatedDate(Long lastUpdatedDate)
V3DLPPolicy
name(String name)
V3DLPPolicy
policyId(String policyId)
V3DLPPolicy
scopes(List<String> scopes)
void
setActive(Boolean active)
void
setAppliesTo(List<V3DLPPolicyAppliesTo> appliesTo)
void
setCreationDate(Long creationDate)
void
setCreatorId(Long creatorId)
void
setDeleted(Boolean deleted)
void
setId(String id)
void
setLastDisabledDate(Long lastDisabledDate)
void
setLastUpdatedDate(Long lastUpdatedDate)
void
setName(String name)
void
setPolicyId(String policyId)
void
setScopes(List<String> scopes)
void
setSystemPolicy(Boolean systemPolicy)
void
setVersion(String version)
V3DLPPolicy
systemPolicy(Boolean systemPolicy)
String
toString()
V3DLPPolicy
version(String version)
-
-
-
Method Detail
-
getId
public String getId()
Unique identifier for policy.- Returns:
- id
-
setId
public void setId(String id)
-
id
public V3DLPPolicy id(String id)
-
getPolicyId
public String getPolicyId()
Policy Id.- Returns:
- policyId
-
setPolicyId
public void setPolicyId(String policyId)
-
policyId
public V3DLPPolicy policyId(String policyId)
-
getVersion
public String getVersion()
The version of the policy, in format \"major.minor\". Initial value will set by backend as \"3.0\" when created. Whenever the policy 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 V3DLPPolicy version(String version)
-
getName
public String getName()
Unique name of 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 V3DLPPolicy name(String name)
-
getCreatorId
public Long getCreatorId()
Numeric userId of the creator.- Returns:
- creatorId
-
setCreatorId
public void setCreatorId(Long creatorId)
-
creatorId
public V3DLPPolicy creatorId(Long creatorId)
-
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 V3DLPPolicy scopes(List<String> scopes)
-
addScopesItem
public V3DLPPolicy addScopesItem(String scopesItem)
-
getAppliesTo
public List<V3DLPPolicyAppliesTo> getAppliesTo()
Get appliesTo- Returns:
- appliesTo
-
setAppliesTo
public void setAppliesTo(List<V3DLPPolicyAppliesTo> appliesTo)
-
appliesTo
public V3DLPPolicy appliesTo(List<V3DLPPolicyAppliesTo> appliesTo)
-
addAppliesToItem
public V3DLPPolicy addAppliesToItem(V3DLPPolicyAppliesTo appliesToItem)
-
isisActive
public Boolean isisActive()
Indicate whether the policy is active or not.- Returns:
- active
-
setActive
public void setActive(Boolean active)
-
active
public V3DLPPolicy active(Boolean active)
-
isisDeleted
public Boolean isisDeleted()
Indicate whether the policy is deleted or not.- Returns:
- deleted
-
setDeleted
public void setDeleted(Boolean deleted)
-
deleted
public V3DLPPolicy deleted(Boolean deleted)
-
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 V3DLPPolicy creationDate(Long creationDate)
-
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 V3DLPPolicy lastUpdatedDate(Long lastUpdatedDate)
-
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 V3DLPPolicy lastDisabledDate(Long lastDisabledDate)
-
isisSystemPolicy
public Boolean isisSystemPolicy()
Get systemPolicy- Returns:
- systemPolicy
-
setSystemPolicy
public void setSystemPolicy(Boolean systemPolicy)
-
systemPolicy
public V3DLPPolicy systemPolicy(Boolean systemPolicy)
-
-