18namespace Azure {
namespace Core {
35 bool m_hasPage =
true;
93 bool HasPage()
const {
return m_hasPage; }
105 std::is_base_of<PagedResponse, T>::value,
106 "The template argument \"T\" should derive from PagedResponse<T>.");
116 static_cast<T*
>(
this)->OnNextPage(context);
A context is a node within a unidirectional tree that represents deadlines and key/value pairs.
Definition context.hpp:72
The base type and behavior for a paged response.
Definition paged_response.hpp:29
PagedResponse & operator=(PagedResponse &&)=default
Assigns another instance of PagedResponse by moving it in.
bool HasPage() const
Checks if a page exists.
Definition paged_response.hpp:93
Azure::Nullable< std::string > NextPageToken
The token for getting the next page.
Definition paged_response.hpp:78
void MoveToNextPage(const Azure::Core::Context &context=Azure::Core::Context())
Moves to the next page of the response.
Definition paged_response.hpp:102
std::string CurrentPageToken
The token used to fetch the current page.
Definition paged_response.hpp:67
PagedResponse()=default
Constructs a default instance of PagedResponse.
std::unique_ptr< Azure::Core::Http::RawResponse > RawResponse
The HTTP response returned by the service.
Definition paged_response.hpp:84
PagedResponse(PagedResponse &&)=default
Constructs PagedResponse by moving in another instance.
virtual ~PagedResponse()=default
Destructs PagedResponse.
Manages an optional contained value, i.e. a value that may or may not be present.
Definition nullable.hpp:30
const T & Value() const &noexcept
Get the contained value.
Definition nullable.hpp:236
bool HasValue() const noexcept
Check whether a value is contained.
Definition nullable.hpp:230
Context for canceling long running operations.
Compute the hash value for the input binary data, using SHA256, SHA384 and SHA512.
Definition azure_assert.hpp:57
Manages an optional contained value, i.e. a value that may or may not be present.
Define the HTTP raw response.