你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphTeamsAsyncOperation Class

public final class MicrosoftGraphTeamsAsyncOperation
extends MicrosoftGraphEntity

teamsAsyncOperation.

Constructor Summary

Constructor Description
MicrosoftGraphTeamsAsyncOperation()

Creates an instance of MicrosoftGraphTeamsAsyncOperation class.

Method Summary

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

Get the additionalProperties property: teamsAsyncOperation.

Integer attemptsCount()

Get the attemptsCount property: Number of times the operation was attempted before being marked successful or failed.

OffsetDateTime createdDateTime()

Get the createdDateTime property: Time when the operation was created.

MicrosoftGraphOperationError error()

Get the error property: operationError.

static MicrosoftGraphTeamsAsyncOperation fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTeamsAsyncOperation from the JsonReader.

OffsetDateTime lastActionDateTime()

Get the lastActionDateTime property: Time when the async operation was last updated.

MicrosoftGraphTeamsAsyncOperationType operationType()

Get the operationType property: teamsAsyncOperationType.

MicrosoftGraphTeamsAsyncOperationStatus status()

Get the status property: teamsAsyncOperationStatus.

String targetResourceId()

Get the targetResourceId property: The ID of the object that's created or modified as result of this async operation, typically a team.

String targetResourceLocation()

Get the targetResourceLocation property: The location of the object that's created or modified as result of this async operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphTeamsAsyncOperation withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: teamsAsyncOperation.

MicrosoftGraphTeamsAsyncOperation withAttemptsCount(Integer attemptsCount)

Set the attemptsCount property: Number of times the operation was attempted before being marked successful or failed.

MicrosoftGraphTeamsAsyncOperation withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Time when the operation was created.

MicrosoftGraphTeamsAsyncOperation withError(MicrosoftGraphOperationError error)

Set the error property: operationError.

MicrosoftGraphTeamsAsyncOperation withId(String id)

Set the id property: Read-only.

MicrosoftGraphTeamsAsyncOperation withLastActionDateTime(OffsetDateTime lastActionDateTime)

Set the lastActionDateTime property: Time when the async operation was last updated.

MicrosoftGraphTeamsAsyncOperation withOperationType(MicrosoftGraphTeamsAsyncOperationType operationType)

Set the operationType property: teamsAsyncOperationType.

MicrosoftGraphTeamsAsyncOperation withStatus(MicrosoftGraphTeamsAsyncOperationStatus status)

Set the status property: teamsAsyncOperationStatus.

MicrosoftGraphTeamsAsyncOperation withTargetResourceId(String targetResourceId)

Set the targetResourceId property: The ID of the object that's created or modified as result of this async operation, typically a team.

MicrosoftGraphTeamsAsyncOperation withTargetResourceLocation(String targetResourceLocation)

Set the targetResourceLocation property: The location of the object that's created or modified as result of this async operation.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTeamsAsyncOperation

public MicrosoftGraphTeamsAsyncOperation()

Creates an instance of MicrosoftGraphTeamsAsyncOperation class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: teamsAsyncOperation.

Overrides:

MicrosoftGraphTeamsAsyncOperation.additionalProperties()

Returns:

the additionalProperties value.

attemptsCount

public Integer attemptsCount()

Get the attemptsCount property: Number of times the operation was attempted before being marked successful or failed.

Returns:

the attemptsCount value.

createdDateTime

public OffsetDateTime createdDateTime()

Get the createdDateTime property: Time when the operation was created.

Returns:

the createdDateTime value.

error

public MicrosoftGraphOperationError error()

Get the error property: operationError.

Returns:

the error value.

fromJson

public static MicrosoftGraphTeamsAsyncOperation fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTeamsAsyncOperation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastActionDateTime

public OffsetDateTime lastActionDateTime()

Get the lastActionDateTime property: Time when the async operation was last updated.

Returns:

the lastActionDateTime value.

operationType

public MicrosoftGraphTeamsAsyncOperationType operationType()

Get the operationType property: teamsAsyncOperationType.

Returns:

the operationType value.

status

public MicrosoftGraphTeamsAsyncOperationStatus status()

Get the status property: teamsAsyncOperationStatus.

Returns:

the status value.

targetResourceId

public String targetResourceId()

Get the targetResourceId property: The ID of the object that's created or modified as result of this async operation, typically a team.

Returns:

the targetResourceId value.

targetResourceLocation

public String targetResourceLocation()

Get the targetResourceLocation property: The location of the object that's created or modified as result of this async operation. This URL should be treated as an opaque value and not parsed into its component paths.

Returns:

the targetResourceLocation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTeamsAsyncOperation.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTeamsAsyncOperation.validate()

withAdditionalProperties

public MicrosoftGraphTeamsAsyncOperation withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: teamsAsyncOperation.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

withAttemptsCount

public MicrosoftGraphTeamsAsyncOperation withAttemptsCount(Integer attemptsCount)

Set the attemptsCount property: Number of times the operation was attempted before being marked successful or failed.

Parameters:

attemptsCount - the attemptsCount value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

withCreatedDateTime

public MicrosoftGraphTeamsAsyncOperation withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Time when the operation was created.

Parameters:

createdDateTime - the createdDateTime value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

withError

public MicrosoftGraphTeamsAsyncOperation withError(MicrosoftGraphOperationError error)

Set the error property: operationError.

Parameters:

error - the error value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

withId

public MicrosoftGraphTeamsAsyncOperation withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphTeamsAsyncOperation.withId(String id)

Parameters:

id

withLastActionDateTime

public MicrosoftGraphTeamsAsyncOperation withLastActionDateTime(OffsetDateTime lastActionDateTime)

Set the lastActionDateTime property: Time when the async operation was last updated.

Parameters:

lastActionDateTime - the lastActionDateTime value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

withOperationType

public MicrosoftGraphTeamsAsyncOperation withOperationType(MicrosoftGraphTeamsAsyncOperationType operationType)

Set the operationType property: teamsAsyncOperationType.

Parameters:

operationType - the operationType value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

withStatus

public MicrosoftGraphTeamsAsyncOperation withStatus(MicrosoftGraphTeamsAsyncOperationStatus status)

Set the status property: teamsAsyncOperationStatus.

Parameters:

status - the status value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

withTargetResourceId

public MicrosoftGraphTeamsAsyncOperation withTargetResourceId(String targetResourceId)

Set the targetResourceId property: The ID of the object that's created or modified as result of this async operation, typically a team.

Parameters:

targetResourceId - the targetResourceId value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

withTargetResourceLocation

public MicrosoftGraphTeamsAsyncOperation withTargetResourceLocation(String targetResourceLocation)

Set the targetResourceLocation property: The location of the object that's created or modified as result of this async operation. This URL should be treated as an opaque value and not parsed into its component paths.

Parameters:

targetResourceLocation - the targetResourceLocation value to set.

Returns:

the MicrosoftGraphTeamsAsyncOperation object itself.

Applies to