Operation Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.Operation

public class Operation

Record to track long running operation.

Constructor Summary

Constructor Description
Operation()

Method Summary

Modifier and Type Method and Description
String createdTimestamp()

Get the createdTimestamp value.

ErrorResponse errorResponse()

Get the errorResponse value.

String lastActionTimestamp()

Get the lastActionTimestamp value.

String operationId()

Get the operationId value.

OperationStateType operationState()

Get the operationState value.

String resourceLocation()

Get the resourceLocation value.

String userId()

Get the userId value.

Operation withCreatedTimestamp(String createdTimestamp)

Set the createdTimestamp value.

Operation withErrorResponse(ErrorResponse errorResponse)

Set the errorResponse value.

Operation withLastActionTimestamp(String lastActionTimestamp)

Set the lastActionTimestamp value.

Operation withOperationId(String operationId)

Set the operationId value.

Operation withOperationState(OperationStateType operationState)

Set the operationState value.

Operation withResourceLocation(String resourceLocation)

Set the resourceLocation value.

Operation withUserId(String userId)

Set the userId value.

Methods inherited from java.lang.Object

Constructor Details

Operation

public Operation()

Method Details

createdTimestamp

public String createdTimestamp()

Get the createdTimestamp value.

Returns:

the createdTimestamp value

errorResponse

public ErrorResponse errorResponse()

Get the errorResponse value.

Returns:

the errorResponse value

lastActionTimestamp

public String lastActionTimestamp()

Get the lastActionTimestamp value.

Returns:

the lastActionTimestamp value

operationId

public String operationId()

Get the operationId value.

Returns:

the operationId value

operationState

public OperationStateType operationState()

Get the operationState value.

Returns:

the operationState value

resourceLocation

public String resourceLocation()

Get the resourceLocation value.

Returns:

the resourceLocation value

userId

public String userId()

Get the userId value.

Returns:

the userId value

withCreatedTimestamp

public Operation withCreatedTimestamp(String createdTimestamp)

Set the createdTimestamp value.

Parameters:

createdTimestamp - the createdTimestamp value to set

Returns:

the Operation object itself.

withErrorResponse

public Operation withErrorResponse(ErrorResponse errorResponse)

Set the errorResponse value.

Parameters:

errorResponse - the errorResponse value to set

Returns:

the Operation object itself.

withLastActionTimestamp

public Operation withLastActionTimestamp(String lastActionTimestamp)

Set the lastActionTimestamp value.

Parameters:

lastActionTimestamp - the lastActionTimestamp value to set

Returns:

the Operation object itself.

withOperationId

public Operation withOperationId(String operationId)

Set the operationId value.

Parameters:

operationId - the operationId value to set

Returns:

the Operation object itself.

withOperationState

public Operation withOperationState(OperationStateType operationState)

Set the operationState value.

Parameters:

operationState - the operationState value to set

Returns:

the Operation object itself.

withResourceLocation

public Operation withResourceLocation(String resourceLocation)

Set the resourceLocation value.

Parameters:

resourceLocation - the resourceLocation value to set

Returns:

the Operation object itself.

withUserId

public Operation withUserId(String userId)

Set the userId value.

Parameters:

userId - the userId value to set

Returns:

the Operation object itself.

Applies to