Package com.azure.data.cosmos
Class CosmosStoredProcedureResponse
- java.lang.Object
-
- com.azure.data.cosmos.CosmosResponse<CosmosStoredProcedureProperties>
-
- com.azure.data.cosmos.CosmosStoredProcedureResponse
-
public class CosmosStoredProcedureResponse extends CosmosResponse<CosmosStoredProcedureProperties>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
activityId()
Gets the Activity ID for the request.CosmosStoredProcedureProperties
properties()
Gets the stored procedure propertiesdouble
requestCharge()
Gets the number of index paths (terms) generated by the operation.String
responseAsString()
Gets the response of the stored procedure as a string.String
scriptLog()
Gets the output from stored procedure console.log() statements.String
sessionToken()
Gets the token used for managing client's consistency requirements.int
statusCode()
Gets the HTTP status code associated with the response.CosmosStoredProcedure
storedProcedure()
Gets the stored procedure object-
Methods inherited from class com.azure.data.cosmos.CosmosResponse
cosmosResponseDiagnosticsString, currentResourceQuotaUsage, maxResourceQuota, requestLatency, responseHeaders
-
-
-
-
Method Detail
-
properties
public CosmosStoredProcedureProperties properties()
Gets the stored procedure properties- Returns:
- the stored procedure properties or null
-
storedProcedure
public CosmosStoredProcedure storedProcedure()
Gets the stored procedure object- Returns:
- the stored procedure object or null in case of delete request
-
activityId
public String activityId()
Gets the Activity ID for the request.- Overrides:
activityId
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the activity id.
-
sessionToken
public String sessionToken()
Gets the token used for managing client's consistency requirements.- Overrides:
sessionToken
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the session token.
-
statusCode
public int statusCode()
Gets the HTTP status code associated with the response.- Overrides:
statusCode
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the status code.
-
requestCharge
public double requestCharge()
Gets the number of index paths (terms) generated by the operation.- Overrides:
requestCharge
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the request charge.
-
responseAsString
public String responseAsString()
Gets the response of the stored procedure as a string.- Returns:
- the response as a string.
-
scriptLog
public String scriptLog()
Gets the output from stored procedure console.log() statements.- Returns:
- the output string from the stored procedure console.log() statements.
-
-