7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/MessageGroup.h>
11#include <aws/lexv2-models/model/MessageSelectionStrategy.h>
12#include <aws/lexv2-models/model/PromptAttempt.h>
13#include <aws/lexv2-models/model/PromptAttemptSpecification.h>
24namespace LexModelsV2 {
47 template <
typename MessageGroupsT = Aws::Vector<MessageGroup>>
49 m_messageGroupsHasBeenSet =
true;
50 m_messageGroups = std::forward<MessageGroupsT>(value);
52 template <
typename MessageGroupsT = Aws::Vector<MessageGroup>>
57 template <
typename MessageGroupsT = MessageGroup>
59 m_messageGroupsHasBeenSet =
true;
60 m_messageGroups.emplace_back(std::forward<MessageGroupsT>(value));
73 m_maxRetriesHasBeenSet =
true;
89 m_allowInterruptHasBeenSet =
true;
90 m_allowInterrupt = value;
105 m_messageSelectionStrategyHasBeenSet =
true;
106 m_messageSelectionStrategy = value;
119 return m_promptAttemptsSpecification;
122 template <
typename PromptAttemptsSpecificationT = Aws::Map<PromptAttempt, PromptAttemptSpecification>>
124 m_promptAttemptsSpecificationHasBeenSet =
true;
125 m_promptAttemptsSpecification = std::forward<PromptAttemptsSpecificationT>(value);
127 template <
typename PromptAttemptsSpecificationT = Aws::Map<PromptAttempt, PromptAttemptSpecification>>
133 m_promptAttemptsSpecificationHasBeenSet =
true;
134 m_promptAttemptsSpecification.emplace(key, value);
143 bool m_allowInterrupt{
false};
148 bool m_messageGroupsHasBeenSet =
false;
149 bool m_maxRetriesHasBeenSet =
false;
150 bool m_allowInterruptHasBeenSet =
false;
151 bool m_messageSelectionStrategyHasBeenSet =
false;
152 bool m_promptAttemptsSpecificationHasBeenSet =
false;
int GetMaxRetries() const
void SetMaxRetries(int value)
PromptSpecification & WithMaxRetries(int value)
PromptSpecification & WithMessageGroups(MessageGroupsT &&value)
AWS_LEXMODELSV2_API PromptSpecification(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MessageGroup > & GetMessageGroups() const
PromptSpecification & WithMessageSelectionStrategy(MessageSelectionStrategy value)
bool MaxRetriesHasBeenSet() const
AWS_LEXMODELSV2_API PromptSpecification()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool GetAllowInterrupt() const
void SetMessageGroups(MessageGroupsT &&value)
bool MessageSelectionStrategyHasBeenSet() const
MessageSelectionStrategy GetMessageSelectionStrategy() const
const Aws::Map< PromptAttempt, PromptAttemptSpecification > & GetPromptAttemptsSpecification() const
bool MessageGroupsHasBeenSet() const
PromptSpecification & AddMessageGroups(MessageGroupsT &&value)
void SetMessageSelectionStrategy(MessageSelectionStrategy value)
void SetPromptAttemptsSpecification(PromptAttemptsSpecificationT &&value)
void SetAllowInterrupt(bool value)
PromptSpecification & AddPromptAttemptsSpecification(PromptAttempt key, PromptAttemptSpecification value)
AWS_LEXMODELSV2_API PromptSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PromptAttemptsSpecificationHasBeenSet() const
PromptSpecification & WithAllowInterrupt(bool value)
PromptSpecification & WithPromptAttemptsSpecification(PromptAttemptsSpecificationT &&value)
bool AllowInterruptHasBeenSet() const
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