Class MicrosoftGraphOnenoteOperationError
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOnenoteOperationError
onenoteOperationError.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphOnenoteOperationError class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: onenoteOperationError.code()Get the code property: The error code.message()Get the message property: The error message.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: onenoteOperationError.Set the code property: The error code.withMessage(String message) Set the message property: The error message.
-
Constructor Details
-
MicrosoftGraphOnenoteOperationError
public MicrosoftGraphOnenoteOperationError()Creates an instance of MicrosoftGraphOnenoteOperationError class.
-
-
Method Details
-
code
Get the code property: The error code.- Returns:
- the code value.
-
withCode
Set the code property: The error code.- Parameters:
code- the code value to set.- Returns:
- the MicrosoftGraphOnenoteOperationError object itself.
-
message
Get the message property: The error message.- Returns:
- the message value.
-
withMessage
Set the message property: The error message.- Parameters:
message- the message value to set.- Returns:
- the MicrosoftGraphOnenoteOperationError object itself.
-
additionalProperties
Get the additionalProperties property: onenoteOperationError.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphOnenoteOperationError withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: onenoteOperationError.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphOnenoteOperationError object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-