AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PromptSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/model/MessageSelectionStrategy.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/lexv2-models/model/MessageGroup.h>
12#include <aws/lexv2-models/model/PromptAttempt.h>
13#include <aws/lexv2-models/model/PromptAttemptSpecification.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LexModelsV2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_LEXMODELSV2_API PromptSpecification();
41 AWS_LEXMODELSV2_API PromptSpecification(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<MessageGroup>& GetMessageGroups() const{ return m_messageGroups; }
52 inline bool MessageGroupsHasBeenSet() const { return m_messageGroupsHasBeenSet; }
53 inline void SetMessageGroups(const Aws::Vector<MessageGroup>& value) { m_messageGroupsHasBeenSet = true; m_messageGroups = value; }
54 inline void SetMessageGroups(Aws::Vector<MessageGroup>&& value) { m_messageGroupsHasBeenSet = true; m_messageGroups = std::move(value); }
56 inline PromptSpecification& WithMessageGroups(Aws::Vector<MessageGroup>&& value) { SetMessageGroups(std::move(value)); return *this;}
57 inline PromptSpecification& AddMessageGroups(const MessageGroup& value) { m_messageGroupsHasBeenSet = true; m_messageGroups.push_back(value); return *this; }
58 inline PromptSpecification& AddMessageGroups(MessageGroup&& value) { m_messageGroupsHasBeenSet = true; m_messageGroups.push_back(std::move(value)); return *this; }
60
62
66 inline int GetMaxRetries() const{ return m_maxRetries; }
67 inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
68 inline void SetMaxRetries(int value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
69 inline PromptSpecification& WithMaxRetries(int value) { SetMaxRetries(value); return *this;}
71
73
76 inline bool GetAllowInterrupt() const{ return m_allowInterrupt; }
77 inline bool AllowInterruptHasBeenSet() const { return m_allowInterruptHasBeenSet; }
78 inline void SetAllowInterrupt(bool value) { m_allowInterruptHasBeenSet = true; m_allowInterrupt = value; }
79 inline PromptSpecification& WithAllowInterrupt(bool value) { SetAllowInterrupt(value); return *this;}
81
83
86 inline const MessageSelectionStrategy& GetMessageSelectionStrategy() const{ return m_messageSelectionStrategy; }
87 inline bool MessageSelectionStrategyHasBeenSet() const { return m_messageSelectionStrategyHasBeenSet; }
88 inline void SetMessageSelectionStrategy(const MessageSelectionStrategy& value) { m_messageSelectionStrategyHasBeenSet = true; m_messageSelectionStrategy = value; }
89 inline void SetMessageSelectionStrategy(MessageSelectionStrategy&& value) { m_messageSelectionStrategyHasBeenSet = true; m_messageSelectionStrategy = std::move(value); }
93
95
98 inline const Aws::Map<PromptAttempt, PromptAttemptSpecification>& GetPromptAttemptsSpecification() const{ return m_promptAttemptsSpecification; }
99 inline bool PromptAttemptsSpecificationHasBeenSet() const { return m_promptAttemptsSpecificationHasBeenSet; }
100 inline void SetPromptAttemptsSpecification(const Aws::Map<PromptAttempt, PromptAttemptSpecification>& value) { m_promptAttemptsSpecificationHasBeenSet = true; m_promptAttemptsSpecification = value; }
101 inline void SetPromptAttemptsSpecification(Aws::Map<PromptAttempt, PromptAttemptSpecification>&& value) { m_promptAttemptsSpecificationHasBeenSet = true; m_promptAttemptsSpecification = std::move(value); }
104 inline PromptSpecification& AddPromptAttemptsSpecification(const PromptAttempt& key, const PromptAttemptSpecification& value) { m_promptAttemptsSpecificationHasBeenSet = true; m_promptAttemptsSpecification.emplace(key, value); return *this; }
105 inline PromptSpecification& AddPromptAttemptsSpecification(PromptAttempt&& key, const PromptAttemptSpecification& value) { m_promptAttemptsSpecificationHasBeenSet = true; m_promptAttemptsSpecification.emplace(std::move(key), value); return *this; }
106 inline PromptSpecification& AddPromptAttemptsSpecification(const PromptAttempt& key, PromptAttemptSpecification&& value) { m_promptAttemptsSpecificationHasBeenSet = true; m_promptAttemptsSpecification.emplace(key, std::move(value)); return *this; }
107 inline PromptSpecification& AddPromptAttemptsSpecification(PromptAttempt&& key, PromptAttemptSpecification&& value) { m_promptAttemptsSpecificationHasBeenSet = true; m_promptAttemptsSpecification.emplace(std::move(key), std::move(value)); return *this; }
109 private:
110
111 Aws::Vector<MessageGroup> m_messageGroups;
112 bool m_messageGroupsHasBeenSet = false;
113
114 int m_maxRetries;
115 bool m_maxRetriesHasBeenSet = false;
116
117 bool m_allowInterrupt;
118 bool m_allowInterruptHasBeenSet = false;
119
120 MessageSelectionStrategy m_messageSelectionStrategy;
121 bool m_messageSelectionStrategyHasBeenSet = false;
122
123 Aws::Map<PromptAttempt, PromptAttemptSpecification> m_promptAttemptsSpecification;
124 bool m_promptAttemptsSpecificationHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace LexModelsV2
129} // namespace Aws
PromptSpecification & AddMessageGroups(MessageGroup &&value)
PromptSpecification & AddPromptAttemptsSpecification(PromptAttempt &&key, PromptAttemptSpecification &&value)
PromptSpecification & WithMessageGroups(const Aws::Vector< MessageGroup > &value)
void SetPromptAttemptsSpecification(Aws::Map< PromptAttempt, PromptAttemptSpecification > &&value)
PromptSpecification & WithMaxRetries(int value)
PromptSpecification & WithPromptAttemptsSpecification(const Aws::Map< PromptAttempt, PromptAttemptSpecification > &value)
AWS_LEXMODELSV2_API PromptSpecification(Aws::Utils::Json::JsonView jsonValue)
PromptSpecification & AddPromptAttemptsSpecification(const PromptAttempt &key, const PromptAttemptSpecification &value)
const Aws::Vector< MessageGroup > & GetMessageGroups() const
const MessageSelectionStrategy & GetMessageSelectionStrategy() const
PromptSpecification & WithMessageSelectionStrategy(const MessageSelectionStrategy &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessageGroups(Aws::Vector< MessageGroup > &&value)
void SetPromptAttemptsSpecification(const Aws::Map< PromptAttempt, PromptAttemptSpecification > &value)
const Aws::Map< PromptAttempt, PromptAttemptSpecification > & GetPromptAttemptsSpecification() const
PromptSpecification & AddMessageGroups(const MessageGroup &value)
PromptSpecification & WithPromptAttemptsSpecification(Aws::Map< PromptAttempt, PromptAttemptSpecification > &&value)
void SetMessageSelectionStrategy(const MessageSelectionStrategy &value)
void SetMessageGroups(const Aws::Vector< MessageGroup > &value)
void SetMessageSelectionStrategy(MessageSelectionStrategy &&value)
PromptSpecification & WithMessageGroups(Aws::Vector< MessageGroup > &&value)
AWS_LEXMODELSV2_API PromptSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
PromptSpecification & WithMessageSelectionStrategy(MessageSelectionStrategy &&value)
PromptSpecification & WithAllowInterrupt(bool value)
PromptSpecification & AddPromptAttemptsSpecification(const PromptAttempt &key, PromptAttemptSpecification &&value)
PromptSpecification & AddPromptAttemptsSpecification(PromptAttempt &&key, const PromptAttemptSpecification &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue