AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
UserTurnSlotOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2 {
22namespace Model {
23
31 public:
32 AWS_LEXMODELSV2_API UserTurnSlotOutput() = default;
33 AWS_LEXMODELSV2_API UserTurnSlotOutput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetValue() const { return m_value; }
42 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
43 template <typename ValueT = Aws::String>
44 void SetValue(ValueT&& value) {
45 m_valueHasBeenSet = true;
46 m_value = std::forward<ValueT>(value);
47 }
48 template <typename ValueT = Aws::String>
49 UserTurnSlotOutput& WithValue(ValueT&& value) {
50 SetValue(std::forward<ValueT>(value));
51 return *this;
52 }
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) {
63 m_valuesHasBeenSet = true;
64 m_values = std::forward<ValuesT>(value);
65 }
66 template <typename ValuesT = Aws::Vector<UserTurnSlotOutput>>
67 UserTurnSlotOutput& WithValues(ValuesT&& value) {
68 SetValues(std::forward<ValuesT>(value));
69 return *this;
70 }
71 template <typename ValuesT = UserTurnSlotOutput>
72 UserTurnSlotOutput& AddValues(ValuesT&& value) {
73 m_valuesHasBeenSet = true;
74 m_values.emplace_back(std::forward<ValuesT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Map<Aws::String, UserTurnSlotOutput>& GetSubSlots() const { return m_subSlots; }
85 inline bool SubSlotsHasBeenSet() const { return m_subSlotsHasBeenSet; }
86 template <typename SubSlotsT = Aws::Map<Aws::String, UserTurnSlotOutput>>
87 void SetSubSlots(SubSlotsT&& value) {
88 m_subSlotsHasBeenSet = true;
89 m_subSlots = std::forward<SubSlotsT>(value);
90 }
91 template <typename SubSlotsT = Aws::Map<Aws::String, UserTurnSlotOutput>>
92 UserTurnSlotOutput& WithSubSlots(SubSlotsT&& value) {
93 SetSubSlots(std::forward<SubSlotsT>(value));
94 return *this;
95 }
96 template <typename SubSlotsKeyT = Aws::String, typename SubSlotsValueT = UserTurnSlotOutput>
97 UserTurnSlotOutput& AddSubSlots(SubSlotsKeyT&& key, SubSlotsValueT&& value) {
98 m_subSlotsHasBeenSet = true;
99 m_subSlots.emplace(std::forward<SubSlotsKeyT>(key), std::forward<SubSlotsValueT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_value;
105
107
109 bool m_valueHasBeenSet = false;
110 bool m_valuesHasBeenSet = false;
111 bool m_subSlotsHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace LexModelsV2
116} // 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