AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
SlotSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/PromptSpecification.h>
11#include <aws/lexv2-models/model/SlotConstraint.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2 {
23namespace Model {
24
32 public:
33 AWS_LEXMODELSV2_API SlotSummary() = default;
34 AWS_LEXMODELSV2_API SlotSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELSV2_API SlotSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetSlotId() const { return m_slotId; }
43 inline bool SlotIdHasBeenSet() const { return m_slotIdHasBeenSet; }
44 template <typename SlotIdT = Aws::String>
45 void SetSlotId(SlotIdT&& value) {
46 m_slotIdHasBeenSet = true;
47 m_slotId = std::forward<SlotIdT>(value);
48 }
49 template <typename SlotIdT = Aws::String>
50 SlotSummary& WithSlotId(SlotIdT&& value) {
51 SetSlotId(std::forward<SlotIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSlotName() const { return m_slotName; }
61 inline bool SlotNameHasBeenSet() const { return m_slotNameHasBeenSet; }
62 template <typename SlotNameT = Aws::String>
63 void SetSlotName(SlotNameT&& value) {
64 m_slotNameHasBeenSet = true;
65 m_slotName = std::forward<SlotNameT>(value);
66 }
67 template <typename SlotNameT = Aws::String>
68 SlotSummary& WithSlotName(SlotNameT&& value) {
69 SetSlotName(std::forward<SlotNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 SlotSummary& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
97 inline SlotConstraint GetSlotConstraint() const { return m_slotConstraint; }
98 inline bool SlotConstraintHasBeenSet() const { return m_slotConstraintHasBeenSet; }
99 inline void SetSlotConstraint(SlotConstraint value) {
100 m_slotConstraintHasBeenSet = true;
101 m_slotConstraint = value;
102 }
104 SetSlotConstraint(value);
105 return *this;
106 }
108
110
114 inline const Aws::String& GetSlotTypeId() const { return m_slotTypeId; }
115 inline bool SlotTypeIdHasBeenSet() const { return m_slotTypeIdHasBeenSet; }
116 template <typename SlotTypeIdT = Aws::String>
117 void SetSlotTypeId(SlotTypeIdT&& value) {
118 m_slotTypeIdHasBeenSet = true;
119 m_slotTypeId = std::forward<SlotTypeIdT>(value);
120 }
121 template <typename SlotTypeIdT = Aws::String>
122 SlotSummary& WithSlotTypeId(SlotTypeIdT&& value) {
123 SetSlotTypeId(std::forward<SlotTypeIdT>(value));
124 return *this;
125 }
127
129
132 inline const PromptSpecification& GetValueElicitationPromptSpecification() const { return m_valueElicitationPromptSpecification; }
133 inline bool ValueElicitationPromptSpecificationHasBeenSet() const { return m_valueElicitationPromptSpecificationHasBeenSet; }
134 template <typename ValueElicitationPromptSpecificationT = PromptSpecification>
135 void SetValueElicitationPromptSpecification(ValueElicitationPromptSpecificationT&& value) {
136 m_valueElicitationPromptSpecificationHasBeenSet = true;
137 m_valueElicitationPromptSpecification = std::forward<ValueElicitationPromptSpecificationT>(value);
138 }
139 template <typename ValueElicitationPromptSpecificationT = PromptSpecification>
140 SlotSummary& WithValueElicitationPromptSpecification(ValueElicitationPromptSpecificationT&& value) {
141 SetValueElicitationPromptSpecification(std::forward<ValueElicitationPromptSpecificationT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
151 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
152 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
153 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
154 m_lastUpdatedDateTimeHasBeenSet = true;
155 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
156 }
157 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
158 SlotSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
159 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_slotId;
165
166 Aws::String m_slotName;
167
168 Aws::String m_description;
169
170 SlotConstraint m_slotConstraint{SlotConstraint::NOT_SET};
171
172 Aws::String m_slotTypeId;
173
174 PromptSpecification m_valueElicitationPromptSpecification;
175
176 Aws::Utils::DateTime m_lastUpdatedDateTime{};
177 bool m_slotIdHasBeenSet = false;
178 bool m_slotNameHasBeenSet = false;
179 bool m_descriptionHasBeenSet = false;
180 bool m_slotConstraintHasBeenSet = false;
181 bool m_slotTypeIdHasBeenSet = false;
182 bool m_valueElicitationPromptSpecificationHasBeenSet = false;
183 bool m_lastUpdatedDateTimeHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace LexModelsV2
188} // namespace Aws
SlotSummary & WithSlotId(SlotIdT &&value)
Definition SlotSummary.h:50
SlotSummary & WithSlotTypeId(SlotTypeIdT &&value)
const Aws::String & GetSlotId() const
Definition SlotSummary.h:42
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const PromptSpecification & GetValueElicitationPromptSpecification() const
SlotSummary & WithValueElicitationPromptSpecification(ValueElicitationPromptSpecificationT &&value)
void SetValueElicitationPromptSpecification(ValueElicitationPromptSpecificationT &&value)
SlotSummary & WithSlotName(SlotNameT &&value)
Definition SlotSummary.h:68
SlotSummary & WithSlotConstraint(SlotConstraint value)
AWS_LEXMODELSV2_API SlotSummary()=default
bool ValueElicitationPromptSpecificationHasBeenSet() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetSlotTypeId() const
void SetSlotTypeId(SlotTypeIdT &&value)
void SetSlotName(SlotNameT &&value)
Definition SlotSummary.h:63
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
AWS_LEXMODELSV2_API SlotSummary(Aws::Utils::Json::JsonView jsonValue)
SlotSummary & WithDescription(DescriptionT &&value)
Definition SlotSummary.h:86
AWS_LEXMODELSV2_API SlotSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSlotConstraint(SlotConstraint value)
Definition SlotSummary.h:99
SlotConstraint GetSlotConstraint() const
Definition SlotSummary.h:97
const Aws::String & GetDescription() const
Definition SlotSummary.h:78
void SetDescription(DescriptionT &&value)
Definition SlotSummary.h:81
SlotSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetSlotName() const
Definition SlotSummary.h:60
void SetSlotId(SlotIdT &&value)
Definition SlotSummary.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue