AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Variation.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 Variation();
37 AWS_CLOUDWATCHEVIDENTLY_API Variation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVIDENTLY_API Variation& 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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Variation& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Variation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Variation& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const VariableValue& GetValue() const{ return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 inline void SetValue(const VariableValue& value) { m_valueHasBeenSet = true; m_value = value; }
63 inline void SetValue(VariableValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
64 inline Variation& WithValue(const VariableValue& value) { SetValue(value); return *this;}
65 inline Variation& WithValue(VariableValue&& value) { SetValue(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_name;
70 bool m_nameHasBeenSet = false;
71
72 VariableValue m_value;
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudWatchEvidently
78} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Variation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Variation.h:46
Variation & WithName(const Aws::String &value)
Definition Variation.h:51
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(const VariableValue &value)
Definition Variation.h:62
Variation & WithName(Aws::String &&value)
Definition Variation.h:52
void SetName(const Aws::String &value)
Definition Variation.h:48
Variation & WithValue(VariableValue &&value)
Definition Variation.h:65
Variation & WithName(const char *value)
Definition Variation.h:53
AWS_CLOUDWATCHEVIDENTLY_API Variation()
AWS_CLOUDWATCHEVIDENTLY_API Variation & operator=(Aws::Utils::Json::JsonView jsonValue)
Variation & WithValue(const VariableValue &value)
Definition Variation.h:64
void SetValue(VariableValue &&value)
Definition Variation.h:63
void SetName(Aws::String &&value)
Definition Variation.h:49
const VariableValue & GetValue() const
Definition Variation.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue