Class OperationResultContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.OperationResultContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class OperationResultContractInner
extends com.azure.core.management.ProxyResource
Long Running Git Operation Results.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OperationResultContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the actionLog property: This property if only provided as part of the TenantConfiguration_Validate operation.error()Get the error property: Error Body Contract.static OperationResultContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationResultContractInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the id property: Operation result identifier.name()Get the name property: The name of the resource.Get the resultInfo property: Optional result info.started()Get the started property: Start time of an async operation.status()Get the status property: Status of an async operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.updated()Get the updated property: Last update time of an async operation.voidvalidate()Validates the instance.withError(ErrorResponseBody error) Set the error property: Error Body Contract.Set the id property: Operation result identifier.withResultInfo(String resultInfo) Set the resultInfo property: Optional result info.withStarted(OffsetDateTime started) Set the started property: Start time of an async operation.withStatus(AsyncOperationStatus status) Set the status property: Status of an async operation.withUpdated(OffsetDateTime updated) Set the updated property: Last update time of an async operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OperationResultContractInner
public OperationResultContractInner()Creates an instance of OperationResultContractInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
idPropertiesId
Get the id property: Operation result identifier.- Returns:
- the id value.
-
withIdPropertiesId
Set the id property: Operation result identifier.- Parameters:
id- the id value to set.- Returns:
- the OperationResultContractInner object itself.
-
status
Get the status property: Status of an async operation.- Returns:
- the status value.
-
withStatus
Set the status property: Status of an async operation.- Parameters:
status- the status value to set.- Returns:
- the OperationResultContractInner object itself.
-
started
Get the started property: Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the started value.
-
withStarted
Set the started property: Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
started- the started value to set.- Returns:
- the OperationResultContractInner object itself.
-
updated
Get the updated property: Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the updated value.
-
withUpdated
Set the updated property: Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
updated- the updated value to set.- Returns:
- the OperationResultContractInner object itself.
-
resultInfo
Get the resultInfo property: Optional result info.- Returns:
- the resultInfo value.
-
withResultInfo
Set the resultInfo property: Optional result info.- Parameters:
resultInfo- the resultInfo value to set.- Returns:
- the OperationResultContractInner object itself.
-
error
Get the error property: Error Body Contract.- Returns:
- the error value.
-
withError
Set the error property: Error Body Contract.- Parameters:
error- the error value to set.- Returns:
- the OperationResultContractInner object itself.
-
actionLog
Get the actionLog property: This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation.- Returns:
- the actionLog value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static OperationResultContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OperationResultContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OperationResultContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OperationResultContractInner.
-