22#include <initializer_list>
27#include <olp/dataservice/read/DataServiceReadApi.h>
30namespace dataservice {
47 : key_{std::move(key)}, value_{std::move(value)} {}
56 : key_{std::move(key)}, value_{value} {}
65 : key_{std::move(key)}, value_{std::to_string(value)} {}
74 : key_{std::move(key)}, value_{std::to_string(value)} {}
81 const std::string&
GetKey()
const {
return key_; }
87 const std::string&
GetValue()
const {
return value_; }
94using ConsumerOptions = std::vector<ConsumerOption>;
108 : properties_{std::move(properties)} {}
116 : properties_{std::move(properties)} {}
126 ConsumerOptions properties_;
Represents a consumer configuration entry of one stream layer.
Definition ConsumerProperties.h:38
ConsumerOption(std::string key, int32_t value)
Creates the ConsumerOption instance.
Definition ConsumerProperties.h:64
ConsumerOption(std::string key, std::string value)
Creates the ConsumerOption instance.
Definition ConsumerProperties.h:46
ConsumerOption(std::string key, const char *value)
Creates the ConsumerOption instance.
Definition ConsumerProperties.h:55
const std::string & GetValue() const
Gets the value of the consumer configuration entry.
Definition ConsumerProperties.h:87
ConsumerOption(std::string key, bool value)
Creates the ConsumerOption instance.
Definition ConsumerProperties.h:73
const std::string & GetKey() const
Gets the key of the consumer configuration entry.
Definition ConsumerProperties.h:81
Holds all Kafka consumer properties that should be passed to the Stream API.
Definition ConsumerProperties.h:100
ConsumerProperties(ConsumerOptions properties)
Creates the ConsumerProperties instance.
Definition ConsumerProperties.h:107
ConsumerProperties(std::initializer_list< ConsumerOption > properties)
Creates the ConsumerProperties instance.
Definition ConsumerProperties.h:115
const ConsumerOptions & GetProperties() const
Gets the ConsumerProperties instance.
Definition ConsumerProperties.h:123
Rules all the other namespaces.
Definition AppleSignInProperties.h:24