Class V3DLPPolicy

java.lang.Object
com.symphony.bdk.gen.api.model.V3DLPPolicy

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-26T16:14:53.869723549Z[Etc/UTC]") 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.
  • Field Details

  • Constructor Details

    • V3DLPPolicy

      public V3DLPPolicy()
  • Method Details

    • id

      public V3DLPPolicy id(String id)
    • getId

      @Nullable public String getId()
      Unique identifier for policy.
      Returns:
      id
    • setId

      public void setId(String id)
    • policyId

      public V3DLPPolicy policyId(String policyId)
    • getPolicyId

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

      public void setPolicyId(String policyId)
    • version

      public V3DLPPolicy version(String version)
    • getVersion

      @Nullable 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)
    • name

      public V3DLPPolicy name(String name)
    • getName

      @Nullable 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)
    • creatorId

      public V3DLPPolicy creatorId(Long creatorId)
    • getCreatorId

      @Nullable public Long getCreatorId()
      Numeric userId of the creator.
      Returns:
      creatorId
    • setCreatorId

      public void setCreatorId(Long creatorId)
    • scopes

      public V3DLPPolicy scopes(List<String> scopes)
    • addScopesItem

      public V3DLPPolicy addScopesItem(String scopesItem)
    • getScopes

      @Nullable 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)
    • appliesTo

      public V3DLPPolicy appliesTo(List<V3DLPPolicyAppliesTo> appliesTo)
    • addAppliesToItem

      public V3DLPPolicy addAppliesToItem(V3DLPPolicyAppliesTo appliesToItem)
    • getAppliesTo

      public List<V3DLPPolicyAppliesTo> getAppliesTo()
      Get appliesTo
      Returns:
      appliesTo
    • setAppliesTo

      public void setAppliesTo(List<V3DLPPolicyAppliesTo> appliesTo)
    • active

      public V3DLPPolicy active(Boolean active)
    • getActive

      @Nullable public Boolean getActive()
      Indicate whether the policy is active or not.
      Returns:
      active
    • setActive

      public void setActive(Boolean active)
    • deleted

      public V3DLPPolicy deleted(Boolean deleted)
    • getDeleted

      @Nullable public Boolean getDeleted()
      Indicate whether the policy is deleted or not.
      Returns:
      deleted
    • setDeleted

      public void setDeleted(Boolean deleted)
    • creationDate

      public V3DLPPolicy creationDate(Long creationDate)
    • getCreationDate

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

      public void setCreationDate(Long creationDate)
    • lastUpdatedDate

      public V3DLPPolicy lastUpdatedDate(Long lastUpdatedDate)
    • getLastUpdatedDate

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

      public void setLastUpdatedDate(Long lastUpdatedDate)
    • lastDisabledDate

      public V3DLPPolicy lastDisabledDate(Long lastDisabledDate)
    • getLastDisabledDate

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

      public void setLastDisabledDate(Long lastDisabledDate)
    • systemPolicy

      public V3DLPPolicy systemPolicy(Boolean systemPolicy)
    • getSystemPolicy

      @Nullable public Boolean getSystemPolicy()
      Get systemPolicy
      Returns:
      systemPolicy
    • setSystemPolicy

      public void setSystemPolicy(Boolean systemPolicy)
    • equals

      public boolean equals(Object o)
      Return true if this V3DLPPolicy object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object