AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ToolInstruction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
29 public:
30 AWS_QCONNECT_API ToolInstruction() = default;
33 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetInstruction() const { return m_instruction; }
40 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
41 template <typename InstructionT = Aws::String>
43 m_instructionHasBeenSet = true;
44 m_instruction = std::forward<InstructionT>(value);
45 }
46 template <typename InstructionT = Aws::String>
48 SetInstruction(std::forward<InstructionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetExamples() const { return m_examples; }
58 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
59 template <typename ExamplesT = Aws::Vector<Aws::String>>
60 void SetExamples(ExamplesT&& value) {
61 m_examplesHasBeenSet = true;
62 m_examples = std::forward<ExamplesT>(value);
63 }
64 template <typename ExamplesT = Aws::Vector<Aws::String>>
66 SetExamples(std::forward<ExamplesT>(value));
67 return *this;
68 }
69 template <typename ExamplesT = Aws::String>
71 m_examplesHasBeenSet = true;
72 m_examples.emplace_back(std::forward<ExamplesT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_instruction;
78
79 Aws::Vector<Aws::String> m_examples;
80 bool m_instructionHasBeenSet = false;
81 bool m_examplesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace QConnect
86} // namespace Aws
const Aws::Vector< Aws::String > & GetExamples() const
AWS_QCONNECT_API ToolInstruction(Aws::Utils::Json::JsonView jsonValue)
ToolInstruction & WithInstruction(InstructionT &&value)
const Aws::String & GetInstruction() const
AWS_QCONNECT_API ToolInstruction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API ToolInstruction()=default
ToolInstruction & WithExamples(ExamplesT &&value)
void SetInstruction(InstructionT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ToolInstruction & AddExamples(ExamplesT &&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