OperationStatusInner Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.fluent.models.OperationStatusInner

Implements

public final class OperationStatusInner
implements JsonSerializable<OperationStatusInner>

The status of operation.

Constructor Summary

Constructor Description
OperationStatusInner()

Creates an instance of OperationStatusInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: End time of the job in standard ISO8601 format.

ManagementError error()

Get the error property: The error detail of the operation if any.

static OperationStatusInner fromJson(JsonReader jsonReader)

Reads an instance of OperationStatusInner from the JsonReader.

String id()

Get the id property: The operation Id.

String name()

Get the name property: The operation name.

OffsetDateTime startTime()

Get the startTime property: Start time of the job in standard ISO8601 format.

String status()

Get the status property: The status of the operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationStatusInner withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the job in standard ISO8601 format.

OperationStatusInner withError(ManagementError error)

Set the error property: The error detail of the operation if any.

OperationStatusInner withId(String id)

Set the id property: The operation Id.

OperationStatusInner withName(String name)

Set the name property: The operation name.

OperationStatusInner withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the job in standard ISO8601 format.

OperationStatusInner 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:

the endTime value.

error

public ManagementError error()

Get the error property: The error detail of the operation if any.

Returns:

the error value.

fromJson

public static OperationStatusInner fromJson(JsonReader jsonReader)

Reads an instance of OperationStatusInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationStatusInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the OperationStatusInner.

id

public String id()

Get the id property: The operation Id.

Returns:

the id value.

name

public String name()

Get the name property: The operation name.

Returns:

the name value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the job in standard ISO8601 format.

Returns:

the startTime value.

status

public String status()

Get the status property: The status of the operation.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

endTime - the endTime value to set.

Returns:

the OperationStatusInner object itself.

withError

public OperationStatusInner withError(ManagementError 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.

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.

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.

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.

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.

Applies to