Class Operation
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.Operation
-
public class Operation extends Object
Record to track long running operation.
-
-
Constructor Summary
Constructors Constructor Description Operation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreatedTimestamp()Get the createdTimestamp value.ErrorResponseerrorResponse()Get the errorResponse value.StringlastActionTimestamp()Get the lastActionTimestamp value.StringoperationId()Get the operationId value.OperationStateTypeoperationState()Get the operationState value.StringresourceLocation()Get the resourceLocation value.StringuserId()Get the userId value.OperationwithCreatedTimestamp(String createdTimestamp)Set the createdTimestamp value.OperationwithErrorResponse(ErrorResponse errorResponse)Set the errorResponse value.OperationwithLastActionTimestamp(String lastActionTimestamp)Set the lastActionTimestamp value.OperationwithOperationId(String operationId)Set the operationId value.OperationwithOperationState(OperationStateType operationState)Set the operationState value.OperationwithResourceLocation(String resourceLocation)Set the resourceLocation value.OperationwithUserId(String userId)Set the userId value.
-
-
-
Method Detail
-
operationState
public OperationStateType operationState()
Get the operationState value.- Returns:
- the operationState value
-
withOperationState
public Operation withOperationState(OperationStateType operationState)
Set the operationState value.- Parameters:
operationState- the operationState value to set- Returns:
- the Operation object itself.
-
createdTimestamp
public String createdTimestamp()
Get the createdTimestamp value.- Returns:
- the createdTimestamp value
-
withCreatedTimestamp
public Operation withCreatedTimestamp(String createdTimestamp)
Set the createdTimestamp value.- Parameters:
createdTimestamp- the createdTimestamp value to set- Returns:
- the Operation object itself.
-
lastActionTimestamp
public String lastActionTimestamp()
Get the lastActionTimestamp value.- Returns:
- the lastActionTimestamp value
-
withLastActionTimestamp
public Operation withLastActionTimestamp(String lastActionTimestamp)
Set the lastActionTimestamp value.- Parameters:
lastActionTimestamp- the lastActionTimestamp value to set- Returns:
- the Operation object itself.
-
resourceLocation
public String resourceLocation()
Get the resourceLocation value.- Returns:
- the resourceLocation value
-
withResourceLocation
public Operation withResourceLocation(String resourceLocation)
Set the resourceLocation value.- Parameters:
resourceLocation- the resourceLocation value to set- Returns:
- the Operation object itself.
-
userId
public String userId()
Get the userId value.- Returns:
- the userId value
-
withUserId
public Operation withUserId(String userId)
Set the userId value.- Parameters:
userId- the userId value to set- Returns:
- the Operation object itself.
-
operationId
public String operationId()
Get the operationId value.- Returns:
- the operationId value
-
withOperationId
public Operation withOperationId(String operationId)
Set the operationId value.- Parameters:
operationId- the operationId value to set- Returns:
- the Operation object itself.
-
errorResponse
public ErrorResponse errorResponse()
Get the errorResponse value.- Returns:
- the errorResponse value
-
withErrorResponse
public Operation withErrorResponse(ErrorResponse errorResponse)
Set the errorResponse value.- Parameters:
errorResponse- the errorResponse value to set- Returns:
- the Operation object itself.
-
-