Share via


MicrosoftGraphOperation Class

public class MicrosoftGraphOperation
extends MicrosoftGraphEntity

Represents an operation.

Constructor Summary

Constructor Description
MicrosoftGraphOperation()

Creates an instance of MicrosoftGraphOperation class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: operation.

OffsetDateTime createdDateTime()

Get the createdDateTime property: The start time of the operation.

static MicrosoftGraphOperation fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOperation from the JsonReader.

OffsetDateTime lastActionDateTime()

Get the lastActionDateTime property: The time of the last action of the operation.

MicrosoftGraphOperationStatus status()

Get the status property: operationStatus.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphOperation withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: operation.

MicrosoftGraphOperation withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The start time of the operation.

MicrosoftGraphOperation withId(String id)

Set the id property: Read-only.

MicrosoftGraphOperation withLastActionDateTime(OffsetDateTime lastActionDateTime)

Set the lastActionDateTime property: The time of the last action of the operation.

MicrosoftGraphOperation withStatus(MicrosoftGraphOperationStatus status)

Set the status property: operationStatus.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphOperation

public MicrosoftGraphOperation()

Creates an instance of MicrosoftGraphOperation class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: operation.

Overrides:

MicrosoftGraphOperation.additionalProperties()

Returns:

the additionalProperties value.

createdDateTime

public OffsetDateTime createdDateTime()

Get the createdDateTime property: The start time of the operation.

Returns:

the createdDateTime value.

fromJson

public static MicrosoftGraphOperation fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOperation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphOperation 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 MicrosoftGraphOperation.

lastActionDateTime

public OffsetDateTime lastActionDateTime()

Get the lastActionDateTime property: The time of the last action of the operation.

Returns:

the lastActionDateTime value.

status

public MicrosoftGraphOperationStatus status()

Get the status property: operationStatus.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphOperation.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphOperation.validate()

withAdditionalProperties

public MicrosoftGraphOperation withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: operation.

Overrides:

MicrosoftGraphOperation.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphOperation object itself.

withCreatedDateTime

public MicrosoftGraphOperation withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The start time of the operation.

Parameters:

createdDateTime - the createdDateTime value to set.

Returns:

the MicrosoftGraphOperation object itself.

withId

public MicrosoftGraphOperation withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphOperation.withId(String id)

Parameters:

id

withLastActionDateTime

public MicrosoftGraphOperation withLastActionDateTime(OffsetDateTime lastActionDateTime)

Set the lastActionDateTime property: The time of the last action of the operation.

Parameters:

lastActionDateTime - the lastActionDateTime value to set.

Returns:

the MicrosoftGraphOperation object itself.

withStatus

public MicrosoftGraphOperation withStatus(MicrosoftGraphOperationStatus status)

Set the status property: operationStatus.

Parameters:

status - the status value to set.

Returns:

the MicrosoftGraphOperation object itself.

Applies to