ProvisioningError Class
- java.
lang. Object - com.
azure. resourcemanager. imagebuilder. models. ProvisioningError
- com.
Implements
public final class ProvisioningError
implements JsonSerializable<ProvisioningError>
Describes the error happened when create or update an image template.
Constructor Summary
| Constructor | Description |
|---|---|
| ProvisioningError() |
Creates an instance of Provisioning |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Provisioning |
fromJson(JsonReader jsonReader)
Reads an instance of Provisioning |
| String |
message()
Get the message property: Verbose error message about the provisioning failure. |
|
Provisioning |
provisioningErrorCode()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Provisioning |
withMessage(String message)
Set the message property: Verbose error message about the provisioning failure. |
|
Provisioning |
withProvisioningErrorCode(ProvisioningErrorCode provisioningErrorCode)
Set the provisioning |
Methods inherited from java.lang.Object
Constructor Details
ProvisioningError
public ProvisioningError()
Creates an instance of ProvisioningError class.
Method Details
fromJson
public static ProvisioningError fromJson(JsonReader jsonReader)
Reads an instance of ProvisioningError from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Verbose error message about the provisioning failure.
Returns:
provisioningErrorCode
public ProvisioningErrorCode provisioningErrorCode()
Get the provisioningErrorCode property: Error code of the provisioning failure.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public ProvisioningError withMessage(String message)
Set the message property: Verbose error message about the provisioning failure.
Parameters:
Returns:
withProvisioningErrorCode
public ProvisioningError withProvisioningErrorCode(ProvisioningErrorCode provisioningErrorCode)
Set the provisioningErrorCode property: Error code of the provisioning failure.
Parameters:
Returns: