你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphChatMessagePolicyViolation Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChatMessagePolicyViolation

Implements

public final class MicrosoftGraphChatMessagePolicyViolation
implements JsonSerializable<MicrosoftGraphChatMessagePolicyViolation>

chatMessagePolicyViolation.

Constructor Summary

Constructor Description
MicrosoftGraphChatMessagePolicyViolation()

Creates an instance of MicrosoftGraphChatMessagePolicyViolation class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: chatMessagePolicyViolation.

MicrosoftGraphChatMessagePolicyViolationDlpActionTypes dlpAction()

Get the dlpAction property: chatMessagePolicyViolationDlpActionTypes.

static MicrosoftGraphChatMessagePolicyViolation fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphChatMessagePolicyViolation from the JsonReader.

String justificationText()

Get the justificationText property: Justification text provided by the sender of the message when overriding a policy violation.

MicrosoftGraphChatMessagePolicyViolationPolicyTip policyTip()

Get the policyTip property: chatMessagePolicyViolationPolicyTip.

JsonWriter toJson(JsonWriter jsonWriter)
MicrosoftGraphChatMessagePolicyViolationUserActionTypes userAction()

Get the userAction property: chatMessagePolicyViolationUserActionTypes.

void validate()

Validates the instance.

MicrosoftGraphChatMessagePolicyViolationVerdictDetailsTypes verdictDetails()

Get the verdictDetails property: chatMessagePolicyViolationVerdictDetailsTypes.

MicrosoftGraphChatMessagePolicyViolation withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: chatMessagePolicyViolation.

MicrosoftGraphChatMessagePolicyViolation withDlpAction(MicrosoftGraphChatMessagePolicyViolationDlpActionTypes dlpAction)

Set the dlpAction property: chatMessagePolicyViolationDlpActionTypes.

MicrosoftGraphChatMessagePolicyViolation withJustificationText(String justificationText)

Set the justificationText property: Justification text provided by the sender of the message when overriding a policy violation.

MicrosoftGraphChatMessagePolicyViolation withPolicyTip(MicrosoftGraphChatMessagePolicyViolationPolicyTip policyTip)

Set the policyTip property: chatMessagePolicyViolationPolicyTip.

MicrosoftGraphChatMessagePolicyViolation withUserAction(MicrosoftGraphChatMessagePolicyViolationUserActionTypes userAction)

Set the userAction property: chatMessagePolicyViolationUserActionTypes.

MicrosoftGraphChatMessagePolicyViolation withVerdictDetails(MicrosoftGraphChatMessagePolicyViolationVerdictDetailsTypes verdictDetails)

Set the verdictDetails property: chatMessagePolicyViolationVerdictDetailsTypes.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphChatMessagePolicyViolation

public MicrosoftGraphChatMessagePolicyViolation()

Creates an instance of MicrosoftGraphChatMessagePolicyViolation class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: chatMessagePolicyViolation.

Returns:

the additionalProperties value.

dlpAction

public MicrosoftGraphChatMessagePolicyViolationDlpActionTypes dlpAction()

Get the dlpAction property: chatMessagePolicyViolationDlpActionTypes.

Returns:

the dlpAction value.

fromJson

public static MicrosoftGraphChatMessagePolicyViolation fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphChatMessagePolicyViolation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphChatMessagePolicyViolation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphChatMessagePolicyViolation.

justificationText

public String justificationText()

Get the justificationText property: Justification text provided by the sender of the message when overriding a policy violation.

Returns:

the justificationText value.

policyTip

public MicrosoftGraphChatMessagePolicyViolationPolicyTip policyTip()

Get the policyTip property: chatMessagePolicyViolationPolicyTip.

Returns:

the policyTip value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userAction

public MicrosoftGraphChatMessagePolicyViolationUserActionTypes userAction()

Get the userAction property: chatMessagePolicyViolationUserActionTypes.

Returns:

the userAction value.

validate

public void validate()

Validates the instance.

verdictDetails

public MicrosoftGraphChatMessagePolicyViolationVerdictDetailsTypes verdictDetails()

Get the verdictDetails property: chatMessagePolicyViolationVerdictDetailsTypes.

Returns:

the verdictDetails value.

withAdditionalProperties

public MicrosoftGraphChatMessagePolicyViolation withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: chatMessagePolicyViolation.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphChatMessagePolicyViolation object itself.

withDlpAction

public MicrosoftGraphChatMessagePolicyViolation withDlpAction(MicrosoftGraphChatMessagePolicyViolationDlpActionTypes dlpAction)

Set the dlpAction property: chatMessagePolicyViolationDlpActionTypes.

Parameters:

dlpAction - the dlpAction value to set.

Returns:

the MicrosoftGraphChatMessagePolicyViolation object itself.

withJustificationText

public MicrosoftGraphChatMessagePolicyViolation withJustificationText(String justificationText)

Set the justificationText property: Justification text provided by the sender of the message when overriding a policy violation.

Parameters:

justificationText - the justificationText value to set.

Returns:

the MicrosoftGraphChatMessagePolicyViolation object itself.

withPolicyTip

public MicrosoftGraphChatMessagePolicyViolation withPolicyTip(MicrosoftGraphChatMessagePolicyViolationPolicyTip policyTip)

Set the policyTip property: chatMessagePolicyViolationPolicyTip.

Parameters:

policyTip - the policyTip value to set.

Returns:

the MicrosoftGraphChatMessagePolicyViolation object itself.

withUserAction

public MicrosoftGraphChatMessagePolicyViolation withUserAction(MicrosoftGraphChatMessagePolicyViolationUserActionTypes userAction)

Set the userAction property: chatMessagePolicyViolationUserActionTypes.

Parameters:

userAction - the userAction value to set.

Returns:

the MicrosoftGraphChatMessagePolicyViolation object itself.

withVerdictDetails

public MicrosoftGraphChatMessagePolicyViolation withVerdictDetails(MicrosoftGraphChatMessagePolicyViolationVerdictDetailsTypes verdictDetails)

Set the verdictDetails property: chatMessagePolicyViolationVerdictDetailsTypes.

Parameters:

verdictDetails - the verdictDetails value to set.

Returns:

the MicrosoftGraphChatMessagePolicyViolation object itself.

Applies to