AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VariationConfig.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/evidently/model/VariableValue.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
34 {
35 public:
36 AWS_CLOUDWATCHEVIDENTLY_API VariationConfig() = default;
37 AWS_CLOUDWATCHEVIDENTLY_API VariationConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVIDENTLY_API VariationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 VariationConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const VariableValue& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template<typename ValueT = VariableValue>
61 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
62 template<typename ValueT = VariableValue>
63 VariationConfig& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
65 private:
66
67 Aws::String m_name;
68 bool m_nameHasBeenSet = false;
69
70 VariableValue m_value;
71 bool m_valueHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudWatchEvidently
76} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHEVIDENTLY_API VariationConfig()=default
VariationConfig & WithName(NameT &&value)
AWS_CLOUDWATCHEVIDENTLY_API VariationConfig(Aws::Utils::Json::JsonView jsonValue)
VariationConfig & WithValue(ValueT &&value)
AWS_CLOUDWATCHEVIDENTLY_API VariationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue