C++ Server-Side SDK
LaunchDarkly SDK
Public Member Functions | List of all members
launchdarkly::server_side::AllFlagsStateBuilder Class Reference

Public Member Functions

 AllFlagsStateBuilder (AllFlagsState::Options options)
 
void AddFlag (std::string const &key, Value value, AllFlagsState::State state)
 
AllFlagsState Build ()
 

Constructor & Destructor Documentation

◆ AllFlagsStateBuilder()

launchdarkly::server_side::AllFlagsStateBuilder::AllFlagsStateBuilder ( AllFlagsState::Options  options)
explicit

Constructs a builder capable of generating a AllFlagsState structure.

Parameters
optionsOptions affecting the behavior of the builder.

Member Function Documentation

◆ AddFlag()

void launchdarkly::server_side::AllFlagsStateBuilder::AddFlag ( std::string const &  key,
Value  value,
AllFlagsState::State  state 
)

Adds a flag, including its evaluation result and additional state.

Parameters
keyKey of the flag.
valueValue of the flag.
stateState of the flag.

◆ Build()

AllFlagsState launchdarkly::server_side::AllFlagsStateBuilder::Build ( )

Builds a AllFlagsState structure from the flags added to the builder. This operation consumes the builder, and must only be called once.

Returns

The documentation for this class was generated from the following files: