olp-cpp-sdk
1.22.0
|
Used to subscribe to a stream layer. More...
#include <SubscribeRequest.h>
Public Types | |
enum class | SubscriptionMode : char { kSerial , kParallel } |
The subscription mode. More... | |
Public Member Functions | |
SubscribeRequest & | WithSubscriptionMode (SubscriptionMode mode) |
Sets the subscription mode for the request. More... | |
SubscriptionMode | GetSubscriptionMode () const |
Gets the subscription mode of the request. More... | |
SubscribeRequest & | WithSubscriptionId (boost::optional< SubscriptionId > subscription_id) |
(Optional) Sets the subscription ID used for the request. More... | |
const boost::optional< SubscriptionId > & | GetSubscriptionId () const |
Gets the subscription ID of the request. More... | |
SubscribeRequest & | WithConsumerId (boost::optional< std::string > consumer_id) |
(Optional) Sets the consumer ID used for the request. More... | |
const boost::optional< std::string > & | GetConsumerId () const |
Gets the consumer ID of the request. More... | |
SubscribeRequest & | WithConsumerProperties (boost::optional< ConsumerProperties > properties) |
Sets the consumer properties for the request. More... | |
const boost::optional< ConsumerProperties > & | GetConsumerProperties () const |
Gets the consumer properties of the request. More... | |
Used to subscribe to a stream layer.
|
strong |
|
inline |
Gets the consumer ID of the request.
|
inline |
Gets the consumer properties of the request.
|
inline |
Gets the subscription ID of the request.
|
inline |
Gets the subscription mode of the request.
|
inline |
(Optional) Sets the consumer ID used for the request.
Generated by the HERE platform if missing. Must be UUID. Must be unique within the consumer group (group ID, HRN, layer ID, and application ID (AID)).
consumer_id | The consumer ID. |
SubscribeRequest
instance.
|
inline |
Sets the consumer properties for the request.
properties | The consumer properties. |
SubscribeRequest
instance.
|
inline |
(Optional) Sets the subscription ID used for the request.
Generated by the HERE platform if missing. Must be UUID. Must be unique within subscriptions.
subscription_id | The subscription ID. |
SubscribeRequest
instance.
|
inline |
Sets the subscription mode for the request.
The default value is kSerial
.
mode | The subscription mode. |
SubscribeRequest
instance.