Class OperationResultContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.OperationResultContractProperties
-
public final class OperationResultContractProperties extends Object
Operation Result.
-
-
Constructor Summary
Constructors Constructor Description OperationResultContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OperationResultLogItemContract>
actionLog()
Get the actionLog property: This property if only provided as part of the TenantConfiguration_Validate operation.com.azure.core.management.exception.ManagementError
error()
Get the error property: Error Body Contract.String
id()
Get the id property: Operation result identifier.String
resultInfo()
Get the resultInfo property: Optional result info.OffsetDateTime
started()
Get the started property: Start time of an async operation.AsyncOperationStatus
status()
Get the status property: Status of an async operation.OffsetDateTime
updated()
Get the updated property: Last update time of an async operation.void
validate()
Validates the instance.OperationResultContractProperties
withError(com.azure.core.management.exception.ManagementError error)
Set the error property: Error Body Contract.OperationResultContractProperties
withId(String id)
Set the id property: Operation result identifier.OperationResultContractProperties
withResultInfo(String resultInfo)
Set the resultInfo property: Optional result info.OperationResultContractProperties
withStarted(OffsetDateTime started)
Set the started property: Start time of an async operation.OperationResultContractProperties
withStatus(AsyncOperationStatus status)
Set the status property: Status of an async operation.OperationResultContractProperties
withUpdated(OffsetDateTime updated)
Set the updated property: Last update time of an async operation.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Operation result identifier.- Returns:
- the id value.
-
withId
public OperationResultContractProperties withId(String id)
Set the id property: Operation result identifier.- Parameters:
id
- the id value to set.- Returns:
- the OperationResultContractProperties object itself.
-
status
public AsyncOperationStatus status()
Get the status property: Status of an async operation.- Returns:
- the status value.
-
withStatus
public OperationResultContractProperties withStatus(AsyncOperationStatus status)
Set the status property: Status of an async operation.- Parameters:
status
- the status value to set.- Returns:
- the OperationResultContractProperties object itself.
-
started
public OffsetDateTime 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
public OperationResultContractProperties withStarted(OffsetDateTime started)
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 OperationResultContractProperties object itself.
-
updated
public OffsetDateTime 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
public OperationResultContractProperties withUpdated(OffsetDateTime updated)
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 OperationResultContractProperties object itself.
-
resultInfo
public String resultInfo()
Get the resultInfo property: Optional result info.- Returns:
- the resultInfo value.
-
withResultInfo
public OperationResultContractProperties withResultInfo(String resultInfo)
Set the resultInfo property: Optional result info.- Parameters:
resultInfo
- the resultInfo value to set.- Returns:
- the OperationResultContractProperties object itself.
-
error
public com.azure.core.management.exception.ManagementError error()
Get the error property: Error Body Contract.- Returns:
- the error value.
-
withError
public OperationResultContractProperties withError(com.azure.core.management.exception.ManagementError error)
Set the error property: Error Body Contract.- Parameters:
error
- the error value to set.- Returns:
- the OperationResultContractProperties object itself.
-
actionLog
public List<OperationResultLogItemContract> 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.
-
-