7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/TrafficPercents.h>
9#include <aws/es/model/TrafficSplitStatus.h>
20namespace ElasticsearchService {
42 template <
typename CurrentT = TrafficPercents>
44 m_currentHasBeenSet =
true;
45 m_current = std::forward<CurrentT>(value);
47 template <
typename CurrentT = TrafficPercents>
60 template <
typename TargetT = TrafficPercents>
62 m_targetHasBeenSet =
true;
63 m_target = std::forward<TargetT>(value);
65 template <
typename TargetT = TrafficPercents>
79 m_statusHasBeenSet =
true;
93 bool m_currentHasBeenSet =
false;
94 bool m_targetHasBeenSet =
false;
95 bool m_statusHasBeenSet =
false;
TrafficSplitOptions & WithTarget(TargetT &&value)
bool StatusHasBeenSet() const
const TrafficPercents & GetCurrent() const
TrafficSplitStatus GetStatus() const
void SetCurrent(CurrentT &&value)
AWS_ELASTICSEARCHSERVICE_API TrafficSplitOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TrafficSplitOptions & WithStatus(TrafficSplitStatus value)
TrafficSplitOptions & WithCurrent(CurrentT &&value)
void SetTarget(TargetT &&value)
const TrafficPercents & GetTarget() const
AWS_ELASTICSEARCHSERVICE_API TrafficSplitOptions()=default
bool CurrentHasBeenSet() const
AWS_ELASTICSEARCHSERVICE_API TrafficSplitOptions(Aws::Utils::Json::JsonView jsonValue)
bool TargetHasBeenSet() const
void SetStatus(TrafficSplitStatus value)
Aws::Utils::Json::JsonValue JsonValue