AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Treatment.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
35 {
36 public:
37 AWS_CLOUDWATCHEVIDENTLY_API Treatment();
38 AWS_CLOUDWATCHEVIDENTLY_API Treatment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVIDENTLY_API Treatment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDescription() const{ return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
52 inline Treatment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
53 inline Treatment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline Treatment& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
62 inline const Aws::Map<Aws::String, Aws::String>& GetFeatureVariations() const{ return m_featureVariations; }
63 inline bool FeatureVariationsHasBeenSet() const { return m_featureVariationsHasBeenSet; }
64 inline void SetFeatureVariations(const Aws::Map<Aws::String, Aws::String>& value) { m_featureVariationsHasBeenSet = true; m_featureVariations = value; }
65 inline void SetFeatureVariations(Aws::Map<Aws::String, Aws::String>&& value) { m_featureVariationsHasBeenSet = true; m_featureVariations = std::move(value); }
68 inline Treatment& AddFeatureVariations(const Aws::String& key, const Aws::String& value) { m_featureVariationsHasBeenSet = true; m_featureVariations.emplace(key, value); return *this; }
69 inline Treatment& AddFeatureVariations(Aws::String&& key, const Aws::String& value) { m_featureVariationsHasBeenSet = true; m_featureVariations.emplace(std::move(key), value); return *this; }
70 inline Treatment& AddFeatureVariations(const Aws::String& key, Aws::String&& value) { m_featureVariationsHasBeenSet = true; m_featureVariations.emplace(key, std::move(value)); return *this; }
71 inline Treatment& AddFeatureVariations(Aws::String&& key, Aws::String&& value) { m_featureVariationsHasBeenSet = true; m_featureVariations.emplace(std::move(key), std::move(value)); return *this; }
72 inline Treatment& AddFeatureVariations(const char* key, Aws::String&& value) { m_featureVariationsHasBeenSet = true; m_featureVariations.emplace(key, std::move(value)); return *this; }
73 inline Treatment& AddFeatureVariations(Aws::String&& key, const char* value) { m_featureVariationsHasBeenSet = true; m_featureVariations.emplace(std::move(key), value); return *this; }
74 inline Treatment& AddFeatureVariations(const char* key, const char* value) { m_featureVariationsHasBeenSet = true; m_featureVariations.emplace(key, value); return *this; }
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline Treatment& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline Treatment& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline Treatment& WithName(const char* value) { SetName(value); return *this;}
90 private:
91
92 Aws::String m_description;
93 bool m_descriptionHasBeenSet = false;
94
95 Aws::Map<Aws::String, Aws::String> m_featureVariations;
96 bool m_featureVariationsHasBeenSet = false;
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CloudWatchEvidently
104} // namespace Aws
Treatment & AddFeatureVariations(const Aws::String &key, const Aws::String &value)
Definition Treatment.h:68
Treatment & AddFeatureVariations(Aws::String &&key, const char *value)
Definition Treatment.h:73
Treatment & AddFeatureVariations(Aws::String &&key, const Aws::String &value)
Definition Treatment.h:69
Treatment & AddFeatureVariations(const char *key, Aws::String &&value)
Definition Treatment.h:72
Treatment & WithName(Aws::String &&value)
Definition Treatment.h:87
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition Treatment.h:84
void SetDescription(const Aws::String &value)
Definition Treatment.h:49
void SetDescription(Aws::String &&value)
Definition Treatment.h:50
const Aws::String & GetDescription() const
Definition Treatment.h:47
void SetDescription(const char *value)
Definition Treatment.h:51
void SetFeatureVariations(const Aws::Map< Aws::String, Aws::String > &value)
Definition Treatment.h:64
Treatment & WithName(const char *value)
Definition Treatment.h:88
AWS_CLOUDWATCHEVIDENTLY_API Treatment()
const Aws::Map< Aws::String, Aws::String > & GetFeatureVariations() const
Definition Treatment.h:62
AWS_CLOUDWATCHEVIDENTLY_API Treatment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVIDENTLY_API Treatment(Aws::Utils::Json::JsonView jsonValue)
Treatment & WithDescription(const Aws::String &value)
Definition Treatment.h:52
Treatment & WithDescription(const char *value)
Definition Treatment.h:54
Treatment & AddFeatureVariations(Aws::String &&key, Aws::String &&value)
Definition Treatment.h:71
Treatment & AddFeatureVariations(const Aws::String &key, Aws::String &&value)
Definition Treatment.h:70
void SetName(const Aws::String &value)
Definition Treatment.h:83
Treatment & WithFeatureVariations(Aws::Map< Aws::String, Aws::String > &&value)
Definition Treatment.h:67
Treatment & WithName(const Aws::String &value)
Definition Treatment.h:86
Treatment & WithDescription(Aws::String &&value)
Definition Treatment.h:53
void SetFeatureVariations(Aws::Map< Aws::String, Aws::String > &&value)
Definition Treatment.h:65
Treatment & WithFeatureVariations(const Aws::Map< Aws::String, Aws::String > &value)
Definition Treatment.h:66
Treatment & AddFeatureVariations(const char *key, const char *value)
Definition Treatment.h:74
const Aws::String & GetName() const
Definition Treatment.h:81
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