AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserTurnSlotOutput.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 UserTurnSlotOutput() = default;
38 AWS_LEXMODELSV2_API UserTurnSlotOutput(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetValue() const { return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 template<typename ValueT = Aws::String>
50 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
51 template<typename ValueT = Aws::String>
52 UserTurnSlotOutput& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
54
56
59 inline const Aws::Vector<UserTurnSlotOutput>& GetValues() const { return m_values; }
60 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
61 template<typename ValuesT = Aws::Vector<UserTurnSlotOutput>>
62 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
63 template<typename ValuesT = Aws::Vector<UserTurnSlotOutput>>
64 UserTurnSlotOutput& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
65 template<typename ValuesT = UserTurnSlotOutput>
66 UserTurnSlotOutput& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
68
70
74 inline const Aws::Map<Aws::String, UserTurnSlotOutput>& GetSubSlots() const { return m_subSlots; }
75 inline bool SubSlotsHasBeenSet() const { return m_subSlotsHasBeenSet; }
76 template<typename SubSlotsT = Aws::Map<Aws::String, UserTurnSlotOutput>>
77 void SetSubSlots(SubSlotsT&& value) { m_subSlotsHasBeenSet = true; m_subSlots = std::forward<SubSlotsT>(value); }
78 template<typename SubSlotsT = Aws::Map<Aws::String, UserTurnSlotOutput>>
79 UserTurnSlotOutput& WithSubSlots(SubSlotsT&& value) { SetSubSlots(std::forward<SubSlotsT>(value)); return *this;}
80 template<typename SubSlotsKeyT = Aws::String, typename SubSlotsValueT = UserTurnSlotOutput>
81 UserTurnSlotOutput& AddSubSlots(SubSlotsKeyT&& key, SubSlotsValueT&& value) {
82 m_subSlotsHasBeenSet = true; m_subSlots.emplace(std::forward<SubSlotsKeyT>(key), std::forward<SubSlotsValueT>(value)); return *this;
83 }
85 private:
86
87 Aws::String m_value;
88 bool m_valueHasBeenSet = false;
89
91 bool m_valuesHasBeenSet = false;
92
94 bool m_subSlotsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace LexModelsV2
99} // namespace Aws
AWS_LEXMODELSV2_API UserTurnSlotOutput()=default
AWS_LEXMODELSV2_API UserTurnSlotOutput(Aws::Utils::Json::JsonView jsonValue)
UserTurnSlotOutput & AddSubSlots(SubSlotsKeyT &&key, SubSlotsValueT &&value)
AWS_LEXMODELSV2_API UserTurnSlotOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
UserTurnSlotOutput & WithValue(ValueT &&value)
const Aws::Map< Aws::String, UserTurnSlotOutput > & GetSubSlots() const
UserTurnSlotOutput & WithValues(ValuesT &&value)
UserTurnSlotOutput & WithSubSlots(SubSlotsT &&value)
UserTurnSlotOutput & AddValues(ValuesT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< UserTurnSlotOutput > & GetValues() const
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue