AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubSlotSetting.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/lexv2-models/model/Specifications.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 SubSlotSetting() = default;
38 AWS_LEXMODELSV2_API SubSlotSetting(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API SubSlotSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetExpression() const { return m_expression; }
49 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
50 template<typename ExpressionT = Aws::String>
51 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
52 template<typename ExpressionT = Aws::String>
53 SubSlotSetting& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
55
57
60 inline const Aws::Map<Aws::String, Specifications>& GetSlotSpecifications() const { return m_slotSpecifications; }
61 inline bool SlotSpecificationsHasBeenSet() const { return m_slotSpecificationsHasBeenSet; }
62 template<typename SlotSpecificationsT = Aws::Map<Aws::String, Specifications>>
63 void SetSlotSpecifications(SlotSpecificationsT&& value) { m_slotSpecificationsHasBeenSet = true; m_slotSpecifications = std::forward<SlotSpecificationsT>(value); }
64 template<typename SlotSpecificationsT = Aws::Map<Aws::String, Specifications>>
65 SubSlotSetting& WithSlotSpecifications(SlotSpecificationsT&& value) { SetSlotSpecifications(std::forward<SlotSpecificationsT>(value)); return *this;}
66 template<typename SlotSpecificationsKeyT = Aws::String, typename SlotSpecificationsValueT = Specifications>
67 SubSlotSetting& AddSlotSpecifications(SlotSpecificationsKeyT&& key, SlotSpecificationsValueT&& value) {
68 m_slotSpecificationsHasBeenSet = true; m_slotSpecifications.emplace(std::forward<SlotSpecificationsKeyT>(key), std::forward<SlotSpecificationsValueT>(value)); return *this;
69 }
71 private:
72
73 Aws::String m_expression;
74 bool m_expressionHasBeenSet = false;
75
76 Aws::Map<Aws::String, Specifications> m_slotSpecifications;
77 bool m_slotSpecificationsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace LexModelsV2
82} // namespace Aws
const Aws::String & GetExpression() const
SubSlotSetting & WithSlotSpecifications(SlotSpecificationsT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Specifications > & GetSlotSpecifications() const
void SetExpression(ExpressionT &&value)
SubSlotSetting & WithExpression(ExpressionT &&value)
void SetSlotSpecifications(SlotSpecificationsT &&value)
AWS_LEXMODELSV2_API SubSlotSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API SubSlotSetting()=default
AWS_LEXMODELSV2_API SubSlotSetting(Aws::Utils::Json::JsonView jsonValue)
SubSlotSetting & AddSlotSpecifications(SlotSpecificationsKeyT &&key, SlotSpecificationsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue