Class PollResult<T>
java.lang.Object
com.azure.core.management.polling.PollResult<T>
- Type Parameters:
T
- the type of the value
Type representing result (succeeded or failed result) of a long-running-poll operation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Type represents the error that poll-operation received from the service. -
Constructor Summary
ConstructorDescriptionPollResult
(PollResult.Error error) Creates PollResult.PollResult
(T value) Creates PollResult. -
Method Summary
-
Constructor Details
-
PollResult
Creates PollResult.- Parameters:
value
- the service returned value for a succeeded poll operation
-
PollResult
Creates PollResult.- Parameters:
error
- describes the error that poll-operation received from the service
-
-
Method Details
-
getValue
Get the service returned value when poll-operation succeeded.- Returns:
- the value
-
getError
Get the error description when poll-operation receives error from service.- Returns:
- the error
-