AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserTurnIntentOutput.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/UserTurnSlotOutput.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 UserTurnIntentOutput() = default;
38 AWS_LEXMODELSV2_API UserTurnIntentOutput(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 UserTurnIntentOutput& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::Map<Aws::String, UserTurnSlotOutput>& GetSlots() const { return m_slots; }
60 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
61 template<typename SlotsT = Aws::Map<Aws::String, UserTurnSlotOutput>>
62 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots = std::forward<SlotsT>(value); }
63 template<typename SlotsT = Aws::Map<Aws::String, UserTurnSlotOutput>>
64 UserTurnIntentOutput& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
65 template<typename SlotsKeyT = Aws::String, typename SlotsValueT = UserTurnSlotOutput>
66 UserTurnIntentOutput& AddSlots(SlotsKeyT&& key, SlotsValueT&& value) {
67 m_slotsHasBeenSet = true; m_slots.emplace(std::forward<SlotsKeyT>(key), std::forward<SlotsValueT>(value)); return *this;
68 }
70 private:
71
72 Aws::String m_name;
73 bool m_nameHasBeenSet = false;
74
76 bool m_slotsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace LexModelsV2
81} // namespace Aws
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API UserTurnIntentOutput()=default
UserTurnIntentOutput & AddSlots(SlotsKeyT &&key, SlotsValueT &&value)
AWS_LEXMODELSV2_API UserTurnIntentOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
UserTurnIntentOutput & WithName(NameT &&value)
const Aws::Map< Aws::String, UserTurnSlotOutput > & GetSlots() const
AWS_LEXMODELSV2_API UserTurnIntentOutput(Aws::Utils::Json::JsonView jsonValue)
UserTurnIntentOutput & WithSlots(SlotsT &&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