OperationStatusInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. OperationStatusInner
- com.
Implements
public final class OperationStatusInner
implements JsonSerializable<OperationStatusInner>
The status of operation.
Constructor Summary
Constructor | Description |
---|---|
OperationStatusInner() |
Creates an instance of Operation |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endTime()
Get the end |
Management |
error()
Get the error property: The error detail of the operation if any. |
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
String |
id()
Get the id property: The operation Id. |
String |
name()
Get the name property: The operation name. |
Offset |
startTime()
Get the start |
String |
status()
Get the status property: The status of the operation. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Operation |
withEndTime(OffsetDateTime endTime)
Set the end |
Operation |
withError(ManagementError error)
Set the error property: The error detail of the operation if any. |
Operation |
withId(String id)
Set the id property: The operation Id. |
Operation |
withName(String name)
Set the name property: The operation name. |
Operation |
withStartTime(OffsetDateTime startTime)
Set the start |
Operation |
withStatus(String status)
Set the status property: The status of the operation. |
Methods inherited from java.lang.Object
Constructor Details
OperationStatusInner
public OperationStatusInner()
Creates an instance of OperationStatusInner class.
Method Details
endTime
public OffsetDateTime endTime()
Get the endTime property: End time of the job in standard ISO8601 format.
Returns:
error
public ManagementError error()
Get the error property: The error detail of the operation if any.
Returns:
fromJson
public static OperationStatusInner fromJson(JsonReader jsonReader)
Reads an instance of OperationStatusInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The operation Id.
Returns:
name
public String name()
Get the name property: The operation name.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time of the job in standard ISO8601 format.
Returns:
status
public String status()
Get the status property: The status of the operation.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEndTime
public OperationStatusInner withEndTime(OffsetDateTime endTime)
Set the endTime property: End time of the job in standard ISO8601 format.
Parameters:
Returns:
withError
public OperationStatusInner withError(ManagementError error)
Set the error property: The error detail of the operation if any.
Parameters:
Returns:
withId
public OperationStatusInner withId(String id)
Set the id property: The operation Id.
Parameters:
Returns:
withName
public OperationStatusInner withName(String name)
Set the name property: The operation name.
Parameters:
Returns:
withStartTime
public OperationStatusInner withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time of the job in standard ISO8601 format.
Parameters:
Returns:
withStatus
public OperationStatusInner withStatus(String status)
Set the status property: The status of the operation.
Parameters:
Returns:
Applies to
Azure SDK for Java