AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TurnSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/AgentTurnSpecification.h>
9#include <aws/lexv2-models/model/UserTurnSpecification.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API TurnSpecification() = default;
37 AWS_LEXMODELSV2_API TurnSpecification(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AgentTurnSpecification& GetAgentTurn() const { return m_agentTurn; }
47 inline bool AgentTurnHasBeenSet() const { return m_agentTurnHasBeenSet; }
48 template<typename AgentTurnT = AgentTurnSpecification>
49 void SetAgentTurn(AgentTurnT&& value) { m_agentTurnHasBeenSet = true; m_agentTurn = std::forward<AgentTurnT>(value); }
50 template<typename AgentTurnT = AgentTurnSpecification>
51 TurnSpecification& WithAgentTurn(AgentTurnT&& value) { SetAgentTurn(std::forward<AgentTurnT>(value)); return *this;}
53
55
58 inline const UserTurnSpecification& GetUserTurn() const { return m_userTurn; }
59 inline bool UserTurnHasBeenSet() const { return m_userTurnHasBeenSet; }
60 template<typename UserTurnT = UserTurnSpecification>
61 void SetUserTurn(UserTurnT&& value) { m_userTurnHasBeenSet = true; m_userTurn = std::forward<UserTurnT>(value); }
62 template<typename UserTurnT = UserTurnSpecification>
63 TurnSpecification& WithUserTurn(UserTurnT&& value) { SetUserTurn(std::forward<UserTurnT>(value)); return *this;}
65 private:
66
67 AgentTurnSpecification m_agentTurn;
68 bool m_agentTurnHasBeenSet = false;
69
70 UserTurnSpecification m_userTurn;
71 bool m_userTurnHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace LexModelsV2
76} // namespace Aws
AWS_LEXMODELSV2_API TurnSpecification()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API TurnSpecification(Aws::Utils::Json::JsonView jsonValue)
TurnSpecification & WithAgentTurn(AgentTurnT &&value)
AWS_LEXMODELSV2_API TurnSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
TurnSpecification & WithUserTurn(UserTurnT &&value)
const UserTurnSpecification & GetUserTurn() const
const AgentTurnSpecification & GetAgentTurn() const
Aws::Utils::Json::JsonValue JsonValue