AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DescriptionT = Aws::String>
50 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
51 template<typename DescriptionT = Aws::String>
52 Treatment& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
54
56
60 inline const Aws::Map<Aws::String, Aws::String>& GetFeatureVariations() const { return m_featureVariations; }
61 inline bool FeatureVariationsHasBeenSet() const { return m_featureVariationsHasBeenSet; }
62 template<typename FeatureVariationsT = Aws::Map<Aws::String, Aws::String>>
63 void SetFeatureVariations(FeatureVariationsT&& value) { m_featureVariationsHasBeenSet = true; m_featureVariations = std::forward<FeatureVariationsT>(value); }
64 template<typename FeatureVariationsT = Aws::Map<Aws::String, Aws::String>>
65 Treatment& WithFeatureVariations(FeatureVariationsT&& value) { SetFeatureVariations(std::forward<FeatureVariationsT>(value)); return *this;}
66 template<typename FeatureVariationsKeyT = Aws::String, typename FeatureVariationsValueT = Aws::String>
67 Treatment& AddFeatureVariations(FeatureVariationsKeyT&& key, FeatureVariationsValueT&& value) {
68 m_featureVariationsHasBeenSet = true; m_featureVariations.emplace(std::forward<FeatureVariationsKeyT>(key), std::forward<FeatureVariationsValueT>(value)); return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template<typename NameT = Aws::String>
79 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
80 template<typename NameT = Aws::String>
81 Treatment& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
83 private:
84
85 Aws::String m_description;
86 bool m_descriptionHasBeenSet = false;
87
88 Aws::Map<Aws::String, Aws::String> m_featureVariations;
89 bool m_featureVariationsHasBeenSet = false;
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CloudWatchEvidently
97} // namespace Aws
void SetDescription(DescriptionT &&value)
Definition Treatment.h:50
Treatment & WithFeatureVariations(FeatureVariationsT &&value)
Definition Treatment.h:65
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
Treatment & AddFeatureVariations(FeatureVariationsKeyT &&key, FeatureVariationsValueT &&value)
Definition Treatment.h:67
const Aws::String & GetDescription() const
Definition Treatment.h:47
AWS_CLOUDWATCHEVIDENTLY_API Treatment()=default
Treatment & WithName(NameT &&value)
Definition Treatment.h:81
const Aws::Map< Aws::String, Aws::String > & GetFeatureVariations() const
Definition Treatment.h:60
void SetFeatureVariations(FeatureVariationsT &&value)
Definition Treatment.h:63
AWS_CLOUDWATCHEVIDENTLY_API Treatment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVIDENTLY_API Treatment(Aws::Utils::Json::JsonView jsonValue)
Treatment & WithDescription(DescriptionT &&value)
Definition Treatment.h:52
const Aws::String & GetName() const
Definition Treatment.h:76
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