AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SlotDefaultValueSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/model/SlotDefaultValue.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 LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API SlotDefaultValueSpecification() = default;
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<SlotDefaultValue>& GetDefaultValueList() const { return m_defaultValueList; }
48 inline bool DefaultValueListHasBeenSet() const { return m_defaultValueListHasBeenSet; }
49 template<typename DefaultValueListT = Aws::Vector<SlotDefaultValue>>
50 void SetDefaultValueList(DefaultValueListT&& value) { m_defaultValueListHasBeenSet = true; m_defaultValueList = std::forward<DefaultValueListT>(value); }
51 template<typename DefaultValueListT = Aws::Vector<SlotDefaultValue>>
52 SlotDefaultValueSpecification& WithDefaultValueList(DefaultValueListT&& value) { SetDefaultValueList(std::forward<DefaultValueListT>(value)); return *this;}
53 template<typename DefaultValueListT = SlotDefaultValue>
54 SlotDefaultValueSpecification& AddDefaultValueList(DefaultValueListT&& value) { m_defaultValueListHasBeenSet = true; m_defaultValueList.emplace_back(std::forward<DefaultValueListT>(value)); return *this; }
56 private:
57
58 Aws::Vector<SlotDefaultValue> m_defaultValueList;
59 bool m_defaultValueListHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace LexModelsV2
64} // namespace Aws
AWS_LEXMODELSV2_API SlotDefaultValueSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
SlotDefaultValueSpecification & WithDefaultValueList(DefaultValueListT &&value)
AWS_LEXMODELSV2_API SlotDefaultValueSpecification(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SlotDefaultValue > & GetDefaultValueList() const
SlotDefaultValueSpecification & AddDefaultValueList(DefaultValueListT &&value)
AWS_LEXMODELSV2_API SlotDefaultValueSpecification()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue