AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Value.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 LexRuntimeV2
23{
24namespace Model
25{
26
33 class Value
34 {
35 public:
36 AWS_LEXRUNTIMEV2_API Value();
37 AWS_LEXRUNTIMEV2_API Value(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMEV2_API Value& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetOriginalValue() const{ return m_originalValue; }
48 inline bool OriginalValueHasBeenSet() const { return m_originalValueHasBeenSet; }
49 inline void SetOriginalValue(const Aws::String& value) { m_originalValueHasBeenSet = true; m_originalValue = value; }
50 inline void SetOriginalValue(Aws::String&& value) { m_originalValueHasBeenSet = true; m_originalValue = std::move(value); }
51 inline void SetOriginalValue(const char* value) { m_originalValueHasBeenSet = true; m_originalValue.assign(value); }
52 inline Value& WithOriginalValue(const Aws::String& value) { SetOriginalValue(value); return *this;}
53 inline Value& WithOriginalValue(Aws::String&& value) { SetOriginalValue(std::move(value)); return *this;}
54 inline Value& WithOriginalValue(const char* value) { SetOriginalValue(value); return *this;}
56
58
64 inline const Aws::String& GetInterpretedValue() const{ return m_interpretedValue; }
65 inline bool InterpretedValueHasBeenSet() const { return m_interpretedValueHasBeenSet; }
66 inline void SetInterpretedValue(const Aws::String& value) { m_interpretedValueHasBeenSet = true; m_interpretedValue = value; }
67 inline void SetInterpretedValue(Aws::String&& value) { m_interpretedValueHasBeenSet = true; m_interpretedValue = std::move(value); }
68 inline void SetInterpretedValue(const char* value) { m_interpretedValueHasBeenSet = true; m_interpretedValue.assign(value); }
69 inline Value& WithInterpretedValue(const Aws::String& value) { SetInterpretedValue(value); return *this;}
70 inline Value& WithInterpretedValue(Aws::String&& value) { SetInterpretedValue(std::move(value)); return *this;}
71 inline Value& WithInterpretedValue(const char* value) { SetInterpretedValue(value); return *this;}
73
75
79 inline const Aws::Vector<Aws::String>& GetResolvedValues() const{ return m_resolvedValues; }
80 inline bool ResolvedValuesHasBeenSet() const { return m_resolvedValuesHasBeenSet; }
81 inline void SetResolvedValues(const Aws::Vector<Aws::String>& value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues = value; }
82 inline void SetResolvedValues(Aws::Vector<Aws::String>&& value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues = std::move(value); }
83 inline Value& WithResolvedValues(const Aws::Vector<Aws::String>& value) { SetResolvedValues(value); return *this;}
84 inline Value& WithResolvedValues(Aws::Vector<Aws::String>&& value) { SetResolvedValues(std::move(value)); return *this;}
85 inline Value& AddResolvedValues(const Aws::String& value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues.push_back(value); return *this; }
86 inline Value& AddResolvedValues(Aws::String&& value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues.push_back(std::move(value)); return *this; }
87 inline Value& AddResolvedValues(const char* value) { m_resolvedValuesHasBeenSet = true; m_resolvedValues.push_back(value); return *this; }
89 private:
90
91 Aws::String m_originalValue;
92 bool m_originalValueHasBeenSet = false;
93
94 Aws::String m_interpretedValue;
95 bool m_interpretedValueHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_resolvedValues;
98 bool m_resolvedValuesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace LexRuntimeV2
103} // namespace Aws
Value & AddResolvedValues(const Aws::String &value)
Definition Value.h:85
bool InterpretedValueHasBeenSet() const
Definition Value.h:65
bool OriginalValueHasBeenSet() const
Definition Value.h:48
Value & WithInterpretedValue(Aws::String &&value)
Definition Value.h:70
Value & WithResolvedValues(const Aws::Vector< Aws::String > &value)
Definition Value.h:83
void SetResolvedValues(Aws::Vector< Aws::String > &&value)
Definition Value.h:82
Value & WithInterpretedValue(const Aws::String &value)
Definition Value.h:69
void SetInterpretedValue(Aws::String &&value)
Definition Value.h:67
AWS_LEXRUNTIMEV2_API Value(Aws::Utils::Json::JsonView jsonValue)
Value & WithOriginalValue(const Aws::String &value)
Definition Value.h:52
Value & WithOriginalValue(const char *value)
Definition Value.h:54
Value & WithOriginalValue(Aws::String &&value)
Definition Value.h:53
Value & WithResolvedValues(Aws::Vector< Aws::String > &&value)
Definition Value.h:84
AWS_LEXRUNTIMEV2_API Value & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API Value()
Value & WithInterpretedValue(const char *value)
Definition Value.h:71
const Aws::Vector< Aws::String > & GetResolvedValues() const
Definition Value.h:79
void SetOriginalValue(const char *value)
Definition Value.h:51
void SetInterpretedValue(const Aws::String &value)
Definition Value.h:66
Value & AddResolvedValues(Aws::String &&value)
Definition Value.h:86
Value & AddResolvedValues(const char *value)
Definition Value.h:87
void SetInterpretedValue(const char *value)
Definition Value.h:68
const Aws::String & GetInterpretedValue() const
Definition Value.h:64
const Aws::String & GetOriginalValue() const
Definition Value.h:47
bool ResolvedValuesHasBeenSet() const
Definition Value.h:80
void SetOriginalValue(Aws::String &&value)
Definition Value.h:50
void SetOriginalValue(const Aws::String &value)
Definition Value.h:49
void SetResolvedValues(const Aws::Vector< Aws::String > &value)
Definition Value.h:81
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue