Class ActivationResponse<T>
- java.lang.Object
-
- com.azure.core.http.rest.SimpleResponse<T>
-
- com.azure.resourcemanager.resources.fluentcore.rest.ActivationResponse<T>
-
- Type Parameters:
T- The deserialized type of the response content.
- All Implemented Interfaces:
com.azure.core.http.rest.Response<T>
public class ActivationResponse<T> extends com.azure.core.http.rest.SimpleResponse<T>REST LRO activation response with a strongly-typed content specified.
-
-
Constructor Summary
Constructors Constructor Description ActivationResponse(com.azure.core.http.HttpRequest request, int statusCode, com.azure.core.http.HttpHeaders headers, T value, com.azure.core.util.polling.LongRunningOperationStatus status, Duration retryAfter)Creates aActivationResponse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DurationgetRetryAfter()Returns the delay the service has requested until the next polling operation is performed.com.azure.core.util.polling.LongRunningOperationStatusgetStatus()Represents the status of the long-running operation at the time the last polling operation finished successfully.
-
-
-
Constructor Detail
-
ActivationResponse
public ActivationResponse(com.azure.core.http.HttpRequest request, int statusCode, com.azure.core.http.HttpHeaders headers, T value, com.azure.core.util.polling.LongRunningOperationStatus status, Duration retryAfter)Creates aActivationResponse.- Parameters:
request- The request which resulted in this response.statusCode- The status code of the HTTP response.headers- The headers of the HTTP response.value- The deserialized value of the HTTP response.status- Mandatory operation status as defined inLongRunningOperationStatus.retryAfter- Represents the delay the service has requested until the next polling operation is performed. Anull, 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 Detail
-
getStatus
public com.azure.core.util.polling.LongRunningOperationStatus getStatus()
Represents the status of the long-running operation at the time the last polling operation finished successfully.- Returns:
- A
LongRunningOperationStatusrepresenting the result of the poll operation.
-
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:
- Duration How long to wait before next retry.
-
-