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 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.
-
-
-
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.
-
-