CopyCompletionError Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CopyCompletionError
- com.
Implements
public final class CopyCompletionError
implements JsonSerializable<CopyCompletionError>
Indicates the error details if the background copy of a resource created via the CopyStart operation fails.
Constructor Summary
Constructor | Description |
---|---|
CopyCompletionError() |
Creates an instance of Copy |
Method Summary
Modifier and Type | Method and Description |
---|---|
Copy |
errorCode()
Get the error |
String |
errorMessage()
Get the error |
static
Copy |
fromJson(JsonReader jsonReader)
Reads an instance of Copy |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Copy |
withErrorCode(CopyCompletionErrorReason errorCode)
Set the error |
Copy |
withErrorMessage(String errorMessage)
Set the error |
Methods inherited from java.lang.Object
Constructor Details
CopyCompletionError
public CopyCompletionError()
Creates an instance of CopyCompletionError class.
Method Details
errorCode
public CopyCompletionErrorReason errorCode()
Get the errorCode property: Indicates the error code if the background copy of a resource created via the CopyStart operation fails.
Returns:
errorMessage
public String errorMessage()
Get the errorMessage property: Indicates the error message if the background copy of a resource created via the CopyStart operation fails.
Returns:
fromJson
public static CopyCompletionError fromJson(JsonReader jsonReader)
Reads an instance of CopyCompletionError from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withErrorCode
public CopyCompletionError withErrorCode(CopyCompletionErrorReason errorCode)
Set the errorCode property: Indicates the error code if the background copy of a resource created via the CopyStart operation fails.
Parameters:
Returns:
withErrorMessage
public CopyCompletionError withErrorMessage(String errorMessage)
Set the errorMessage property: Indicates the error message if the background copy of a resource created via the CopyStart operation fails.
Parameters:
Returns:
Applies to
Azure SDK for Java