22 #include <initializer_list>
27 #include <olp/dataservice/read/DataServiceReadApi.h>
28 #include <boost/optional.hpp>
31 namespace dataservice {
48 : key_{std::move(key)}, value_{std::move(value)} {}
57 : key_{std::move(key)}, value_{value} {}
66 : key_{std::move(key)}, value_{std::to_string(value)} {}
75 : key_{std::move(key)}, value_{std::to_string(value)} {}
82 const std::string&
GetKey()
const {
return key_; }
88 const std::string&
GetValue()
const {
return value_; }
95 using ConsumerOptions = std::vector<ConsumerOption>;
109 : properties_{std::move(properties)} {}
117 : properties_{std::move(properties)} {}
127 ConsumerOptions properties_;
Represents a consumer configuration entry of one stream layer.
Definition: ConsumerProperties.h:39
ConsumerOption(std::string key, int32_t value)
Creates the ConsumerOption instance.
Definition: ConsumerProperties.h:65
ConsumerOption(std::string key, std::string value)
Creates the ConsumerOption instance.
Definition: ConsumerProperties.h:47
ConsumerOption(std::string key, const char *value)
Creates the ConsumerOption instance.
Definition: ConsumerProperties.h:56
const std::string & GetKey() const
Gets the key of the consumer configuration entry.
Definition: ConsumerProperties.h:82
ConsumerOption(std::string key, bool value)
Creates the ConsumerOption instance.
Definition: ConsumerProperties.h:74
const std::string & GetValue() const
Gets the value of the consumer configuration entry.
Definition: ConsumerProperties.h:88
Holds all Kafka consumer properties that should be passed to the Stream API.
Definition: ConsumerProperties.h:101
ConsumerProperties(ConsumerOptions properties)
Creates the ConsumerProperties instance.
Definition: ConsumerProperties.h:108
const ConsumerOptions & GetProperties() const
Gets the ConsumerProperties instance.
Definition: ConsumerProperties.h:124
ConsumerProperties(std::initializer_list< ConsumerOption > properties)
Creates the ConsumerProperties instance.
Definition: ConsumerProperties.h:116
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24