AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API TurnSpecification() = default;
32 AWS_LEXMODELSV2_API TurnSpecification(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const AgentTurnSpecification& GetAgentTurn() const { return m_agentTurn; }
41 inline bool AgentTurnHasBeenSet() const { return m_agentTurnHasBeenSet; }
42 template <typename AgentTurnT = AgentTurnSpecification>
43 void SetAgentTurn(AgentTurnT&& value) {
44 m_agentTurnHasBeenSet = true;
45 m_agentTurn = std::forward<AgentTurnT>(value);
46 }
47 template <typename AgentTurnT = AgentTurnSpecification>
48 TurnSpecification& WithAgentTurn(AgentTurnT&& value) {
49 SetAgentTurn(std::forward<AgentTurnT>(value));
50 return *this;
51 }
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) {
62 m_userTurnHasBeenSet = true;
63 m_userTurn = std::forward<UserTurnT>(value);
64 }
65 template <typename UserTurnT = UserTurnSpecification>
66 TurnSpecification& WithUserTurn(UserTurnT&& value) {
67 SetUserTurn(std::forward<UserTurnT>(value));
68 return *this;
69 }
71 private:
72 AgentTurnSpecification m_agentTurn;
73
74 UserTurnSpecification m_userTurn;
75 bool m_agentTurnHasBeenSet = false;
76 bool m_userTurnHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace LexModelsV2
81} // 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