Class DeleteCertificateError
java.lang.Object
com.azure.resourcemanager.batch.models.DeleteCertificateError
An error response from the Batch service.
-
Constructor Summary
ConstructorDescriptionCreates an instance of DeleteCertificateError class. -
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: An identifier for the error.details()
Get the details property: A list of additional details about the error.message()
Get the message property: A message describing the error, intended to be suitable for display in a user interface.target()
Get the target property: The target of the particular error.void
validate()
Validates the instance.Set the code property: An identifier for the error.withDetails
(List<DeleteCertificateError> details) Set the details property: A list of additional details about the error.withMessage
(String message) Set the message property: A message describing the error, intended to be suitable for display in a user interface.withTarget
(String target) Set the target property: The target of the particular error.
-
Constructor Details
-
DeleteCertificateError
public DeleteCertificateError()Creates an instance of DeleteCertificateError class.
-
-
Method Details
-
code
Get the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.- Returns:
- the code value.
-
withCode
Set the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.- Parameters:
code
- the code value to set.- Returns:
- the DeleteCertificateError object itself.
-
message
Get the message property: A message describing the error, intended to be suitable for display in a user interface.- Returns:
- the message value.
-
withMessage
Set the message property: A message describing the error, intended to be suitable for display in a user interface.- Parameters:
message
- the message value to set.- Returns:
- the DeleteCertificateError object itself.
-
target
Get the target property: The target of the particular error. For example, the name of the property in error.- Returns:
- the target value.
-
withTarget
Set the target property: The target of the particular error. For example, the name of the property in error.- Parameters:
target
- the target value to set.- Returns:
- the DeleteCertificateError object itself.
-
details
Get the details property: A list of additional details about the error.- Returns:
- the details value.
-
withDetails
Set the details property: A list of additional details about the error.- Parameters:
details
- the details value to set.- Returns:
- the DeleteCertificateError object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-