Class V1DLPPolicy

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-05T16:35:19.322971670Z[Etc/UTC]") public class V1DLPPolicy extends Object
The policy object for expression filter, one policy can have multiple dictionaries
  • Field Details

  • Constructor Details

    • V1DLPPolicy

      public V1DLPPolicy()
  • Method Details

    • active

      public V1DLPPolicy active(Boolean active)
    • getActive

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

      public void setActive(Boolean active)
    • contentTypes

      public V1DLPPolicy contentTypes(List<String> contentTypes)
    • addContentTypesItem

      public V1DLPPolicy addContentTypesItem(String contentTypesItem)
    • 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)
    • creationDate

      public V1DLPPolicy 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)
    • creatorId

      public V1DLPPolicy creatorId(String creatorId)
    • getCreatorId

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

      public void setCreatorId(String creatorId)
    • dictionaryRefs

      public V1DLPPolicy dictionaryRefs(List<V1DLPDictionaryRef> dictionaryRefs)
    • addDictionaryRefsItem

      public V1DLPPolicy addDictionaryRefsItem(V1DLPDictionaryRef dictionaryRefsItem)
    • getDictionaryRefs

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

      public void setDictionaryRefs(List<V1DLPDictionaryRef> dictionaryRefs)
    • lastDisabledDate

      public V1DLPPolicy 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)
    • lastUpdatedDate

      public V1DLPPolicy 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)
    • name

      public V1DLPPolicy name(String name)
    • 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)
    • policyId

      public V1DLPPolicy policyId(String policyId)
    • getPolicyId

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

      public void setPolicyId(String policyId)
    • scopes

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

      public V1DLPPolicy addScopesItem(String scopesItem)
    • 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)
    • type

      public V1DLPPolicy type(String type)
    • getType

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

      public void setType(String type)
    • version

      public V1DLPPolicy version(String version)
    • getVersion

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

      public boolean equals(Object o)
      Return true if this V1DLPPolicy 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