AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OnlineAbDefinition.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchEvidently
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition() = default;
39 AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetControlTreatmentName() const { return m_controlTreatmentName; }
50 inline bool ControlTreatmentNameHasBeenSet() const { return m_controlTreatmentNameHasBeenSet; }
51 template<typename ControlTreatmentNameT = Aws::String>
52 void SetControlTreatmentName(ControlTreatmentNameT&& value) { m_controlTreatmentNameHasBeenSet = true; m_controlTreatmentName = std::forward<ControlTreatmentNameT>(value); }
53 template<typename ControlTreatmentNameT = Aws::String>
54 OnlineAbDefinition& WithControlTreatmentName(ControlTreatmentNameT&& value) { SetControlTreatmentName(std::forward<ControlTreatmentNameT>(value)); return *this;}
56
58
64 inline const Aws::Map<Aws::String, long long>& GetTreatmentWeights() const { return m_treatmentWeights; }
65 inline bool TreatmentWeightsHasBeenSet() const { return m_treatmentWeightsHasBeenSet; }
66 template<typename TreatmentWeightsT = Aws::Map<Aws::String, long long>>
67 void SetTreatmentWeights(TreatmentWeightsT&& value) { m_treatmentWeightsHasBeenSet = true; m_treatmentWeights = std::forward<TreatmentWeightsT>(value); }
68 template<typename TreatmentWeightsT = Aws::Map<Aws::String, long long>>
69 OnlineAbDefinition& WithTreatmentWeights(TreatmentWeightsT&& value) { SetTreatmentWeights(std::forward<TreatmentWeightsT>(value)); return *this;}
70 inline OnlineAbDefinition& AddTreatmentWeights(Aws::String key, long long value) {
71 m_treatmentWeightsHasBeenSet = true; m_treatmentWeights.emplace(key, value); return *this;
72 }
74 private:
75
76 Aws::String m_controlTreatmentName;
77 bool m_controlTreatmentNameHasBeenSet = false;
78
79 Aws::Map<Aws::String, long long> m_treatmentWeights;
80 bool m_treatmentWeightsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace CloudWatchEvidently
85} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetControlTreatmentName(ControlTreatmentNameT &&value)
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, long long > & GetTreatmentWeights() const
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition()=default
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition(Aws::Utils::Json::JsonView jsonValue)
OnlineAbDefinition & WithTreatmentWeights(TreatmentWeightsT &&value)
OnlineAbDefinition & AddTreatmentWeights(Aws::String key, long long value)
OnlineAbDefinition & WithControlTreatmentName(ControlTreatmentNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue