Line data Source code
1 : #pragma once 2 : 3 : #include "envoy/matcher/matcher.h" 4 : 5 : namespace Envoy { 6 : namespace Extensions { 7 : namespace Matching { 8 : namespace CommonInputs { 9 : namespace EnvironmentVariable { 10 : 11 : class Input : public Matcher::CommonProtocolInput { 12 : public: 13 0 : explicit Input(Matcher::MatchingDataType&& value) : storage_(std::move(value)) {} 14 : 15 0 : Matcher::MatchingDataType get() override { return storage_; } 16 : 17 : private: 18 : const Matcher::MatchingDataType storage_; 19 : }; 20 : } // namespace EnvironmentVariable 21 : } // namespace CommonInputs 22 : } // namespace Matching 23 : } // namespace Extensions 24 : } // namespace Envoy