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>
53 template<
typename MessageGroupsT = Aws::Vector<MessageGroup>>
54 void SetMessageGroups(MessageGroupsT&& value) { m_messageGroupsHasBeenSet =
true; m_messageGroups = std::forward<MessageGroupsT>(value); }
55 template<
typename MessageGroupsT = Aws::Vector<MessageGroup>>
57 template<
typename MessageGroupsT = MessageGroup>
68 inline void SetMaxRetries(
int value) { m_maxRetriesHasBeenSet =
true; m_maxRetries = value; }
78 inline void SetAllowInterrupt(
bool value) { m_allowInterruptHasBeenSet =
true; m_allowInterrupt = value; }
98 template<
typename PromptAttemptsSpecificationT = Aws::Map<PromptAttempt, PromptAttemptSpecification>>
99 void SetPromptAttemptsSpecification(PromptAttemptsSpecificationT&& value) { m_promptAttemptsSpecificationHasBeenSet =
true; m_promptAttemptsSpecification = std::forward<PromptAttemptsSpecificationT>(value); }
100 template<
typename PromptAttemptsSpecificationT = Aws::Map<PromptAttempt, PromptAttemptSpecification>>
103 m_promptAttemptsSpecificationHasBeenSet =
true; m_promptAttemptsSpecification.emplace(key, value);
return *
this;
109 bool m_messageGroupsHasBeenSet =
false;
112 bool m_maxRetriesHasBeenSet =
false;
114 bool m_allowInterrupt{
false};
115 bool m_allowInterruptHasBeenSet =
false;
118 bool m_messageSelectionStrategyHasBeenSet =
false;
121 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