AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PredictQAppInputOptions.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qapps/model/ConversationMessage.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QApps
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QAPPS_API PredictQAppInputOptions() = default;
40 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<ConversationMessage>& GetConversation() const { return m_conversation; }
48 inline bool ConversationHasBeenSet() const { return m_conversationHasBeenSet; }
49 template<typename ConversationT = Aws::Vector<ConversationMessage>>
50 void SetConversation(ConversationT&& value) { m_conversationHasBeenSet = true; m_conversation = std::forward<ConversationT>(value); }
51 template<typename ConversationT = Aws::Vector<ConversationMessage>>
52 PredictQAppInputOptions& WithConversation(ConversationT&& value) { SetConversation(std::forward<ConversationT>(value)); return *this;}
53 template<typename ConversationT = ConversationMessage>
54 PredictQAppInputOptions& AddConversation(ConversationT&& value) { m_conversationHasBeenSet = true; m_conversation.emplace_back(std::forward<ConversationT>(value)); return *this; }
56
58
61 inline const Aws::String& GetProblemStatement() const { return m_problemStatement; }
62 inline bool ProblemStatementHasBeenSet() const { return m_problemStatementHasBeenSet; }
63 template<typename ProblemStatementT = Aws::String>
64 void SetProblemStatement(ProblemStatementT&& value) { m_problemStatementHasBeenSet = true; m_problemStatement = std::forward<ProblemStatementT>(value); }
65 template<typename ProblemStatementT = Aws::String>
66 PredictQAppInputOptions& WithProblemStatement(ProblemStatementT&& value) { SetProblemStatement(std::forward<ProblemStatementT>(value)); return *this;}
68 private:
69
71 bool m_conversationHasBeenSet = false;
72
73 Aws::String m_problemStatement;
74 bool m_problemStatementHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace QApps
79} // namespace Aws
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QAPPS_API PredictQAppInputOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
PredictQAppInputOptions & AddConversation(ConversationT &&value)
AWS_QAPPS_API PredictQAppInputOptions(Aws::Utils::Json::JsonView jsonValue)
PredictQAppInputOptions & WithConversation(ConversationT &&value)
AWS_QAPPS_API PredictQAppInputOptions()=default
const Aws::Vector< ConversationMessage > & GetConversation() const
PredictQAppInputOptions & WithProblemStatement(ProblemStatementT &&value)
void SetProblemStatement(ProblemStatementT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue