AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OnlineAbConfig.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 OnlineAbConfig();
39 AWS_CLOUDWATCHEVIDENTLY_API OnlineAbConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVIDENTLY_API OnlineAbConfig& 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 inline void SetControlTreatmentName(const Aws::String& value) { m_controlTreatmentNameHasBeenSet = true; m_controlTreatmentName = value; }
52 inline void SetControlTreatmentName(Aws::String&& value) { m_controlTreatmentNameHasBeenSet = true; m_controlTreatmentName = std::move(value); }
53 inline void SetControlTreatmentName(const char* value) { m_controlTreatmentNameHasBeenSet = true; m_controlTreatmentName.assign(value); }
54 inline OnlineAbConfig& WithControlTreatmentName(const Aws::String& value) { SetControlTreatmentName(value); return *this;}
55 inline OnlineAbConfig& WithControlTreatmentName(Aws::String&& value) { SetControlTreatmentName(std::move(value)); return *this;}
56 inline OnlineAbConfig& WithControlTreatmentName(const char* value) { SetControlTreatmentName(value); return *this;}
58
60
66 inline const Aws::Map<Aws::String, long long>& GetTreatmentWeights() const{ return m_treatmentWeights; }
67 inline bool TreatmentWeightsHasBeenSet() const { return m_treatmentWeightsHasBeenSet; }
68 inline void SetTreatmentWeights(const Aws::Map<Aws::String, long long>& value) { m_treatmentWeightsHasBeenSet = true; m_treatmentWeights = value; }
69 inline void SetTreatmentWeights(Aws::Map<Aws::String, long long>&& value) { m_treatmentWeightsHasBeenSet = true; m_treatmentWeights = std::move(value); }
72 inline OnlineAbConfig& AddTreatmentWeights(const Aws::String& key, long long value) { m_treatmentWeightsHasBeenSet = true; m_treatmentWeights.emplace(key, value); return *this; }
73 inline OnlineAbConfig& AddTreatmentWeights(Aws::String&& key, long long value) { m_treatmentWeightsHasBeenSet = true; m_treatmentWeights.emplace(std::move(key), value); return *this; }
74 inline OnlineAbConfig& AddTreatmentWeights(const char* key, long long value) { m_treatmentWeightsHasBeenSet = true; m_treatmentWeights.emplace(key, value); return *this; }
76 private:
77
78 Aws::String m_controlTreatmentName;
79 bool m_controlTreatmentNameHasBeenSet = false;
80
81 Aws::Map<Aws::String, long long> m_treatmentWeights;
82 bool m_treatmentWeightsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CloudWatchEvidently
87} // namespace Aws
void SetTreatmentWeights(const Aws::Map< Aws::String, long long > &value)
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
OnlineAbConfig & WithTreatmentWeights(const Aws::Map< Aws::String, long long > &value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
OnlineAbConfig & WithControlTreatmentName(const char *value)
OnlineAbConfig & AddTreatmentWeights(Aws::String &&key, long long value)
OnlineAbConfig & WithControlTreatmentName(Aws::String &&value)
OnlineAbConfig & WithTreatmentWeights(Aws::Map< Aws::String, long long > &&value)
OnlineAbConfig & AddTreatmentWeights(const char *key, long long value)
OnlineAbConfig & AddTreatmentWeights(const Aws::String &key, long long value)
void SetControlTreatmentName(const Aws::String &value)
const Aws::String & GetControlTreatmentName() const
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbConfig()
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbConfig(Aws::Utils::Json::JsonView jsonValue)
OnlineAbConfig & WithControlTreatmentName(const Aws::String &value)
void SetTreatmentWeights(Aws::Map< Aws::String, long long > &&value)
const Aws::Map< Aws::String, long long > & GetTreatmentWeights() const
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