ActivationResponse<T> Class
- java.
lang. Object - com.
azure. core. http. rest. SimpleResponse<T> - com.
azure. resourcemanager. resources. fluentcore. rest. ActivationResponse<T>
- com.
- com.
Type Parameters
- T
The deserialized type of the response content.
public class ActivationResponse
extends SimpleResponse<T>
REST LRO activation response with a strongly-typed content specified.
Constructor Summary
Constructor | Description |
---|---|
ActivationResponse(HttpRequest request, int statusCode, HttpHeaders headers, T value, LongRunningOperationStatus status, Duration retryAfter) |
Creates a ActivationResponse<T>. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Duration |
getRetryAfter()
Returns the delay the service has requested until the next polling operation is performed. |
Long |
getStatus()
Represents the status of the long-running operation at the time the last polling operation finished successfully. |
Methods inherited from SimpleResponse
Methods inherited from java.lang.Object
Constructor Details
ActivationResponse
public ActivationResponse(HttpRequest request, int statusCode, HttpHeaders headers, T value, LongRunningOperationStatus status, Duration retryAfter)
Creates a ActivationResponse<T>.
Parameters:
null
, zero or negative value will be taken to mean that the poller should determine on its
own when the next poll operation is to occur.
Method Details
getRetryAfter
public Duration getRetryAfter()
Returns the delay the service has requested until the next polling operation is performed. A null or negative value will be taken to mean that the poller should determine on its own when the next poll operation is to occur.
Returns:
getStatus
public LongRunningOperationStatus getStatus()
Represents the status of the long-running operation at the time the last polling operation finished successfully.
Returns:
Applies to
Azure SDK for Java