AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExactResponseFields.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LEXMODELSV2_API ExactResponseFields();
36 AWS_LEXMODELSV2_API ExactResponseFields(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetQuestionField() const{ return m_questionField; }
47 inline bool QuestionFieldHasBeenSet() const { return m_questionFieldHasBeenSet; }
48 inline void SetQuestionField(const Aws::String& value) { m_questionFieldHasBeenSet = true; m_questionField = value; }
49 inline void SetQuestionField(Aws::String&& value) { m_questionFieldHasBeenSet = true; m_questionField = std::move(value); }
50 inline void SetQuestionField(const char* value) { m_questionFieldHasBeenSet = true; m_questionField.assign(value); }
51 inline ExactResponseFields& WithQuestionField(const Aws::String& value) { SetQuestionField(value); return *this;}
52 inline ExactResponseFields& WithQuestionField(Aws::String&& value) { SetQuestionField(std::move(value)); return *this;}
53 inline ExactResponseFields& WithQuestionField(const char* value) { SetQuestionField(value); return *this;}
55
57
61 inline const Aws::String& GetAnswerField() const{ return m_answerField; }
62 inline bool AnswerFieldHasBeenSet() const { return m_answerFieldHasBeenSet; }
63 inline void SetAnswerField(const Aws::String& value) { m_answerFieldHasBeenSet = true; m_answerField = value; }
64 inline void SetAnswerField(Aws::String&& value) { m_answerFieldHasBeenSet = true; m_answerField = std::move(value); }
65 inline void SetAnswerField(const char* value) { m_answerFieldHasBeenSet = true; m_answerField.assign(value); }
66 inline ExactResponseFields& WithAnswerField(const Aws::String& value) { SetAnswerField(value); return *this;}
67 inline ExactResponseFields& WithAnswerField(Aws::String&& value) { SetAnswerField(std::move(value)); return *this;}
68 inline ExactResponseFields& WithAnswerField(const char* value) { SetAnswerField(value); return *this;}
70 private:
71
72 Aws::String m_questionField;
73 bool m_questionFieldHasBeenSet = false;
74
75 Aws::String m_answerField;
76 bool m_answerFieldHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace LexModelsV2
81} // namespace Aws
void SetQuestionField(const Aws::String &value)
ExactResponseFields & WithQuestionField(Aws::String &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ExactResponseFields & WithAnswerField(const char *value)
void SetAnswerField(const Aws::String &value)
ExactResponseFields & WithQuestionField(const char *value)
AWS_LEXMODELSV2_API ExactResponseFields(Aws::Utils::Json::JsonView jsonValue)
ExactResponseFields & WithAnswerField(const Aws::String &value)
AWS_LEXMODELSV2_API ExactResponseFields & operator=(Aws::Utils::Json::JsonView jsonValue)
ExactResponseFields & WithQuestionField(const Aws::String &value)
ExactResponseFields & WithAnswerField(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue