AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SlotValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
27class SlotValue {
28 public:
29 AWS_LEXMODELSV2_API SlotValue() = default;
30 AWS_LEXMODELSV2_API SlotValue(Aws::Utils::Json::JsonView jsonValue);
31 AWS_LEXMODELSV2_API SlotValue& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
41 inline const Aws::String& GetInterpretedValue() const { return m_interpretedValue; }
42 inline bool InterpretedValueHasBeenSet() const { return m_interpretedValueHasBeenSet; }
43 template <typename InterpretedValueT = Aws::String>
44 void SetInterpretedValue(InterpretedValueT&& value) {
45 m_interpretedValueHasBeenSet = true;
46 m_interpretedValue = std::forward<InterpretedValueT>(value);
47 }
48 template <typename InterpretedValueT = Aws::String>
49 SlotValue& WithInterpretedValue(InterpretedValueT&& value) {
50 SetInterpretedValue(std::forward<InterpretedValueT>(value));
51 return *this;
52 }
54 private:
55 Aws::String m_interpretedValue;
56 bool m_interpretedValueHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace LexModelsV2
61} // namespace Aws
AWS_LEXMODELSV2_API SlotValue(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API SlotValue()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInterpretedValue(InterpretedValueT &&value)
Definition SlotValue.h:44
const Aws::String & GetInterpretedValue() const
Definition SlotValue.h:41
AWS_LEXMODELSV2_API SlotValue & operator=(Aws::Utils::Json::JsonView jsonValue)
SlotValue & WithInterpretedValue(InterpretedValueT &&value)
Definition SlotValue.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue