Class ChatMessagePolicyViolation

java.lang.Object
com.microsoft.graph.models.ChatMessagePolicyViolation
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class ChatMessagePolicyViolation extends Object implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
  • Field Details

    • backingStore

      @Nonnull protected com.microsoft.kiota.store.BackingStore backingStore
      Stores model information.
  • Constructor Details

    • ChatMessagePolicyViolation

      public ChatMessagePolicyViolation()
      Instantiates a new ChatMessagePolicyViolation and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static ChatMessagePolicyViolation createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a ChatMessagePolicyViolation
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getBackingStore

      @Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()
      Gets the backingStore property value. Stores model information.
      Specified by:
      getBackingStore in interface com.microsoft.kiota.store.BackedModel
      Returns:
      a BackingStore
    • getDlpAction

      @Nullable public EnumSet<ChatMessagePolicyViolationDlpActionTypes> getDlpAction()
      Gets the dlpAction property value. The action taken by the DLP provider on the message with sensitive content. Supported values are: NoneNotifySender -- Inform the sender of the violation but allow readers to read the message.BlockAccess -- Block readers from reading the message.BlockAccessExternal -- Block users outside the organization from reading the message, while allowing users within the organization to read the message.
      Returns:
      a EnumSet<ChatMessagePolicyViolationDlpActionTypes>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getJustificationText

      @Nullable public String getJustificationText()
      Gets the justificationText property value. Justification text provided by the sender of the message when overriding a policy violation.
      Returns:
      a String
    • getOdataType

      @Nullable public String getOdataType()
      Gets the @odata.type property value. The OdataType property
      Returns:
      a String
    • getPolicyTip

      @Nullable public ChatMessagePolicyViolationPolicyTip getPolicyTip()
      Gets the policyTip property value. Information to display to the message sender about why the message was flagged as a violation.
      Returns:
      a ChatMessagePolicyViolationPolicyTip
    • getUserAction

      @Nullable public EnumSet<ChatMessagePolicyViolationUserActionTypes> getUserAction()
      Gets the userAction property value. Indicates the action taken by the user on a message blocked by the DLP provider. Supported values are: NoneOverrideReportFalsePositiveWhen the DLP provider is updating the message for blocking sensitive content, userAction isn't required.
      Returns:
      a EnumSet<ChatMessagePolicyViolationUserActionTypes>
    • getVerdictDetails

      @Nullable public EnumSet<ChatMessagePolicyViolationVerdictDetailsTypes> getVerdictDetails()
      Gets the verdictDetails property value. Indicates what actions the sender may take in response to the policy violation. Supported values are: NoneAllowFalsePositiveOverride -- Allows the sender to declare the policyViolation to be an error in the DLP app and its rules, and allow readers to see the message again if the dlpAction hides it.AllowOverrideWithoutJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, without needing to provide an explanation for doing so. AllowOverrideWithJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, after providing an explanation for doing so.AllowOverrideWithoutJustification and AllowOverrideWithJustification are mutually exclusive.
      Returns:
      a EnumSet<ChatMessagePolicyViolationVerdictDetailsTypes>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      value - Value to set for the AdditionalData property.
    • setBackingStore

      public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value)
      Sets the backingStore property value. Stores model information.
      Parameters:
      value - Value to set for the backingStore property.
    • setDlpAction

      public void setDlpAction(@Nullable EnumSet<ChatMessagePolicyViolationDlpActionTypes> value)
      Sets the dlpAction property value. The action taken by the DLP provider on the message with sensitive content. Supported values are: NoneNotifySender -- Inform the sender of the violation but allow readers to read the message.BlockAccess -- Block readers from reading the message.BlockAccessExternal -- Block users outside the organization from reading the message, while allowing users within the organization to read the message.
      Parameters:
      value - Value to set for the dlpAction property.
    • setJustificationText

      public void setJustificationText(@Nullable String value)
      Sets the justificationText property value. Justification text provided by the sender of the message when overriding a policy violation.
      Parameters:
      value - Value to set for the justificationText property.
    • setOdataType

      public void setOdataType(@Nullable String value)
      Sets the @odata.type property value. The OdataType property
      Parameters:
      value - Value to set for the @odata.type property.
    • setPolicyTip

      public void setPolicyTip(@Nullable ChatMessagePolicyViolationPolicyTip value)
      Sets the policyTip property value. Information to display to the message sender about why the message was flagged as a violation.
      Parameters:
      value - Value to set for the policyTip property.
    • setUserAction

      public void setUserAction(@Nullable EnumSet<ChatMessagePolicyViolationUserActionTypes> value)
      Sets the userAction property value. Indicates the action taken by the user on a message blocked by the DLP provider. Supported values are: NoneOverrideReportFalsePositiveWhen the DLP provider is updating the message for blocking sensitive content, userAction isn't required.
      Parameters:
      value - Value to set for the userAction property.
    • setVerdictDetails

      public void setVerdictDetails(@Nullable EnumSet<ChatMessagePolicyViolationVerdictDetailsTypes> value)
      Sets the verdictDetails property value. Indicates what actions the sender may take in response to the policy violation. Supported values are: NoneAllowFalsePositiveOverride -- Allows the sender to declare the policyViolation to be an error in the DLP app and its rules, and allow readers to see the message again if the dlpAction hides it.AllowOverrideWithoutJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, without needing to provide an explanation for doing so. AllowOverrideWithJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, after providing an explanation for doing so.AllowOverrideWithoutJustification and AllowOverrideWithJustification are mutually exclusive.
      Parameters:
      value - Value to set for the verdictDetails property.