AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SlotSummary.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/lexv2-models/model/SlotConstraint.h>
10#include <aws/lexv2-models/model/PromptSpecification.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LEXMODELSV2_API SlotSummary() = default;
39 AWS_LEXMODELSV2_API SlotSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API SlotSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetSlotId() const { return m_slotId; }
49 inline bool SlotIdHasBeenSet() const { return m_slotIdHasBeenSet; }
50 template<typename SlotIdT = Aws::String>
51 void SetSlotId(SlotIdT&& value) { m_slotIdHasBeenSet = true; m_slotId = std::forward<SlotIdT>(value); }
52 template<typename SlotIdT = Aws::String>
53 SlotSummary& WithSlotId(SlotIdT&& value) { SetSlotId(std::forward<SlotIdT>(value)); return *this;}
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) { m_slotNameHasBeenSet = true; m_slotName = std::forward<SlotNameT>(value); }
64 template<typename SlotNameT = Aws::String>
65 SlotSummary& WithSlotName(SlotNameT&& value) { SetSlotName(std::forward<SlotNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 SlotSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
85 inline SlotConstraint GetSlotConstraint() const { return m_slotConstraint; }
86 inline bool SlotConstraintHasBeenSet() const { return m_slotConstraintHasBeenSet; }
87 inline void SetSlotConstraint(SlotConstraint value) { m_slotConstraintHasBeenSet = true; m_slotConstraint = value; }
88 inline SlotSummary& WithSlotConstraint(SlotConstraint value) { SetSlotConstraint(value); return *this;}
90
92
96 inline const Aws::String& GetSlotTypeId() const { return m_slotTypeId; }
97 inline bool SlotTypeIdHasBeenSet() const { return m_slotTypeIdHasBeenSet; }
98 template<typename SlotTypeIdT = Aws::String>
99 void SetSlotTypeId(SlotTypeIdT&& value) { m_slotTypeIdHasBeenSet = true; m_slotTypeId = std::forward<SlotTypeIdT>(value); }
100 template<typename SlotTypeIdT = Aws::String>
101 SlotSummary& WithSlotTypeId(SlotTypeIdT&& value) { SetSlotTypeId(std::forward<SlotTypeIdT>(value)); return *this;}
103
105
108 inline const PromptSpecification& GetValueElicitationPromptSpecification() const { return m_valueElicitationPromptSpecification; }
109 inline bool ValueElicitationPromptSpecificationHasBeenSet() const { return m_valueElicitationPromptSpecificationHasBeenSet; }
110 template<typename ValueElicitationPromptSpecificationT = PromptSpecification>
111 void SetValueElicitationPromptSpecification(ValueElicitationPromptSpecificationT&& value) { m_valueElicitationPromptSpecificationHasBeenSet = true; m_valueElicitationPromptSpecification = std::forward<ValueElicitationPromptSpecificationT>(value); }
112 template<typename ValueElicitationPromptSpecificationT = PromptSpecification>
113 SlotSummary& WithValueElicitationPromptSpecification(ValueElicitationPromptSpecificationT&& value) { SetValueElicitationPromptSpecification(std::forward<ValueElicitationPromptSpecificationT>(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
121 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
122 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
123 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
124 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
125 SlotSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
127 private:
128
129 Aws::String m_slotId;
130 bool m_slotIdHasBeenSet = false;
131
132 Aws::String m_slotName;
133 bool m_slotNameHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 SlotConstraint m_slotConstraint{SlotConstraint::NOT_SET};
139 bool m_slotConstraintHasBeenSet = false;
140
141 Aws::String m_slotTypeId;
142 bool m_slotTypeIdHasBeenSet = false;
143
144 PromptSpecification m_valueElicitationPromptSpecification;
145 bool m_valueElicitationPromptSpecificationHasBeenSet = false;
146
147 Aws::Utils::DateTime m_lastUpdatedDateTime{};
148 bool m_lastUpdatedDateTimeHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace LexModelsV2
153} // namespace Aws
SlotSummary & WithSlotId(SlotIdT &&value)
Definition SlotSummary.h:53
SlotSummary & WithSlotTypeId(SlotTypeIdT &&value)
const Aws::String & GetSlotId() const
Definition SlotSummary.h:48
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:65
SlotSummary & WithSlotConstraint(SlotConstraint value)
Definition SlotSummary.h:88
AWS_LEXMODELSV2_API SlotSummary()=default
bool ValueElicitationPromptSpecificationHasBeenSet() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetSlotTypeId() const
Definition SlotSummary.h:96
void SetSlotTypeId(SlotTypeIdT &&value)
Definition SlotSummary.h:99
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:77
AWS_LEXMODELSV2_API SlotSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSlotConstraint(SlotConstraint value)
Definition SlotSummary.h:87
SlotConstraint GetSlotConstraint() const
Definition SlotSummary.h:85
const Aws::String & GetDescription() const
Definition SlotSummary.h:72
void SetDescription(DescriptionT &&value)
Definition SlotSummary.h:75
SlotSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetSlotName() const
Definition SlotSummary.h:60
void SetSlotId(SlotIdT &&value)
Definition SlotSummary.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue