Class OperationStatusInner
- java.lang.Object
-
- com.azure.resourcemanager.monitor.fluent.models.OperationStatusInner
-
public final class OperationStatusInner extends Object
The status of operation.
-
-
Constructor Summary
Constructors Constructor Description OperationStatusInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeendTime()Get the endTime property: End time of the job in standard ISO8601 format.ErrorResponseCommonerror()Get the error property: The error detail of the operation if any.Stringid()Get the id property: The operation Id.Stringname()Get the name property: The operation name.OffsetDateTimestartTime()Get the startTime property: Start time of the job in standard ISO8601 format.Stringstatus()Get the status property: The status of the operation.voidvalidate()Validates the instance.OperationStatusInnerwithEndTime(OffsetDateTime endTime)Set the endTime property: End time of the job in standard ISO8601 format.OperationStatusInnerwithError(ErrorResponseCommon error)Set the error property: The error detail of the operation if any.OperationStatusInnerwithId(String id)Set the id property: The operation Id.OperationStatusInnerwithName(String name)Set the name property: The operation name.OperationStatusInnerwithStartTime(OffsetDateTime startTime)Set the startTime property: Start time of the job in standard ISO8601 format.OperationStatusInnerwithStatus(String status)Set the status property: The status of the operation.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The operation Id.- Returns:
- the id value.
-
withId
public OperationStatusInner withId(String id)
Set the id property: The operation Id.- Parameters:
id- the id value to set.- Returns:
- the OperationStatusInner object itself.
-
name
public String name()
Get the name property: The operation name.- Returns:
- the name value.
-
withName
public OperationStatusInner withName(String name)
Set the name property: The operation name.- Parameters:
name- the name value to set.- Returns:
- the OperationStatusInner object itself.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time of the job in standard ISO8601 format.- Returns:
- the startTime value.
-
withStartTime
public OperationStatusInner withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time of the job in standard ISO8601 format.- Parameters:
startTime- the startTime value to set.- Returns:
- the OperationStatusInner object itself.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: End time of the job in standard ISO8601 format.- Returns:
- the endTime value.
-
withEndTime
public OperationStatusInner withEndTime(OffsetDateTime endTime)
Set the endTime property: End time of the job in standard ISO8601 format.- Parameters:
endTime- the endTime value to set.- Returns:
- the OperationStatusInner object itself.
-
status
public String status()
Get the status property: The status of the operation.- Returns:
- the status value.
-
withStatus
public OperationStatusInner withStatus(String status)
Set the status property: The status of the operation.- Parameters:
status- the status value to set.- Returns:
- the OperationStatusInner object itself.
-
error
public ErrorResponseCommon error()
Get the error property: The error detail of the operation if any.- Returns:
- the error value.
-
withError
public OperationStatusInner withError(ErrorResponseCommon error)
Set the error property: The error detail of the operation if any.- Parameters:
error- the error value to set.- Returns:
- the OperationStatusInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-