AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SlotValueOverride.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/SlotShape.h>
9#include <aws/lexv2-models/model/SlotValue.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LEXMODELSV2_API SlotValueOverride();
38 AWS_LEXMODELSV2_API SlotValueOverride(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const SlotShape& GetShape() const{ return m_shape; }
51 inline bool ShapeHasBeenSet() const { return m_shapeHasBeenSet; }
52 inline void SetShape(const SlotShape& value) { m_shapeHasBeenSet = true; m_shape = value; }
53 inline void SetShape(SlotShape&& value) { m_shapeHasBeenSet = true; m_shape = std::move(value); }
54 inline SlotValueOverride& WithShape(const SlotShape& value) { SetShape(value); return *this;}
55 inline SlotValueOverride& WithShape(SlotShape&& value) { SetShape(std::move(value)); return *this;}
57
59
62 inline const SlotValue& GetValue() const{ return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 inline void SetValue(const SlotValue& value) { m_valueHasBeenSet = true; m_value = value; }
65 inline void SetValue(SlotValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
66 inline SlotValueOverride& WithValue(const SlotValue& value) { SetValue(value); return *this;}
67 inline SlotValueOverride& WithValue(SlotValue&& value) { SetValue(std::move(value)); return *this;}
69
71
76 inline const Aws::Vector<SlotValueOverride>& GetValues() const{ return m_values; }
77 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
78 inline void SetValues(const Aws::Vector<SlotValueOverride>& value) { m_valuesHasBeenSet = true; m_values = value; }
79 inline void SetValues(Aws::Vector<SlotValueOverride>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
80 inline SlotValueOverride& WithValues(const Aws::Vector<SlotValueOverride>& value) { SetValues(value); return *this;}
81 inline SlotValueOverride& WithValues(Aws::Vector<SlotValueOverride>&& value) { SetValues(std::move(value)); return *this;}
82 inline SlotValueOverride& AddValues(const SlotValueOverride& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
83 inline SlotValueOverride& AddValues(SlotValueOverride&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
85 private:
86
87 SlotShape m_shape;
88 bool m_shapeHasBeenSet = false;
89
90 SlotValue m_value;
91 bool m_valueHasBeenSet = false;
92
94 bool m_valuesHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace LexModelsV2
99} // namespace Aws
SlotValueOverride & WithValue(const SlotValue &value)
const Aws::Vector< SlotValueOverride > & GetValues() const
SlotValueOverride & AddValues(const SlotValueOverride &value)
SlotValueOverride & WithValues(Aws::Vector< SlotValueOverride > &&value)
SlotValueOverride & WithShape(SlotShape &&value)
SlotValueOverride & WithValues(const Aws::Vector< SlotValueOverride > &value)
void SetValues(Aws::Vector< SlotValueOverride > &&value)
void SetValues(const Aws::Vector< SlotValueOverride > &value)
AWS_LEXMODELSV2_API SlotValueOverride(Aws::Utils::Json::JsonView jsonValue)
SlotValueOverride & AddValues(SlotValueOverride &&value)
SlotValueOverride & WithShape(const SlotShape &value)
AWS_LEXMODELSV2_API SlotValueOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
SlotValueOverride & WithValue(SlotValue &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue